Interview Prep/Azure/AKS and ACR Errors

After enabling Entra integration and disabling local accounts, the CI pipeline fails with `error: You must be logged in to the server (Unauthorized)`.

IntermediateTroubleshootingAKS and ACR Errors
Answer

Likely causes → CI was using az aks get-credentials --admin (local admin cert), which no longer works, or kubeconfig still uses interactive kubelogin.

Diagnose → Check the pipeline's credential step and kubeconfig exec args.

Fix →

az aks get-credentials -g rg -n aks --overwrite-existing
kubelogin convert-kubeconfig -l azurecli

Grant the CI identity an AKS RBAC role.

Prevent → Use Entra-based CI auth before disabling local accounts.

Azure All Azure questions Roadmap: AKS & Azure DevOps

More on AKS and ACR Errors