aks-versions
List Kubernetes versions available in an Azure region.
Install
kubectl-aksversionscurl -fsSL https://kubectl-plugins.dev/install.sh | sh -s -- aksversions
Download a binary instead
macOS (Apple silicon) · macOS (Intel) · Linux (amd64) · Linux (arm64) · Windows (amd64)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).
| Flag | Description |
|---|---|
--location | Azure region, for example eastus |
--patches | One row per patch version, with the versions it can upgrade to |
-o json | JSON 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.