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

All containers, kubernetes and secrets commands · Azure CLI 2 cheatsheet

Was this page helpful?