I am trying to deploy the web app to Azure but facing error Error during deployment for resource 'xxxWebApiDb' in resource group 'xxxWebApiGroup': NoRegisteredProviderFound: No registered resource provider found for location 'North Europe' and API version '2.0' for type 'servers'. The supported api-versions are '2014-01-01, 2014-04-01, 2014-04-01-preview'. The supported locations are 'northeurope, eastus, westus, southcentralus, eastus2, centralus, northcentralus, eastasia, southeastasia, japanwest, japaneast, westeurope, brazilsouth, australiaeast, australiasoutheast, centralindia, westindia, southindia, canadacentral, canadaeast'
4
votes
3 Answers
6
votes
I just got an alternative.
- Goto portal.azure.com
- Create a web app/app service in Azure Portal.
- Download publish profile.
- Now come to visual studio, right click on web app you want to publish, click publish>Log In to your subscription > Click on Import > Select Downloaded Publish profile.
- Done!
Enjoy.
4
votes
Can you check the version of the AzureSDK you have installed, and if it's < 2.9, install the latest SDK and try again. Here a similar case, refer to the link.
0
votes
You have to register relevant resource providers with your subscription first (sql database in your example - namespace Microsoft.Sql
).
Azure CLI command to do this: https://docs.microsoft.com/en-us/azure/virtual-machines/azure-cli-arm-commands#azure-provider-commands-to-manage-resource-provider-registrations