This API is incredibly slow
This API is incredibly slow. I'm talking about minutes to provides cost for a single ResourceGroup with a dozen objects.
Perhaps some guidance could be provided with the parameters to help define what exactly will improve the speed of this API?
Also, there's throttling that returns a 429 if we try to run concurrent requests...
[Enter feedback here]
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: e05c0768-9cfc-3b78-4f39-70a8c1f0b6bd
- Version Independent ID: b5e5d8fa-e84c-408a-3f49-19d245563abd
- Content: az consumption usage
- Content Source: latest/docs-ref-autogen/consumption/usage.yml
- Service: cost-management-billing
- GitHub Login: @rloutlaw
- Microsoft Alias: routlaw
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @ms-premp.
Issue Details
This API is incredibly slow. I'm talking about minutes to provides cost for a single ResourceGroup with a dozen objects.
Perhaps some guidance could be provided with the parameters to help define what exactly will improve the speed of this API?
Also, there's throttling that returns a 429 if we try to run concurrent requests...
[Enter feedback here]
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: e05c0768-9cfc-3b78-4f39-70a8c1f0b6bd
- Version Independent ID: b5e5d8fa-e84c-408a-3f49-19d245563abd
- Content: az consumption usage
- Content Source: latest/docs-ref-autogen/consumption/usage.yml
- Service: cost-management-billing
- GitHub Login: @rloutlaw
- Microsoft Alias: routlaw
| Author: | DonPetry-EY |
|---|---|
| Assignees: | - |
| Labels: |
|
| Milestone: | - |
consumption
Hi @DonPetry-EY, thanks for reaching out! Could you please provide us with a sample query you are running better understand and investigate the reason for slowness?
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @TiagoCrewGitHubIssues.
Issue Details
This API is incredibly slow. I'm talking about minutes to provides cost for a single ResourceGroup with a dozen objects.
Perhaps some guidance could be provided with the parameters to help define what exactly will improve the speed of this API?
Also, there's throttling that returns a 429 if we try to run concurrent requests...
[Enter feedback here]
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: e05c0768-9cfc-3b78-4f39-70a8c1f0b6bd
- Version Independent ID: b5e5d8fa-e84c-408a-3f49-19d245563abd
- Content: az consumption usage
- Content Source: latest/docs-ref-autogen/consumption/usage.yml
- Service: cost-management-billing
- GitHub Login: @rloutlaw
- Microsoft Alias: routlaw
| Author: | DonPetry-EY |
|---|---|
| Assignees: | - |
| Labels: |
|
| Milestone: | - |
@DonPetry-EY I apologize for the slowness seen in this API. We are working to improve the speed of this in the future. Can you try running your requests again and let us know if it is still as slow as previously seen?
Regarding the throttling - do you know if others in your organization are running similar queries as well? How many concurrent requests are you trying to run? Info on our rate limiting can be found here: https://docs.microsoft.com/en-us/azure/cost-management-billing/costs/manage-automation#data-latency-and-rate-limits
The usage details dataset can get extremely large as your number of Azure resources increases. If you continue to run into issues I would recommend chunking your requests into smaller date ranges. We also recommend that customers utilize our Exports feature. This is our most scalable solution for ingesting usage details data. Info on this can be found below: https://docs.microsoft.com/en-us/azure/cost-management-billing/costs/tutorial-export-acm-data?tabs=azure-portal
is anyone looking into it? it's still slow and gets slower. I run queries on monthly basis and each month it takes minutes longer to fetch data for last month. When I open the page in portal, the same number appears instantly.