Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microsoft.CostManagement/exports@2021-10-01 - All control plane APIs must flow through ARM #25356

Open
ms-henglu opened this issue Aug 17, 2023 · 0 comments
Labels
Cost Management - UsageDetailsAndExport All issues in cost management for usage details API and exports API. Service Attention Workflow: This issue is responsible by Azure service team.

Comments

@ms-henglu
Copy link
Member

Microsoft.CostManagement/exports@2021-10-01 - All control plane APIs must flow through ARM

Description

In the PUT response header, the location's value does not pass ARM. I mean it should use the public cloud domain (management.azure.com) instead of costmanagement.trafficmanager.net.

location: https://costmanagement.trafficmanager.net/subscriptions/{subscription_id}/resourceGroups/acctestRG-cm-henglu/providers/Microsoft.CostManagement/exports/firsthenglu2?api-version=2022-10-01
PUT https://management.azure.com/subscriptions/{subscription_id}/resourceGroups/acctestRG-cm-henglu/providers/Microsoft.CostManagement/exports/firsthenglu2?api-version=2022-10-01 HTTP/2.0
content-type: application/json
user-agent: HashiCorp Terraform/1.5.2 (+https://www.terraform.io) Terraform Plugin SDK/2.8.0 terraform-provider-azapi/dev pid-222c6c49-1b0a-5959-a213-6608f9eb8820
x-ms-correlation-request-id: 544dc2a9-82b5-c46c-3c98-12310ed7d9bc
authorization: Bearer <token>
accept: application/json
content-length: 478
accept-encoding: gzip

{"name":"firsthenglu2","properties":{"definition":{"timeframe":"TheLastMonth","type":"Usage"},"deliveryInfo":{"destination":{"container":"acctestcontainerhenglu","resourceId":"/subscriptions/{subscription_id}/resourceGroups/acctestRG-cm-henglu/providers/Microsoft.Storage/storageAccounts/unlikeaccthenglu"}},"format":"Csv","schedule":{"recurrence":"Monthly","recurrencePeriod":{"from":"2023-12-29T00:00:00Z","to":"2023-12-30T00:00:00Z"},"status":"Inactive"}}}

HTTP/2.0 201 
cache-control: no-cache
pragma: no-cache
content-length: 720
content-type: application/json; charset=utf-8
expires: -1
location: https://costmanagement.trafficmanager.net/subscriptions/{subscription_id}/resourceGroups/acctestRG-cm-henglu/providers/Microsoft.CostManagement/exports/firsthenglu2?api-version=2022-10-01
x-ms-ratelimit-remaining-subscription-reads: 11997
session-id: 7d4f06f7-5401-4fb7-9bbc-f908d0da9ceb
x-ms-request-id: 3bb2d72e-8391-4974-b215-de72f2152391
x-ms-correlation-request-id: 544dc2a9-82b5-c46c-3c98-12310ed7d9bc
x-ms-client-request-id: 1c64991d-d572-4fc5-84e5-139ed91f5711
x-powered-by: ASP.NET
x-ms-routing-request-id: SOUTHEASTASIA:20230817T024356Z:e3a77b12-28fe-43c1-b031-0b75982803df
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
date: Thu, 17 Aug 2023 02:43:56 GMT

{"id":"subscriptions/{subscription_id}/resourceGroups/acctestRG-cm-henglu/providers/Microsoft.CostManagement/exports/firsthenglu2","name":"firsthenglu2","type":"Microsoft.CostManagement/exports","eTag":"\"1d9d0b4aa9f206d\"","properties":{"schedule":{"status":"Inactive","recurrence":"Monthly","recurrencePeriod":{"from":"2023-12-29T00:00:00Z","to":"2023-12-30T00:00:00Z"}},"format":"Csv","deliveryInfo":{"destination":{"resourceId":"/subscriptions/{subscription_id}/resourceGroups/acctestRG-cm-henglu/providers/Microsoft.Storage/storageAccounts/unlikeaccthenglu","container":"acctestcontainerhenglu","rootFolderPath":null}},"definition":{"type":"Usage","timeframe":"TheLastMonth"}}}

Details

  1. ARM Fully-Qualified Resource Type
Microsoft.CostManagement/exports
  1. API Version
2021-10-01

Links

  1. Semantic and Model Violations Reference
  2. S360 action item generator for Swagger issues
@JackTn JackTn added Service Attention Workflow: This issue is responsible by Azure service team. Cost Management - UsageDetailsAndExport All issues in cost management for usage details API and exports API. labels Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cost Management - UsageDetailsAndExport All issues in cost management for usage details API and exports API. Service Attention Workflow: This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

2 participants