Managed Clusters - Get Upgrade Profile

Gets the upgrade profile of a managed cluster.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/upgradeProfiles/default?api-version=2024-07-01

URI Parameters

Name In Required Type Description
resourceGroupName
path True

string

The name of the resource group. The name is case insensitive.

resourceName
path True

string

The name of the managed cluster resource.

Regex pattern: ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$

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

ManagedClusterUpgradeProfile

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

Get Upgrade Profile for Managed Cluster

Sample request

GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/upgradeProfiles/default?api-version=2024-07-01

Sample response

{
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/upgradeprofiles/default",
  "name": "default",
  "properties": {
    "agentPoolProfiles": [
      {
        "kubernetesVersion": "1.7.7",
        "name": "agent",
        "osType": "Linux",
        "upgrades": [
          {
            "kubernetesVersion": "1.7.9"
          },
          {
            "kubernetesVersion": "1.7.11",
            "isPreview": true
          }
        ]
      }
    ],
    "controlPlaneProfile": {
      "kubernetesVersion": "1.7.7",
      "name": "master",
      "osType": "Linux",
      "upgrades": [
        {
          "kubernetesVersion": "1.7.9",
          "isPreview": true
        },
        {
          "kubernetesVersion": "1.7.11"
        }
      ]
    }
  },
  "type": "Microsoft.ContainerService/managedClusters/upgradeprofiles"
}

Definitions

Name Description
CloudError

An error response from the Container service.

CloudErrorBody

An error response from the Container service.

ManagedClusterPoolUpgradeProfile

The list of available upgrade versions.

ManagedClusterUpgradeProfile

The list of available upgrades for compute pools.

OSType

The operating system type. The default is Linux.

Upgrades

List of orchestrator types and versions available for upgrade.

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.

ManagedClusterPoolUpgradeProfile

The list of available upgrade versions.

Name Type Default value Description
kubernetesVersion

string

The Kubernetes version (major.minor.patch).

name

string

The Agent Pool name.

osType

OSType

Linux

The operating system type. The default is Linux.

upgrades

Upgrades[]

List of orchestrator types and versions available for upgrade.

ManagedClusterUpgradeProfile

The list of available upgrades for compute pools.

Name Type Description
id

string

The ID of the upgrade profile.

name

string

The name of the upgrade profile.

properties.agentPoolProfiles

ManagedClusterPoolUpgradeProfile[]

The list of available upgrade versions for agent pools.

properties.controlPlaneProfile

ManagedClusterPoolUpgradeProfile

The list of available upgrade versions for the control plane.

type

string

The type of the upgrade profile.

OSType

The operating system type. The default is Linux.

Name Type Description
Linux

string

Use Linux.

Windows

string

Use Windows.

Upgrades

List of orchestrator types and versions available for upgrade.

Name Type Description
isPreview

boolean

Whether the Kubernetes version is currently in preview.

kubernetesVersion

string

The Kubernetes version (major.minor.patch).