What does `az aks get-credentials` actually write and what is kubelogin?
IntermediateConceptAKS and ACR
Answer
It merges a context into ~/.kube/config. For an Entra-integrated cluster, the user entry uses an exec plugin calling kubelogin to fetch Entra tokens. --admin gives the local cluster-admin certificate (only if local accounts are enabled).
Convert to non-interactive modes for automation:
az aks get-credentials -g rg -n aks --overwrite-existing
kubelogin convert-kubeconfig -l azurecli # reuse the az login session (CI)
kubelogin convert-kubeconfig -l workloadidentity # inside a pod with workload identity
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