Interview Prep/Azure/AKS and ACR

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
Azure All Azure questions Roadmap: AKS & Azure DevOps

More on AKS and ACR