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 on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store