Please refer to this documentation about possible causes and ways to solve this errors.
Verify the API versions of Azure SQL Server Resource here.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
We are facing random "azure.core.exceptions.HttpResponseError: (NoRegisteredProviderFound) No registered resource provider found for location '<location>' and API version '<version>' for type '<type>'. The supported api-versions are ..."
For example we had issue with requesting Flexible PostreSQL Location Based Capabilities
logger.info(f'Fetching capabilities from {location}')
capabilities = self.client.location_based_capabilities.execute(location)
Once the error was for northcentralus
142971-northcentralus-capabilities.log
No registered resource provider found for location 'northcentralus' and API version '2021-06-01' for type 'locations/capabilities'. The supported api-versions are '2020-02-14-privatepreview, 2020-02-14-preview, 2020-11-05-preview, 2021-06-01-preview, 2021-06-01'. The supported locations are 'australiaeast, australiasoutheast, brazilsouth, canadacentral, centralindia, centralus, eastasia, eastus, eastus2, francecentral, germanywestcentral, japaneast, japanwest, jioindiawest, koreacentral, koreasouth, northeurope, norwayeast, southafricanorth, southcentralus, southeastasia, southindia, switzerlandnorth, uaenorth, uksouth, ukwest, westcentralus, westeurope, westus, westus2, westus3'.
and later with koreasouth
142838-koreasouth-capabilities.log
No registered resource provider found for location 'koreasouth' and API version '2021-06-01' for type 'locations/capabilities'. The supported api-versions are '2020-02-14-privatepreview, 2020-02-14-preview, 2020-11-05-preview, 2021-06-01-preview, 2021-06-01'. The supported locations are 'australiaeast, australiasoutheast, brazilsouth, canadacentral, centralindia, centralus, eastasia, eastus, eastus2, francecentral, germanywestcentral, japaneast, japanwest, jioindiawest, koreacentral, northcentralus, northeurope, norwayeast, southafricanorth, southcentralus, southeastasia, southindia, switzerlandnorth, uaenorth, uksouth, ukwest, westcentralus, westeurope, westus, westus2, westus3'.
koreasouth case was also affecting Long Term Retention Backups - List By Location
142910-koreasouth-long-term-retention-backups.log
No registered resource provider found for location 'koreasouth' and API version '2020-11-01-preview' for type 'locations/longTermRetentionBackups'. The supported api-versions are '2017-03-01-preview, 2017-10-01-preview, 2018-06-01-preview, 2019-06-01-preview, 2020-02-02-preview, 2020-08-01-preview, 2020-11-01-preview, 2021-02-01-preview'. The supported locations are 'australiacentral, australiaeast, australiasoutheast, brazilsouth, canadacentral, canadaeast, centralindia, centralus, eastasia, eastus, eastus2, francecentral, germanywestcentral, japaneast, japanwest, jioindiawest, koreacentral, northcentralus, northeurope, norwayeast, southafricanorth, southcentralus, southindia, southeastasia, switzerlandnorth, uaenorth, uksouth, ukwest, westcentralus, westeurope, westindia, westus, westus2, westus3'.
The same code was running successfully in one location and failing in another and after some time the errors are gone.
What is the reason for a location being randomly unsupported?
@Igor Evgrafov Apologies for the inconvenience caused to you.
This could have been an intermittent issue. I am not able to reproduce this issue now.
Please use version 2021-06-01 for this service.
----------
If an answer is helpful, please click on or upvote which might help other community members reading this thread.