auto_upgrade_profiles
Creates, updates, deletes, gets or lists an auto_upgrade_profiles resource.
Overview
| Name | auto_upgrade_profiles |
| Type | Resource |
| Id | azure.container_service_fleet.auto_upgrade_profiles |
Fields
The following fields are returned by SELECT queries:
- get
- list_by_fleet
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
autoUpgradeProfileStatus | object | The status of the auto upgrade profile. |
channel | string | Configures how auto-upgrade will be run. Required. Known values are: "Stable", "Rapid", "NodeImage", and "TargetKubernetesVersion". (Stable, Rapid, NodeImage, TargetKubernetesVersion) |
disabled | boolean | If set to False: the auto upgrade has effect - target managed clusters will be upgraded on schedule. If set to True: the auto upgrade has no effect - no upgrade will be run on the target managed clusters. This is a boolean and not an enum because enabled/disabled are all available states of the auto upgrade profile. By default, this is set to False. |
eTag | string | If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. |
longTermSupport | boolean | If upgrade channel is not TargetKubernetesVersion, this field must be False. If set to True: Fleet auto upgrade will continue generate update runs for patches of minor versions earlier than N-2 (where N is the latest supported minor version) if those minor versions support Long-Term Support (LTS). By default, this is set to False. For more information on AKS LTS, please see https://learn.microsoft.com/en-us/azure/aks/long-term-support _. |
nodeImageSelection | object | The node image upgrade to be applied to the target clusters in auto upgrade. |
provisioningState | string | The provisioning state of the AutoUpgradeProfile resource. Known values are: "Succeeded", "Failed", and "Canceled". (Succeeded, Failed, Canceled) |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
targetKubernetesVersion | string | This is the target Kubernetes version for auto-upgrade. The format must be {major version}.{minor version}. For example, "1.30". By default, this is empty. If upgrade channel is set to TargetKubernetesVersion, this field must not be empty. If upgrade channel is Rapid, Stable or NodeImage, this field must be empty. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
updateStrategyId | string | The resource id of the UpdateStrategy resource to reference. If not specified, the auto upgrade will run on all clusters which are members of the fleet. |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
autoUpgradeProfileStatus | object | The status of the auto upgrade profile. |
channel | string | Configures how auto-upgrade will be run. Required. Known values are: "Stable", "Rapid", "NodeImage", and "TargetKubernetesVersion". (Stable, Rapid, NodeImage, TargetKubernetesVersion) |
disabled | boolean | If set to False: the auto upgrade has effect - target managed clusters will be upgraded on schedule. If set to True: the auto upgrade has no effect - no upgrade will be run on the target managed clusters. This is a boolean and not an enum because enabled/disabled are all available states of the auto upgrade profile. By default, this is set to False. |
eTag | string | If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. |
longTermSupport | boolean | If upgrade channel is not TargetKubernetesVersion, this field must be False. If set to True: Fleet auto upgrade will continue generate update runs for patches of minor versions earlier than N-2 (where N is the latest supported minor version) if those minor versions support Long-Term Support (LTS). By default, this is set to False. For more information on AKS LTS, please see https://learn.microsoft.com/en-us/azure/aks/long-term-support _. |
nodeImageSelection | object | The node image upgrade to be applied to the target clusters in auto upgrade. |
provisioningState | string | The provisioning state of the AutoUpgradeProfile resource. Known values are: "Succeeded", "Failed", and "Canceled". (Succeeded, Failed, Canceled) |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
targetKubernetesVersion | string | This is the target Kubernetes version for auto-upgrade. The format must be {major version}.{minor version}. For example, "1.30". By default, this is empty. If upgrade channel is set to TargetKubernetesVersion, this field must not be empty. If upgrade channel is Rapid, Stable or NodeImage, this field must be empty. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
updateStrategyId | string | The resource id of the UpdateStrategy resource to reference. If not specified, the auto upgrade will run on all clusters which are members of the fleet. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, fleet_name, auto_upgrade_profile_name, subscription_id | Get a AutoUpgradeProfile. | |
list_by_fleet | select | resource_group_name, fleet_name, subscription_id | $top, $skipToken | List AutoUpgradeProfile resources by Fleet. |
create_or_update | insert | resource_group_name, fleet_name, auto_upgrade_profile_name, subscription_id | Create a AutoUpgradeProfile. | |
create_or_update | replace | resource_group_name, fleet_name, auto_upgrade_profile_name, subscription_id | Create a AutoUpgradeProfile. | |
delete | delete | resource_group_name, fleet_name, auto_upgrade_profile_name, subscription_id | Delete a AutoUpgradeProfile. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
auto_upgrade_profile_name | string | The name of the AutoUpgradeProfile resource. Required. |
fleet_name | string | The name of the Fleet resource. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string | |
$skipToken | string | The page-continuation token to use with a paged version of this API. Default value is None. |
$top | integer | The number of result items to return. Default value is None. |
SELECT examples
- get
- list_by_fleet
Get a AutoUpgradeProfile.
SELECT
id,
name,
autoUpgradeProfileStatus,
channel,
disabled,
eTag,
longTermSupport,
nodeImageSelection,
provisioningState,
systemData,
targetKubernetesVersion,
type,
updateStrategyId
FROM azure.container_service_fleet.auto_upgrade_profiles
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND fleet_name = '{{ fleet_name }}' -- required
AND auto_upgrade_profile_name = '{{ auto_upgrade_profile_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
List AutoUpgradeProfile resources by Fleet.
SELECT
id,
name,
autoUpgradeProfileStatus,
channel,
disabled,
eTag,
longTermSupport,
nodeImageSelection,
provisioningState,
systemData,
targetKubernetesVersion,
type,
updateStrategyId
FROM azure.container_service_fleet.auto_upgrade_profiles
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND fleet_name = '{{ fleet_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $top = '{{ $top }}'
AND $skipToken = '{{ $skipToken }}'
;
INSERT examples
- create_or_update
- Manifest
Create a AutoUpgradeProfile.
INSERT INTO azure.container_service_fleet.auto_upgrade_profiles (
properties,
resource_group_name,
fleet_name,
auto_upgrade_profile_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ fleet_name }}',
'{{ auto_upgrade_profile_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
eTag,
properties,
systemData,
type
;
# Description fields are for documentation purposes
- name: auto_upgrade_profiles
props:
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the auto_upgrade_profiles resource.
- name: fleet_name
value: "{{ fleet_name }}"
description: Required parameter for the auto_upgrade_profiles resource.
- name: auto_upgrade_profile_name
value: "{{ auto_upgrade_profile_name }}"
description: Required parameter for the auto_upgrade_profiles resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the auto_upgrade_profiles resource.
- name: properties
description: |
The resource-specific properties for this resource.
value:
provisioningState: "{{ provisioningState }}"
updateStrategyId: "{{ updateStrategyId }}"
channel: "{{ channel }}"
nodeImageSelection:
type: "{{ type }}"
disabled: {{ disabled }}
autoUpgradeProfileStatus:
lastTriggeredAt: "{{ lastTriggeredAt }}"
lastTriggerStatus: "{{ lastTriggerStatus }}"
lastTriggerError:
code: "{{ code }}"
message: "{{ message }}"
target: "{{ target }}"
details:
- code: "{{ code }}"
message: "{{ message }}"
target: "{{ target }}"
details: "{{ details }}"
additionalInfo: "{{ additionalInfo }}"
additionalInfo:
- type: "{{ type }}"
info: "{{ info }}"
lastTriggerUpgradeVersions:
- "{{ lastTriggerUpgradeVersions }}"
targetKubernetesVersion: "{{ targetKubernetesVersion }}"
longTermSupport: {{ longTermSupport }}
REPLACE examples
- create_or_update
Create a AutoUpgradeProfile.
REPLACE azure.container_service_fleet.auto_upgrade_profiles
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND fleet_name = '{{ fleet_name }}' --required
AND auto_upgrade_profile_name = '{{ auto_upgrade_profile_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
eTag,
properties,
systemData,
type;
DELETE examples
- delete
Delete a AutoUpgradeProfile.
DELETE FROM azure.container_service_fleet.auto_upgrade_profiles
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND fleet_name = '{{ fleet_name }}' --required
AND auto_upgrade_profile_name = '{{ auto_upgrade_profile_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;