AKS and Resource Group Issue

sns 9,246 Reputation points

I have followed below blog stuck at 4th step under 'set up environment section' .
I created AKS with name k2 and Container reg with name 'k2reg3' and Resource group with few names but it is not working, Please refer attached screenshot so that you get idea.

Please help.


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.
1,781 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. srbhatta-MSFT 8,536 Reputation points Microsoft Employee

    Hello @sns ,
    Thanks for reaching out to Microsoft QnA. Happy to answer your question.
    Do you have multiple subscriptions in your account?
    The above error usually occurs if your account is set to use a different subscription that the one under which you have created the AKS cluster. Please make sure to select the correct subscription that contains the AKS resources.
    Check and list all the subscriptions in your account using:

    az account list --output table  

    Set the required subscription consisting of your AKS resources using:

    az account set --name <subscription name>  


    az account set --subscription <subscription-id>  

    Hope this helps. If you still face issues after following the above steps, please let me know and please do tag me in your response. Thank You.


    Please accept as answer and upvote if the information provided is helpful.