Enabling managed identity for AKS

yatta 0 Reputation points
2023-06-06T12:02:25.49+00:00

I'm trying to enable Managed Identity on my AKS, to do that I run the command below;

az aks update -g myRg -n myAKS --enable-managed-identity

And it successfully finished. So after this point I don't see any new Managed Identity in "Managed Identity" resource list. Or no new entry in AKS' IAM.

How can I find that which Managed Identity I enabled for my AKS cluster?

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

1 answer

Sort by: Most helpful
  1. mutaz-msft 2,346 Reputation points Microsoft Employee
    2023-06-07T07:55:14.78+00:00

    Hi yatta,

    Once you enabled the managed identity on your AKS cluster, then you have to upgrade the node-image for your node pool, use this command to upgrade all node pools:

    az aks upgrade --resource-group myResourceGroup --name myAKSCluster --node-image-only
    

    Or this command to upgrade a specific node pool:

    az aks nodepool upgrade --resource-group myResourceGroup --cluster-name myAKSCluster --name mynodepool --node-image-only
    

    After that you can verify your AKS cluster if it is managed identity enabled using the following command:

    az aks show --resource-group myResourceGroup --name myAKSCluster -o json --query servicePrincipalProfile  
    

    And this command will show the managed identity resource ID:

    az aks show --resource-group myResourceGroup --name myAKSCluster  -o json --query identityProfile
    

    Please "Accept as Answer" if it helped, so that it can help others in the community looking for help on similar topics.

    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.