Forum Discussion
Error during create AKS cluster
All the time that i have tried deploying AKS Cluster i have used the 'node-count' in my command line.
az aks create --resource-group myResourceGroup --name myK8sCluster --node-count 1 --generate-ssh-keys
From: https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough
Also confirm you are not reaching any limits.
https://docs.microsoft.com/en-us/azure/aks/container-service-quotas
FYI: I assume you are using the same subscription you have successfully deployed AKS on before. If its a new resource check resource provider registration make sure they are all registered. Easiest make sure all required network and computer resource providers are registered is to deploy a new ARM VM from the portal. You will have to register the ContianerService resource provider manually.
As the error clearly mentioned that Microsoft.Compute,Microsoft.Network is missing from registration.
https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-supported-services
Thanks
- Kushal KamraFeb 09, 2018Copper ContributorThat helped.
Solution is to register the individual Resource Providers to the Azure Subscription.
Here are my two cents using Azure CLI :
az provider register --namespace Microsoft.Network,Microsoft,Compute
Wait it out and woof, your command runs in a ziffy.- Stuart LeeksMay 11, 2018Copper Contributor
There's a typo in the az provider command (and I couldn't get the CLI to accept multiple namespaces), so I would recommend:
az provider register --namespace Microsoft.Network
az provider register --namespace Microsoft.ComputeNOTE that the registration is asynchronous, so check whether these have completed with
az provider show --namespace Microsoft.Network -o table
az provider show --namespace Microsoft.Compute -o table