AKS Commands

Get the resource ID for the existing AKS cluster

Get the resource ID:

SP_ID=$(az aks show --resource-group aksrg --name pdtaks\
    --query servicePrincipalProfile.clientId -o tsv)
az ad sp credential list --id $SP_ID --query "[].endDate" -o tsv

From: AKS ErrImagePull and ImagePullBackOff on AKS after a year

Comments