kubectl-plugins

aks

Inspect and operate an AKS cluster.

Install kubectl-aks
curl -fsSL https://kubectl-plugins.dev/install.sh | sh -s -- aks
Download a binary insteadmacOS (Apple silicon) · macOS (Intel) · Linux (amd64) · Linux (arm64) · Windows (amd64)
Put the binary on your PATH as kubectl-aks, or build from source.
kubectl aks <command> [flags]

Uses the shared AKS flags.

CommandDescription
listList AKS clusters across your subscriptions (or --subscription, -g)
showSummary of the current cluster
describeSummary plus available upgrade versions for the control plane and each pool
upgrade --kubernetes-version VUpgrade the cluster
start / stopStart or stop the cluster; does nothing if it is already in that state
rotate-certsRotate cluster certificates (asks to confirm unless -y)
# Discover clusters
kubectl aks list
kubectl aks list --subscription 00000000-0000-0000-0000-000000000000
kubectl aks list -g my-rg

# Inspect the cluster behind your current kube context
kubectl aks show
kubectl aks describe
kubectl aks describe -o json

# Upgrade: check what is available, then upgrade
kubectl aks describe
kubectl aks upgrade --kubernetes-version 1.30.4
kubectl aks upgrade --kubernetes-version 1.30.4 --no-wait

# Stop a dev cluster overnight, start it in the morning
kubectl aks stop
kubectl aks start

# Target a cluster explicitly
kubectl aks show --subscription SUB -g my-rg --cluster my-aks

# Rotate certificates without the prompt
kubectl aks rotate-certs -y

When list searches several subscriptions it skips ones your credential cannot read.