az aks get-credentials
SafeConnect to AKS
az aks get-credentials -g <rg> -n <cluster>
Merges AKS credentials into kubeconfig so kubectl works — the gateway to AKS operations.
Examples
az aks get-credentials -g k8s-rg -n prod-aksWire up kubectl
Syntax
az aks [get-credentials|list|show] -g rg -n name
Before you run it
Fetches credentials only.
Related commands
- kubectl config use-contextSwitch cluster context
- kubectl get nodesNode status
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store