Registering Resource Providers in Azure: Fix 'Not Registered' Errors
Every Azure service belongs to a resource provider — a named namespace like Microsoft.Compute for virtual machines or Microsoft.Storage for storage accounts. Before you can create resources from a provider, that provider must be registered on your subscription. When it is not, you get a specific error message. This page explains what resource providers are, why the error happens, and exactly how to fix it.
What Resource Providers Are
A resource provider is a service in Azure that supplies a set of resource types. Every resource you create belongs to exactly one provider. The provider namespace appears in resource IDs and REST API URLs as the segment after /providers/:
/subscriptions/{id}/resourceGroups/{rg}/providers/Microsoft.Compute/virtualMachines/{name}
/subscriptions/{id}/resourceGroups/{rg}/providers/Microsoft.Storage/storageAccounts/{name}
/subscriptions/{id}/resourceGroups/{rg}/providers/Microsoft.KeyVault/vaults/{name}Resource providers are maintained by Microsoft (for first-party Azure services) and by third-party publishers in the Azure Marketplace. For the services you use day-to-day, you are dealing with Microsoft’s built-in providers.
Understanding providers also helps when reading ARM templates, Bicep files, or Terraform configurations — the provider namespace is always part of the resource type definition. See Understanding Azure REST APIs for how provider namespaces appear in API URLs.
Why Registration Is Required
Azure does not automatically enable every provider on every subscription. Registration is a one-time acknowledgment that tells Azure “this subscription will use resources from this provider.” It also allows Azure to apply any terms of service or compliance checks associated with a service before you can create resources with it.
Some providers are registered by default on every new subscription. Others are not. When you try to create a resource from an unregistered provider, you get an error rather than a working resource.
The Exact Error You Will See
When you try to create a resource and the provider is not registered, Azure CLI returns an error similar to this:
(MissingSubscriptionRegistration) The subscription is not registered to use namespace 'Microsoft.ContainerService'.
See https://aka.ms/rps-not-found for how to register subscriptions.
Code: MissingSubscriptionRegistration
Message: The subscription is not registered to use namespace 'Microsoft.ContainerService'.
See https://aka.ms/rps-not-found for how to register subscriptions.In the portal, you see a similar message in the deployment failure details. The key piece of information is the namespace in the error: Microsoft.ContainerService in this example. That tells you exactly which provider to register.
This error is not a permissions problem — it is a configuration problem, and it is easy to fix.
How to Register a Provider via CLI
To register a provider, run:
az provider register --namespace Microsoft.ContainerServiceReplace Microsoft.ContainerService with the namespace from your error message. The command returns immediately but registration runs asynchronously. Check the status:
az provider show --namespace Microsoft.ContainerService --query "registrationState" --output tsvThe state progresses from NotRegistered to Registering to Registered. Once it shows Registered, retry the original operation that failed.
To list all providers and their current registration state for your subscription:
az provider list --output tableThis returns a long list. To filter to just registered providers:
az provider list --query "[?registrationState=='Registered'].namespace" --output tsvTo filter to unregistered providers (the ones you might need to register if you plan to use those services):
az provider list --query "[?registrationState=='NotRegistered'].namespace" --output tsvHow to Register a Provider in the Portal
If you prefer the portal:
- In the portal, search for “Subscriptions” in the top search bar and click on your subscription.
- In the left sidebar of the subscription blade, click Resource providers.
- You see a list of all providers with their status. Use the search box at the top to filter by name.
- Click the provider you want to register.
- Click the Register button at the top of the page.
- Wait for the status to change to Registered. Refresh the page to see the updated status.
You need the Contributor or Owner role on the subscription to register resource providers. If you have only Resource Group-level permissions, you cannot register providers — you need to ask your subscription administrator to do it, or request the appropriate role. See Azure RBAC for how roles work.
Automatic Registration
Azure can automatically register providers when you create resources through the portal or CLI, if you have the right permissions. This behavior is controlled by a subscription-level setting. By default on new subscriptions, auto-registration is enabled.
With auto-registration on, if you create a storage account and Microsoft.Storage is not yet registered, Azure registers it automatically before creating the account. The process is transparent and you may not even notice it.
However, auto-registration can be disabled by subscription administrators for governance reasons — for example, to prevent teams from accidentally enabling services that have not been approved or budgeted. In that case, you will see the MissingSubscriptionRegistration error and need to manually register the provider.
To check whether auto-registration is enabled on your subscription, look in the Resource providers blade in the portal for a setting about automatic registration, or ask your subscription administrator. Enterprise subscriptions managed under Azure Policy often have this disabled.
Most Commonly Needed Providers
The following table lists the providers most commonly required for typical cloud workloads, along with what resources each one covers. These are the ones you are most likely to need to register explicitly if auto-registration is off:
| Provider Namespace | What It Covers |
|---|---|
Microsoft.Compute | Virtual Machines, VM Scale Sets, Disks, Images, Snapshots |
Microsoft.Storage | Storage Accounts, Blob, File, Queue, Table |
Microsoft.Network | Virtual Networks, Subnets, Network Security Groups, Public IPs, Load Balancers |
Microsoft.KeyVault | Key Vaults, Keys, Secrets, Certificates |
Microsoft.ContainerService | Azure Kubernetes Service (AKS) clusters |
Microsoft.ContainerRegistry | Azure Container Registry (ACR) |
Microsoft.Web | App Service, Function Apps, Web Apps |
Microsoft.Sql | Azure SQL Database, SQL Managed Instance |
Microsoft.DBforPostgreSQL | Azure Database for PostgreSQL |
Microsoft.Insights | Azure Monitor, Application Insights, Log Analytics |
Microsoft.OperationalInsights | Log Analytics Workspaces |
Microsoft.ManagedIdentity | User-assigned Managed Identities |
If you are setting up a subscription for a new team, registering all the providers you know you will use at the start saves the friction of hitting the error mid-deployment.
To register multiple providers at once in a script:
for provider in \
Microsoft.Compute \
Microsoft.Storage \
Microsoft.Network \
Microsoft.KeyVault \
Microsoft.ContainerService \
Microsoft.Insights \
Microsoft.OperationalInsights; do
az provider register --namespace $provider
doneThis loop starts registration for all listed providers asynchronously. After a few minutes, verify they are all registered:
az provider show --namespace Microsoft.ContainerService --query registrationState --output tsvUnregistering Providers
You can unregister a provider to prevent teams from using a particular service:
az provider unregister --namespace Microsoft.ContainerServiceThis does not delete existing resources — if you have AKS clusters already running, they continue to run. Unregistering prevents creating new resources of that type. In practice, unregistering is an uncommon operation. If you need to prevent resource creation, Azure Policy is a more robust approach because it can also prevent re-registration.
Common Mistakes Around Resource Provider Registration
- Assuming the error is a permissions problem. The
MissingSubscriptionRegistrationerror looks alarming, but it is not a sign that you lack access to the subscription. It is a one-line fix withaz provider register. Do not spend time adjusting roles before checking if the provider is registered. - Not waiting for registration to complete before retrying. Registration takes a minute or two. Running the original command immediately after
az provider registerwill often fail again because the state is stillRegistering. Check the state withaz provider show —query registrationStatebefore retrying. - Registering on the wrong subscription. Registration is per subscription. If you run
az provider registerwhile a different subscription is active, you register the provider for the wrong place. Always runaz account showfirst to confirm the active subscription. - Forgetting Microsoft.Insights when setting up monitoring. Teams deploying workloads remember to register compute and storage providers but often forget
Microsoft.InsightsandMicrosoft.OperationalInsightsuntil the first monitoring setup attempt fails. Include them in your baseline registration list.
Summary
- Every Azure service belongs to a resource provider namespace (Microsoft.Compute, Microsoft.Storage, etc.). Providers must be registered on a subscription before you can create resources from them.
- The error
MissingSubscriptionRegistrationmeans the provider is not registered — fix it withaz provider register —namespace [namespace]. - Check registration status with
az provider show —namespace [namespace] —query registrationState —output tsv. - Auto-registration handles most cases on default subscriptions, but enterprise subscriptions with Azure Policy may have it disabled.
- Register the providers your workload needs at subscription setup time to avoid surprises mid-deployment.
Frequently asked questions
Does registering a resource provider cost money?
No. Registration is free. You only pay for the resources you create after registering. The provider registration just enables the service for your subscription.
How long does resource provider registration take?
Usually 1-3 minutes. The state moves from "Registering" to "Registered". You can poll with `az provider show --namespace Microsoft.Compute --query "registrationState"` to check progress.
If I delete a subscription and create a new one, do I need to re-register providers?
Yes. Provider registration is per subscription. A new subscription starts with only the core providers registered. You need to register any additional providers your workload requires.