Closed Remuwon closed 2 months ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @amjads1 @avirishuv @Drewm3 @vaibhav-agar.
@Remuwon thanks for your detailed issue, the team will take a look and get back to you as soon as possible.
Hi @Remuwon, I guess it's because the amount of skus to retrieve is too large. Python sdk could not make any change on it, so I have to transfer this issue to service team to see whether there could be any optimizing for this api.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Drewm3, @TravisCragg-MSFT, @nikhilpatel909, @sandeepraichura, @hilaryw29, @GabstaMSFT, @ramankumarlive, @ushnaarshadkhan.
@Remuwon The response size of this query is ~2-4Mb of JSON, and can take some time to parse depending upon the application. At this time, there is no way to reduce this further.
We are in the process of revamping this API to allow for targeted queries with KQL, where you can write a query that will only return a list of regions that a SKU is supported. Keep an eye on upcoming announcements over the next year for more information.
Describe the bug I am experiencing significant delays when attempting to list SKUs using the
azure.mgmt.compute
Python SDK. The request takes an unusually long time to return (20-30 seconds), impacting the performance of my application.To Reproduce Steps to reproduce the behavior:
ComputeManagementClient
with valid Azure credentials.resource_skus.list()
method.Sample Code:
Expected behavior The SKUs should be listed promptly without significant delays.
Additional context
For some background, I need to show customers regions where specific vm family types exist so that they can launch their workloads in the correct region. As far as I've searched there is no specific api to do this. Leaving me with the compute SKU list api. I fetch the sku and create a reverse hash map mapping vm family to region.
eastus
region, and the delay was consistent.