kubectl-plugins

aks-versions

List Kubernetes versions available in an Azure region.

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

Prints the versions AKS offers in a region, newest first, with default and preview flags, support plan and patch versions. Without --location it uses the region of the cluster in your current kube context (see AKS targeting).

FlagDescription
--locationAzure region, for example eastus
--patchesOne row per patch version, with the versions it can upgrade to
-o jsonJSON output
# Region of the cluster in your current kube context
kubectl aks-versions

# A specific region, with every patch version and its upgrade targets
kubectl aks-versions --location westeurope --patches

# Machine-readable, for scripts
kubectl aks-versions --location eastus -o json

The binary is named kubectl-aks_versions; make install creates it.