Agent Pools - Get Available Agent Pool Versions
Gets a list of supported Kubernetes versions for the specified agent pool.
See supported Kubernetes versions for more details about the version lifecycle.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/availableAgentPoolVersions?api-version=2025-03-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
resource
|
path | True |
string minLength: 1maxLength: 90 |
The name of the resource group. The name is case insensitive. |
resource
|
path | True |
string minLength: 1maxLength: 63 pattern: ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$ |
The name of the managed cluster resource. |
subscription
|
path | True |
string (uuid) |
The ID of the target subscription. The value must be an UUID. |
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
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
Get available versions for agent pool
Sample request
GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/availableAgentPoolVersions?api-version=2025-03-01
Sample response
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/availableagentpoolversions",
"name": "default",
"properties": {
"agentPoolVersions": [
{
"kubernetesVersion": "1.12.7"
},
{
"kubernetesVersion": "1.12.8"
},
{
"default": true,
"kubernetesVersion": "1.13.5",
"isPreview": true
}
]
},
"type": "Microsoft.ContainerService/managedClusters/availableAgentpoolVersions"
}
Definitions
Name | Description |
---|---|
Agent |
The list of available versions for an agent pool. |
Agent |
List of versions available for agent pool. |
Cloud |
An error response from the Container service. |
Cloud |
An error response from the Container service. |
AgentPoolAvailableVersions
The list of available versions for an agent pool.
Name | Type | Description |
---|---|---|
id |
string |
The ID of the agent pool version list. |
name |
string |
The name of the agent pool version list. |
properties.agentPoolVersions |
List of versions available for agent pool. |
|
type |
string |
Type of the agent pool version list. |
AgentPoolVersions
List of versions available for agent pool.
Name | Type | Description |
---|---|---|
default |
boolean |
Whether this version is the default agent pool version. |
isPreview |
boolean |
Whether Kubernetes version is currently in preview. |
kubernetesVersion |
string |
The Kubernetes version (major.minor.patch). |
CloudError
An error response from the Container service.
Name | Type | Description |
---|---|---|
error |
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 |
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. |