title | description | services | documentationcenter | author | manager | editor | ms.service | ms.workload | ms.tgt_pltfrm | ms.devlang | ms.topic | ms.date | ms.author |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Azure resource provider registration errors | Microsoft Docs |
Describes how to resolve Azure resource provider registration errors. |
azure-resource-manager,azure-portal |
tfitzmac |
timlt |
azure-resource-manager |
multiple |
na |
na |
support-article |
09/13/2017 |
tomfitz |
This article describes the errors you may encounter when using a resource provider that you have not previously used in your subscription.
When deploying resource, you may receive the following error code and message:
Code: NoRegisteredProviderFound
Message: No registered resource provider found for location {location}
and API version {api-version} for type {resource-type}.
Or, you may receive a similar message that states:
Code: MissingSubscriptionRegistration
Message: The subscription is not registered to use namespace {resource-provider-namespace}
You receive these errors for one of three reasons:
- The resource provider has not been registered for your subscription
- API version not supported for the resource type
- Location not supported for the resource type
The error message should give you suggestions for the supported locations and API versions. You can change your template to one of the suggested values. Most providers are registered automatically by the Azure portal or the command-line interface you are using, but not all. If you have not used a particular resource provider before, you may need to register that provider. You can discover more about resource providers through PowerShell or Azure CLI.
For PowerShell, use Get-AzureRmResourceProvider to see your registration status.
Get-AzureRmResourceProvider -ListAvailable
To register a provider, use Register-AzureRmResourceProvider and provide the name of the resource provider you wish to register.
Register-AzureRmResourceProvider -ProviderNamespace Microsoft.Cdn
To get the supported locations for a particular type of resource, use:
((Get-AzureRmResourceProvider -ProviderNamespace Microsoft.Web).ResourceTypes | Where-Object ResourceTypeName -eq sites).Locations
To get the supported API versions for a particular type of resource, use:
((Get-AzureRmResourceProvider -ProviderNamespace Microsoft.Web).ResourceTypes | Where-Object ResourceTypeName -eq sites).ApiVersions
Azure CLI
To see whether the provider is registered, use the az provider list
command.
az provider list
To register a resource provider, use the az provider register
command, and specify the namespace to register.
az provider register --namespace Microsoft.Cdn
To see the supported locations and API versions for a resource type, use:
az provider show -n Microsoft.Web --query "resourceTypes[?resourceType=='sites'].locations"
You can see the registration status and register a resource provider namespace through the portal.