Azure / Azure/azure-rest-api-specs
Support UsageDetails Download Operation
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 6k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 444
Description

It's allowed to download usage details as csv in portal, and it calls the api below:
https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccounts}/billingPeriods/{billingPeriods}/providers/Microsoft.Consumption/usagedetails/download?api-version=2021-10-01
I found that the api once included in the previous version of [swagger](https://github.com/Azure/azure-rest-api-specs/blob/main/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/consumption.json#L167) like so:

Yet it's not included in the following versions any longer. **Is it possible to include the api once again so that customers could call it with REST API or SDK method?**
And here's the details of the request created by the customer.
https://github.com/Azure/azure-sdk-for-python/issues/31473
Contributor guide
Research direction
Start by comparing the current Microsoft.Consumption specification with the linked 2019-05-01-preview/consumption.json entry around line 167. Verify the documented billingAccounts and billingPeriods path, api-version, and download response against the portal endpoint and the linked Azure SDK request. Done means the operation is represented in the REST specification and supports the requested REST or generated SDK call.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- openapi
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100