你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

Microsoft。ContainerService fleets/autoUpgradeProfiles 2026-03-02-preview

Bicep 资源定义

可以使用目标操作部署机群/autoUpgradeProfiles 资源类型:

有关每个 API 版本中已更改属性的列表,请参阅 更改日志。

资源格式

若要创建 Microsoft.ContainerService/fleets/autoUpgradeProfiles 资源,请将以下 Bicep 添加到模板。

resource symbolicname 'Microsoft.ContainerService/fleets/autoUpgradeProfiles@2026-03-02-preview' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    autoUpgradeProfileStatus: {}
    channel: 'string'
    disabled: bool
    longTermSupport: bool
    nodeImageSelection: {
      type: 'string'
    }
    targetKubernetesVersion: 'string'
    updateStrategyId: 'string'
  }
}

属性值

Microsoft.ContainerService/fleets/autoUpgradeProfiles

Name Description 价值
name 资源名称 string

Constraints:
最小长度 = 1
最大长度 = 50
模式 = ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$ (必需)
父级 在 Bicep 中,你可以指定子资源的父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。

更多信息请参见Child 资源 outside parent resource。
类型资源的符号名称:舰队
properties 此资源的资源特定属性。 AutoUpgradeProfileProperties

AutoUpgradeNodeImageSelection

Name Description 价值
类型 节点映像升级类型。 “一致”
“最新”(必填)

AutoUpgradeProfileProperties

Name Description 价值
autoUpgradeProfileStatus 自动升级配置文件的状态。 AutoUpgradeProfileStatus
通道 配置自动升级的运行方式。 “NodeImage”
“Rapid”
“稳定”
'TargetKubernetesVersion'(必需)
禁用的 如果设置为 False:自动升级生效 - 目标托管群集将按计划升级。
如果设置为 True:自动升级不起作用 - 不会在目标托管群集上运行升级。
这是一个布尔值,而不是枚举,因为启用/禁用是自动升级配置文件的所有可用状态。
默认情况下,此值设置为 False。
bool
长期支持 如果升级通道不是 TargetKubernetesVersion,则此字段必须为 False。
如果设置为 True:队列自动升级将继续为 N-2 之前的次要版本的补丁生成更新运行
(其中 N 是最新支持的次要版本),如果这些次要版本支持 Long-Term 支持 (LTS)。
默认情况下,此值设置为 False。
有关 AKS LTS 的详细信息,请参阅 /azure/aks/long-term-support
bool
nodeImage选择 要应用于自动升级中目标群集的节点映像升级。 AutoUpgradeNodeImageSelection
目标Kubernetes版本 这是自动升级的目标 Kubernetes 版本。 格式必须是 {major version}.{minor version}。 例如,“1.30”。
默认情况下,这是空的。
如果升级通道设置为 TargetKubernetesVersion,则此字段不得为空。
如果升级通道不是TargetKubernetesVersion,该字段必须是空的。
字符串
更新策略 ID 要引用的 UpdateStrategy 资源的资源 ID。 如果未指定,则自动升级将在属于车队成员的所有群集上运行。 字符串

AutoUpgradeProfileStatus

Name Description 价值

ARM 模板资源定义

可以使用目标操作部署机群/autoUpgradeProfiles 资源类型:

用法示例

资源格式

若要创建 Microsoft.ContainerService/fleets/autoUpgradeProfiles 资源,请将以下 JSON 添加到模板。

{
  "type": "Microsoft.ContainerService/fleets/autoUpgradeProfiles",
  "apiVersion": "2026-03-02-preview",
  "name": "string",
  "properties": {
    "autoUpgradeProfileStatus": {
    },
    "channel": "string",
    "disabled": "bool",
    "longTermSupport": "bool",
    "nodeImageSelection": {
      "type": "string"
    },
    "targetKubernetesVersion": "string",
    "updateStrategyId": "string"
  }
}

属性值

Microsoft.ContainerService/fleets/autoUpgradeProfiles

Name Description 价值
apiVersion API 版本 '2026-03-02-预览'
name 资源名称 string

Constraints:
最小长度 = 1
最大长度 = 50
模式 = ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$ (必需)
properties 此资源的资源特定属性。 AutoUpgradeProfileProperties
类型 资源类型 “Microsoft.ContainerService/fleets/autoUpgradeProfiles”

AutoUpgradeNodeImageSelection

Name Description 价值
类型 节点映像升级类型。 “一致”
“最新”(必填)

AutoUpgradeProfileProperties

Name Description 价值
autoUpgradeProfileStatus 自动升级配置文件的状态。 AutoUpgradeProfileStatus
通道 配置自动升级的运行方式。 “NodeImage”
“Rapid”
“稳定”
'TargetKubernetesVersion'(必需)
禁用的 如果设置为 False:自动升级生效 - 目标托管群集将按计划升级。
如果设置为 True:自动升级不起作用 - 不会在目标托管群集上运行升级。
这是一个布尔值,而不是枚举,因为启用/禁用是自动升级配置文件的所有可用状态。
默认情况下,此值设置为 False。
bool
长期支持 如果升级通道不是 TargetKubernetesVersion,则此字段必须为 False。
如果设置为 True:队列自动升级将继续为 N-2 之前的次要版本的补丁生成更新运行
(其中 N 是最新支持的次要版本),如果这些次要版本支持 Long-Term 支持 (LTS)。
默认情况下,此值设置为 False。
有关 AKS LTS 的详细信息,请参阅 /azure/aks/long-term-support
bool
nodeImage选择 要应用于自动升级中目标群集的节点映像升级。 AutoUpgradeNodeImageSelection
目标Kubernetes版本 这是自动升级的目标 Kubernetes 版本。 格式必须是 {major version}.{minor version}。 例如,“1.30”。
默认情况下,这是空的。
如果升级通道设置为 TargetKubernetesVersion,则此字段不得为空。
如果升级通道不是TargetKubernetesVersion,该字段必须是空的。
字符串
更新策略 ID 要引用的 UpdateStrategy 资源的资源 ID。 如果未指定,则自动升级将在属于车队成员的所有群集上运行。 字符串

AutoUpgradeProfileStatus

Name Description 价值

Terraform (AzAPI 提供程序)资源定义

可以使用目标操作部署机群/autoUpgradeProfiles 资源类型:

  • 资源组 关于每个API版本中变更属性的列表,请参见 更改日志。

资源格式

若要创建 Microsoft.ContainerService/fleets/autoUpgradeProfiles 资源,请将以下 Terraform 添加到模板。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.ContainerService/fleets/autoUpgradeProfiles@2026-03-02-preview"
  name = "string"
  parent_id = "string"
  body = {
    properties = {
      autoUpgradeProfileStatus = {
      }
      channel = "string"
      disabled = bool
      longTermSupport = bool
      nodeImageSelection = {
        type = "string"
      }
      targetKubernetesVersion = "string"
      updateStrategyId = "string"
    }
  }
}

属性值

Microsoft.ContainerService/fleets/autoUpgradeProfiles

Name Description 价值
name 资源名称 string

Constraints:
最小长度 = 1
最大长度 = 50
模式 = ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$ (必需)
parent_id 此资源的父资源的 ID。 类型资源的 ID:车队
properties 此资源的资源特定属性。 AutoUpgradeProfileProperties
类型 资源类型 “Microsoft。ContainerService/fleets/autoUpgradeProfiles@2026-03-02-preview”

AutoUpgradeNodeImageSelection

Name Description 价值
类型 节点映像升级类型。 “一致”
“最新”(必填)

AutoUpgradeProfileProperties

Name Description 价值
autoUpgradeProfileStatus 自动升级配置文件的状态。 AutoUpgradeProfileStatus
通道 配置自动升级的运行方式。 “NodeImage”
“Rapid”
“稳定”
'TargetKubernetesVersion'(必需)
禁用的 如果设置为 False:自动升级生效 - 目标托管群集将按计划升级。
如果设置为 True:自动升级不起作用 - 不会在目标托管群集上运行升级。
这是一个布尔值,而不是枚举,因为启用/禁用是自动升级配置文件的所有可用状态。
默认情况下,此值设置为 False。
bool
长期支持 如果升级通道不是 TargetKubernetesVersion,则此字段必须为 False。
如果设置为 True:队列自动升级将继续为 N-2 之前的次要版本的补丁生成更新运行
(其中 N 是最新支持的次要版本),如果这些次要版本支持 Long-Term 支持 (LTS)。
默认情况下,此值设置为 False。
有关 AKS LTS 的详细信息,请参阅 /azure/aks/long-term-support
bool
nodeImage选择 要应用于自动升级中目标群集的节点映像升级。 AutoUpgradeNodeImageSelection
目标Kubernetes版本 这是自动升级的目标 Kubernetes 版本。 格式必须是 {major version}.{minor version}。 例如,“1.30”。
默认情况下,这是空的。
如果升级通道设置为 TargetKubernetesVersion,则此字段不得为空。
如果升级通道不是TargetKubernetesVersion,该字段必须是空的。
字符串
更新策略 ID 要引用的 UpdateStrategy 资源的资源 ID。 如果未指定,则自动升级将在属于车队成员的所有群集上运行。 字符串

AutoUpgradeProfileStatus

Name Description 价值