Stuck in Running when trying to start an AKS Cluster

Marco Nash 0 Reputation points
2025-03-21T07:05:33.7366667+00:00

I'm trying to create an AKS cluster using the Azure CLI with Kubernetes version 1.32.0. The cluster uses a service principal for authentication and has autoscaler enabled (1–3 nodes).

The cluster has been stuck in the “Creating” state for a long time. In the Azure Activity Log, I keep seeing repeated “Get Managed Cluster” entries, but the deployment never finishes.

az aks create \

--resource-group myResourceGroup \

--name myAKSCluster \

--node-count 1 \

--max-pods 30 \

--kubernetes-version 1.32.0 \

--generate-ssh-keys \

--enable-cluster-autoscaler \

--min-count 1 \

--max-count 3 \

I use this command with service principal and secret or managed identity. I'm currently trying a different kubernetes version.

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,366 questions
{count} votes

2 answers

Sort by: Most helpful
  1. anashetty 3,140 Reputation points Microsoft External Staff
    2025-03-21T08:52:01.69+00:00

    Hi Marco Nash,

    Could you please let me know in which region are you trying to deploy AKS cluster.

    I have tried from my end with the command you have provided, AKS cluster has created successfully. I have deployed in the region East US.

    User's image

    Check your Azure subscription has sufficient quotas for the resources (vCPUs, nodes, etc.) you're trying to provision. You can check your quotas in the Azure portal under Subscriptions > Usage + quotas.

    Once trying deploying AKS cluster in another region.

    If you have any further queries, let me know. If the information is helpful, please click on Upvote.

    0 comments No comments

  2. LISBOA-4826 240 Reputation points
    2025-03-22T16:20:51.4833333+00:00

    Hi Marco Nash,

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.

    I understand that you are facing some issues during the creation.

    A part of the question from my colleague, can you try the following?

    • Check the Quotas/Limits under your subscription level
    • Check SKU size you are trying to create
    • Change the Region if possible
    • Try from Azure Portal the creation of this AKS Cluster and let me know the outcome? Details here.

    From AZ CLI, try the following, but as I said before, please double check your Quota for Regions+SKU sizes.

    Also let's Enable the AutoScaler, after AKS creation.

    # Variables
    RESOURCE_GROUP="myResourceGroup"
    CLUSTER_NAME="myAKSCluster"
    LOCATION="eastus"
    NODE_VM_SIZE="Standard_D5_v2" ####the size here it's just a example, change it for what you want
    
    # Create a resource group
    az group create --name $RESOURCE_GROUP --location $LOCATION
    
    # Create the AKS cluster
    az aks create \
        --resource-group $RESOURCE_GROUP \
        --name $CLUSTER_NAME \
        --node-vm-size $NODE_VM_SIZE \
        --node-count 3 \
        --enable-addons monitoring \
        --generate-ssh-keys
    

    More details about Lmitations/Quotas

    https://learn.microsoft.com/en-us/azure/aks/quotas-skus-regions

    If any of the options above works, please open a ticket for ou AKS team using Azure Portal.

    Anyway I will be more than happy to help you, if you reply here too.

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    If you have any other questions or are still running into more issues, let me know in the "comments" and I would be happy to help you.

    Thank You.

    Lisboa

    0 comments No comments

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.