azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

This API is incredibly slow

Open DonPetry-EY opened this issue 5 years ago • 6 comments

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.

DonPetry-EY avatar Feb 02 '21 20:02 DonPetry-EY

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.

Author: DonPetry-EY
Assignees: -
Labels:

Consumption, Service Attention, needs-triage, question

Milestone: -

ghost avatar Feb 02 '21 23:02 ghost

consumption

yonzhan avatar Feb 02 '21 23:02 yonzhan

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?

jochav avatar Mar 15 '21 01:03 jochav

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.

Author: DonPetry-EY
Assignees: -
Labels:

Consumption, Consumption-UsageDetailsandExport, Service Attention

Milestone: -

ghost avatar Jul 07 '21 23:07 ghost

@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

adwise3 avatar Sep 09 '21 19:09 adwise3

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.

Jarzab3kDH avatar Feb 07 '24 09:02 Jarzab3kDH