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

script "quota_check_all_regions.sh" throws many errors (unnecessarily?) #320

Open
nitya opened this issue Mar 26, 2025 · 2 comments
Open
Labels
bug Something isn't working

Comments

@nitya
Copy link
Member

nitya commented Mar 26, 2025

Describe the bug

I logged into a valid Azure subscription (with az) then ran the script using ./scripts/quota_check_all_regions.sh

What I expected:
To get a list of reqions with valid quota

What I saw:
Verbose output that threw errors for locations like "switzerland" despite telling us that this was not in the list of supported locations.

What I expected:
The script should only be looking for quota in the supported locations to start with. This script did NOT take any input from the user so seeing this is confusing because I have no idea why it is checking that location.


----------------------------------------
🔍 Checking region: switzerland
ERROR: (NoRegisteredProviderFound) No registered resource provider found for location 'switzerland' and API version '2023-05-01' for type 'locations/usages'. The supported api-versions are '2023-05-01, 2023-06-01-preview, 2023-10-01-preview, 2024-04-01-preview, 2024-06-01-preview, 2024-10-01'. The supported locations are 'global, australiaeast, brazilsouth, westus, westus2, westeurope, northeurope, southeastasia, eastasia, westcentralus, southcentralus, eastus, eastus2, canadacentral, japaneast, centralindia, uksouth, japanwest, koreacentral, francecentral, northcentralus, centralus, southafricanorth, uaenorth, swedencentral, switzerlandnorth, switzerlandwest, germanywestcentral, norwayeast, westus3, jioindiawest, qatarcentral, canadaeast, polandcentral, southindia, italynorth, spaincentral, ukwest, jioindiacentral'.
Code: NoRegisteredProviderFound
Message: No registered resource provider found for location 'switzerland' and API version '2023-05-01' for type 'locations/usages'. The supported api-versions are '2023-05-01, 2023-06-01-preview, 2023-10-01-preview, 2024-04-01-preview, 2024-06-01-preview, 2024-10-01'. The supported locations are 'global, australiaeast, brazilsouth, westus, westus2, westeurope, northeurope, southeastasia, eastasia, westcentralus, southcentralus, eastus, eastus2, canadacentral, japaneast, centralindia, uksouth, japanwest, koreacentral, francecentral, northcentralus, centralus, southafricanorth, uaenorth, swedencentral, switzerlandnorth, switzerlandwest, germanywestcentral, norwayeast, westus3, jioindiawest, qatarcentral, canadaeast, polandcentral, southindia, italynorth, spaincentral, ukwest, jioindiacentral'.
⚠️ WARNING: Failed to retrieve quota for region switzerland. Skipping.
@nitya nitya added the bug Something isn't working label Mar 26, 2025
@nitya
Copy link
Member Author

nitya commented Mar 26, 2025

Related: Feature Request

The script above is called quota_check_all_regions

What I expected

I expected that I should be able to pass it the models/capacity I needed and it would check all regions for me. So I tried:

./scripts/quota_check_all_regions.sh gpt-4o-mini:30,text-embedding-ada-002:20

What I saw

It ran the quota check for all regions for all models and gave me a massive table of results that I had to manually look through

What would help

Being able to pass in the models I am interested in (as shown above) and get quota in all regions for just those models.

@Vinay-Microsoft
Copy link
Contributor

Thanks @nitya for reporting this, we will look into this and keep you posted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants