Forum Discussion
Error during create AKS cluster
I found a problem during create AKS service on West EU by using azure CLI.
It shown the error as
"Operation failed with status: 'Bad Request'. Details: Required resource provider registrations Microsoft.Compute,Microsoft.Network are missing."
However, last week, I still possible to create a AKS cluster successfully.
So, I'm not sure that what happened to the AKS service on region West Europe or not. Or my commands for create AKS cluster is wrong? "az aks create -g aks --name AKSCluster --generate-ssh-keys"
PS. I deploy Azure AKS following this guide : https://carlos.mendible.com/2017/12/01/deploy-your-first-service-to-azure-container-services-aks/
4 Replies
- Hannel HazeleyIron Contributor
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.
- If you didnot use Azure VNet before (New Subscription) first you have to register the resource using PowerShell or from portal.
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 KamraCopper 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.