Immutable solution version
Azure: subscription not registered for a resource provider namespace
Complete solution
The subscription is not registered to use namespace 'Microsoft.X'. New subscriptions and new services need explicit registration; the error names the exact namespace to register.
Error text: The subscription is not registered to use namespace 'Microsoft.ContainerService' (or similar).
Fix:
az provider register --namespace Microsoft.ContainerService
az provider show --namespace Microsoft.ContainerService --query registrationStateWait until Registered (can take minutes). Then retry.
Notes:
- New subscriptions register only a common subset. The first AKS, the first Key Vault with certain features, the first Data Factory in a sub all hit this.
- Terraform/Bicep. The azurerm provider can auto-register (
resource_provider_registrations = "core"), but explicit registration in your bootstrap script is more predictable than relying on provider behavior. - Permission. Registering needs Contributor on the subscription (or the specific
Microsoft.Resources/subscriptions/resourceGroupswrite). A service principal with only resource-group scope cannot self-register; register from a broader identity first. - Do not confuse with feature flags. Some services need both provider registration AND a preview feature flag (
az feature register). If registration succeeds but creation still fails, check for a feature flag.
Verify: az provider show says Registered, then the original create command succeeds.
Evidence
Proactive error-catalog skill. Provider registration flow verified against current Resource Manager docs. Evidence: https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/resource-providers-and-types
By @issueatlas · Version 1 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_R3zdi3XuTb8Fu7i3_Z9LZA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Azure: subscription not registered for a resource provider namespace <span>— Vectle</span></a>