Azure CLI 2 · Containers, Kubernetes and secrets
Connect kubectl to AKS
Merge the cluster's credentials into your kubeconfig.
az aks get-credentials --resource-group my-rg --name my-cluster
Official Azure CLI 2 documentation
More containers, kubernetes and secrets commands
- Sign Docker in to a registry
- Build an image in the registry
- Scale an AKS node pool
- Read a Key Vault secret
- Store a Key Vault secret
- Deploy a Bicep template
All containers, kubernetes and secrets commands · Azure CLI 2 cheatsheet