Unable to Create a new AKS Cluster

airfrog7 26 Reputation points
2022-06-08T07:49:51.63+00:00

I am unable to create an Azure Kubernetes Services Cluster.

I am following this Microsoft Learn article:
https://learn.microsoft.com/en-gb/learn/modules/implement-azure-kubernetes-service/8-exercise-deploy-connect-to-aks-cluster

The Azure CLI command I am running is:
az aks create --resource-group "RG-K8S" --name AKSTest --node-count 1 --enable-addons monitoring --generate-ssh-keys --node-resource-group "RG-K8S-Nodes" --node-vm-size Standard_B4ms

Basically the command runs for several hours and then fails. The Kubernetes service activity log contains a failed task with the following error and message:
Error code: ResourceOperationFailure
Message: The resource operation completed with terminal provisioning state 'Failed'.

I have tried creating the AKS cluster in several different Azure regions and have tried different VM sizes for the Nodes. I always get the same error. The AKS diagnostics don't detect any issues.

So I'm not even sure where to start trouble-shooting this!

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,148 questions
0 comments No comments
{count} votes

Accepted answer
  1. Manu Philip 18,681 Reputation points MVP
    2022-06-08T10:21:33.15+00:00

    I suggest you to try the following steps
    Login azure cli: az login

    Create an Azure ResourceGroup: az group create –name RG-K8S –location eastus

    Refresh the registration of the Microsoft.ContainerService resource provider: az provider register –namespace Microsoft.ContainerService

    Create aks cluster: az aks create --resource-group RG-K8S --name AKSTest --node-count 1 --enable-addons monitoring --generate-ssh-keys

    Hope, this helps !

    ----------

    --please don't forget to upvote and Accept as answer if the reply is helpful--


1 additional answer

Sort by: Most helpful
  1. vipullag-MSFT 26,391 Reputation points
    2022-06-08T09:22:50.117+00:00

    @airfrog7

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    Microsoft Learn related queries/issues are currently not supported on this Microsoft Q&A platform. Please check this supported products list here (more to be added later on).

    I would request you to share your Feedback or raise an issue using below links. That way, we can be sure your feedback is reached and addressed by the right team.

    https://learn.microsoft.com/en-in/learn/support/troubleshooting#report-feedback

    Hope that helps.
    Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.