Interview Prep/Azure/AKS and ACR

How do you authenticate to ACR?

BeginnerConceptAKS and ACR
Answer
  • Humans: az acr login -n acrshop (uses Entra token, writes a Docker credential).
  • AKS: kubelet identity with AcrPull (az aks update --attach-acr acrshop).
  • CI: OIDC identity with AcrPush, then az acr login.
  • Repository-scoped tokens: scope maps for external systems that cannot use Entra.
  • Admin user: a single shared username/password. Disable it (--admin-enabled false).

If Docker is not available (some CI agents), az acr login -n acrshop --expose-token returns a token to pass to docker login or other tools as the password with username 00000000-0000-0000-0000-000000000000.

Azure All Azure questions Roadmap: AKS & Azure DevOps

More on AKS and ACR