Interview Prep/Azure/AKS and ACR Errors

`docker push` fails with `unauthorized: authentication required` after `az acr login` succeeded an hour ago.

BeginnerTroubleshootingAKS and ACR Errors
Answer

Likely causes → The ACR refresh token from az acr login expired (about 3 hours), or the identity has only AcrPull.

Diagnose → Re-run az acr login -n acrshop; check roles: az role assignment list --assignee <id> --scope <acrId>.

Fix → Log in again right before pushing; grant AcrPush for push.

Prevent → Log in within the same job step sequence as the push.

Azure All Azure questions Roadmap: AKS & Azure DevOps

More on AKS and ACR Errors