azurerm_kubernetes_cluster.aks_cluster: Creating... ╷ │ Error: creating Kubernetes Cluster (Subscription: "7f8e5acb-a937-4163-80b1-f874c3a4d62c" │ Resource Group Name: "nimtechnology" │ Kubernetes Cluster Name: "terraform-aks-elearning-cluster"): performing CreateOrUpdate: unexpected status 409 (409 Conflict) with error: MissingSubscriptionRegistration: The subscription is not registered to use namespace 'Microsoft.ContainerService'. See https://aka.ms/rps-not-found for how to register subscriptions. │ │ with azurerm_kubernetes_cluster.aks_cluster, │ on c7-azure.tf line 1, in resource "azurerm_kubernetes_cluster" "aks_cluster": │ 1: resource "azurerm_kubernetes_cluster" "aks_cluster" { │ ╵
You need to register the Microsoft.ContainerService provider for your subscription.You can do this via the Azure CLI, Azure Portal, or PowerShell.
Option 1: Azure CLI (Recommended)
az provider register --namespace Microsoft.ContainerService
You can check the registration status with:
az provider show --namespace Microsoft.ContainerService --query "registrationState"
Option 2: Azure Portal
- Go to the Azure Portal.
- Search for Subscriptions and select your subscription.


3. In the left menu, click Resource providers.


