Connecting to AKS cluster

After you have installed the Azure CLI on your client machine, follow the steps given below to connect to the AKS cluster before you can start deploying the application.

  1. Connect to your Azure account by using your subscription ID in the following command.

    az account set --subscription <subscription ID of your Azure account>

    You will be prompted to enter your credentials of your Azure account.

    If you have multiple Azure subscriptions, select the appropriate subscription ID in which the resources should be billed.

  2. Run the following command to authenticate as a user and connect to the AKS cluster.

    az aks get-credentials --resource-group <Name of the resource group> --name <Name of the cluster>