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

GetStorageAccountAsync is making a Storage Account management API cal… #238

Closed
wants to merge 1 commit into from

Conversation

srayan
Copy link
Collaborator

@srayan srayan commented Feb 21, 2024

GetStorageAccountAsync was making a Storage Account management API call, these calls are restricted at 800 requests / 5 minutes.
This threshold is different from calls made to the storage account data plane to fetch blobs/containers et.al. and those have a much higher threshold.

My fix basically constructs the same BlobSvc client by obtaining the storage account name from the asset property itself and then I reuse it through a concurrent dictionary (for thread safety).

Here is the list of Storage account management APIs that are subject to that 800 requests / 5 mins throttling limit - https://learn.microsoft.com/en-us/azure/role-based-access-control/resource-provider-operations#microsoftstorage

…l, which is restricted at 800 requests / 5 minutes. This is different from calls made to the storage account data place (which have a much higher threshold). https://learn.microsoft.com/en-us/azure/role-based-access-control/resource-provider-operations#microsoftstorage has list of APIs.
@srayan srayan closed this Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants