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, thenaz 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.
More on AKS and ACR
What does Microsoft manage in AKS and what do you manage?BeginnerWhat is the difference between system and user node pools?BeginnerCompare the AKS networking options: kubenet, Azure CNI, Azure CNI Overlay, Azure CNI Powered by Cilium.AdvancedHow many IPs does an AKS subnet need with flat Azure CNI vs Overlay?AdvancedWhat are the AKS tiers (Free, Standard, Premium)?IntermediateHow do AKS Kubernetes version upgrades work?Intermediate