πΎKubernetes
RG
R
SP_ID=$(az aks show --resource-group <RG> --name <R> --query servicePrincipalProfile.clientId -o tsv)
az ad app credential list --id "$SP_ID" --query "[].endDateTime" -o tsvSP_ID=$(az aks show --resource-group <RG> --name <R> --query servicePrincipalProfile.clientId -o tsv)
SP_SECRET=$(az ad app credential reset --id "$SP_ID" --query password -o tsv)
az aks update-credentials --resource-group <RG> --name <R> --reset-service-principal --service-principal "$SP_ID" --client-secret "${SP_SECRET}"az aks show --resource-group <RG> --name <R> --query addonProfilesaz aks get-credentials --resource-group <RG> --name <R>
kubectl get --raw / | jq .Last updated