Managed Clusters - List Kubernetes Versions

Gets a list of supported Kubernetes versions in the specified subscription.
Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and details on preview status of the version

GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/kubernetesVersions?api-version=2024-09-01

URI Parameters

Name In Required Type Description
location
path True

string

The name of the Azure region.

subscriptionId
path True

string

uuid

The ID of the target subscription. The value must be an UUID.

api-version
query True

string

The API version to use for this operation.

Responses

Name Type Description
200 OK

KubernetesVersionListResult

OK

Other Status Codes

CloudError

Error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

List Kubernetes Versions

Sample request

GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/location1/kubernetesVersions?api-version=2024-09-01

Sample response

{
  "values": [
    {
      "version": "1.23",
      "capabilities": {
        "supportPlan": [
          "KubernetesOfficial"
        ]
      },
      "patchVersions": {
        "1.23.12": {
          "upgrades": [
            "1.23.15",
            "1.24.6",
            "1.24.9"
          ]
        },
        "1.23.15": {
          "upgrades": [
            "1.24.6",
            "1.24.9"
          ]
        }
      }
    },
    {
      "version": "1.24",
      "isDefault": true,
      "capabilities": {
        "supportPlan": [
          "KubernetesOfficial"
        ]
      },
      "patchVersions": {
        "1.24.6": {
          "upgrades": [
            "1.24.9",
            "1.25.4",
            "1.25.5"
          ]
        },
        "1.24.9": {
          "upgrades": [
            "1.25.4",
            "1.25.5"
          ]
        }
      }
    },
    {
      "version": "1.25",
      "capabilities": {
        "supportPlan": [
          "KubernetesOfficial"
        ]
      },
      "patchVersions": {
        "1.25.4": {
          "upgrades": [
            "1.25.5",
            "1.26.0"
          ]
        },
        "1.25.5": {
          "upgrades": [
            "1.26.0"
          ]
        }
      }
    },
    {
      "version": "1.26",
      "isPreview": true,
      "capabilities": {
        "supportPlan": [
          "KubernetesOfficial"
        ]
      },
      "patchVersions": {
        "1.26.0": {
          "upgrades": []
        }
      }
    }
  ]
}

Definitions

Name Description
CloudError

An error response from the Container service.

CloudErrorBody

An error response from the Container service.

KubernetesPatchVersion

Kubernetes patch version profile

KubernetesSupportPlan

Different support tiers for AKS managed clusters

KubernetesVersion

Kubernetes version profile for given major.minor release.

KubernetesVersionCapabilities

Capabilities on this Kubernetes version.

KubernetesVersionListResult

Hold values properties, which is array of KubernetesVersion

CloudError

An error response from the Container service.

Name Type Description
error

CloudErrorBody

Details about the error.

CloudErrorBody

An error response from the Container service.

Name Type Description
code

string

An identifier for the error. Codes are invariant and are intended to be consumed programmatically.

details

CloudErrorBody[]

A list of additional details about the error.

message

string

A message describing the error, intended to be suitable for display in a user interface.

target

string

The target of the particular error. For example, the name of the property in error.

KubernetesPatchVersion

Kubernetes patch version profile

Name Type Description
upgrades

string[]

Possible upgrade path for given patch version

KubernetesSupportPlan

Different support tiers for AKS managed clusters

Name Type Description
AKSLongTermSupport

string

Support for the version extended past the KubernetesOfficial support of 1 year. AKS continues to patch CVEs for another 1 year, for a total of 2 years of support.

KubernetesOfficial

string

Support for the version is the same as for the open source Kubernetes offering. Official Kubernetes open source community support versions for 1 year after release.

KubernetesVersion

Kubernetes version profile for given major.minor release.

Name Type Description
capabilities

KubernetesVersionCapabilities

Capabilities on this Kubernetes version.

isDefault

boolean

Whether this version is default.

isPreview

boolean

Whether this version is in preview mode.

patchVersions

<string,  KubernetesPatchVersion>

Patch versions of Kubernetes release

version

string

major.minor version of Kubernetes release

KubernetesVersionCapabilities

Capabilities on this Kubernetes version.

Name Type Description
supportPlan

KubernetesSupportPlan[]

Different support tiers for AKS managed clusters

KubernetesVersionListResult

Hold values properties, which is array of KubernetesVersion

Name Type Description
values

KubernetesVersion[]

Array of AKS supported Kubernetes versions.