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

Microsoft.ContainerService 车队

Bicep 资源定义

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

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

资源格式

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

resource symbolicname 'Microsoft.ContainerService/fleets@2024-05-02-preview' = {
  identity: {
    type: 'string'
    userAssignedIdentities: {
      {customized property}: {}
    }
  }
  location: 'string'
  name: 'string'
  properties: {
    hubProfile: {
      agentProfile: {
        subnetId: 'string'
        vmSize: 'string'
      }
      apiServerAccessProfile: {
        enablePrivateCluster: bool
        enableVnetIntegration: bool
        subnetId: 'string'
      }
      dnsPrefix: 'string'
    }
  }
  tags: {
    {customized property}: 'string'
  }
}

属性值

AgentProfile

名字 描述 价值
subnetId 机队中心节点将在启动时加入的子网的 ID。 如果未指定,将生成和使用 vnet 和子网。 字符串
vmSize 机队中心的虚拟机大小。 字符串

APIServerAccessProfile

名字 描述 价值
enablePrivateCluster 是否创建舰队中心作为专用群集。 bool
enableVnetIntegration 是否为 Fleet 中心启用 apiserver vnet 集成。 bool
subnetId 启用 apiserver vnet 集成时要使用的子网。 使用 BYO vnet 创建新机队时需要用到它。 字符串

FleetHubProfile

名字 描述 价值
agentProfile 舰队中心的代理配置文件。 AgentProfile
apiServerAccessProfile 机队中心 API 服务器的访问配置文件。 APIServerAccessProfile
dnsPrefix 用于为舰队中心创建 FQDN 的 DNS 前缀。 字符串

约束:
最小长度 = 1
最大长度 = 54
Pattern = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][a-zA-Z0-9-]{0,52}[a-zA-Z0-9]$

FleetProperties

名字 描述 价值
hubProfile FleetHubProfile 配置舰队的中心。 FleetHubProfile

ManagedServiceIdentity

名字 描述 价值
类型 托管服务标识的类型(其中允许 SystemAssigned 和 UserAssigned 类型)。 “None”
“SystemAssigned”
“SystemAssigned,UserAssigned”
“UserAssigned”(必需)
userAssignedIdentities 与资源关联的用户分配标识集。 userAssignedIdentities 字典密钥将为 ARM 资源 ID,格式为“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。 字典值可以是请求中的空对象({})。 UserAssignedIdentities

Microsoft.ContainerService/fleets

名字 描述 价值
身份 托管标识。 ManagedServiceIdentity
位置 资源所在的地理位置 string (必需)
名字 资源名称 字符串

约束:
最小长度 = 1
最大长度 = 63
模式 = ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$ (必需)
性能 此资源的资源特定属性。 FleetProperties
标签 资源标记 标记名称和值的字典。 请参阅模板 中的 标记

TrackedResourceTags

名字 描述 价值

UserAssignedIdentities

名字 描述 价值

UserAssignedIdentity

名字 描述 价值

ARM 模板资源定义

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

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

资源格式

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

{
  "type": "Microsoft.ContainerService/fleets",
  "apiVersion": "2024-05-02-preview",
  "name": "string",
  "identity": {
    "type": "string",
    "userAssignedIdentities": {
      "{customized property}": {
      }
    }
  },
  "location": "string",
  "properties": {
    "hubProfile": {
      "agentProfile": {
        "subnetId": "string",
        "vmSize": "string"
      },
      "apiServerAccessProfile": {
        "enablePrivateCluster": "bool",
        "enableVnetIntegration": "bool",
        "subnetId": "string"
      },
      "dnsPrefix": "string"
    }
  },
  "tags": {
    "{customized property}": "string"
  }
}

属性值

AgentProfile

名字 描述 价值
subnetId 机队中心节点将在启动时加入的子网的 ID。 如果未指定,将生成和使用 vnet 和子网。 字符串
vmSize 机队中心的虚拟机大小。 字符串

APIServerAccessProfile

名字 描述 价值
enablePrivateCluster 是否创建舰队中心作为专用群集。 bool
enableVnetIntegration 是否为 Fleet 中心启用 apiserver vnet 集成。 bool
subnetId 启用 apiserver vnet 集成时要使用的子网。 使用 BYO vnet 创建新机队时需要用到它。 字符串

FleetHubProfile

名字 描述 价值
agentProfile 舰队中心的代理配置文件。 AgentProfile
apiServerAccessProfile 机队中心 API 服务器的访问配置文件。 APIServerAccessProfile
dnsPrefix 用于为舰队中心创建 FQDN 的 DNS 前缀。 字符串

约束:
最小长度 = 1
最大长度 = 54
Pattern = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][a-zA-Z0-9-]{0,52}[a-zA-Z0-9]$

FleetProperties

名字 描述 价值
hubProfile FleetHubProfile 配置舰队的中心。 FleetHubProfile

ManagedServiceIdentity

名字 描述 价值
类型 托管服务标识的类型(其中允许 SystemAssigned 和 UserAssigned 类型)。 “None”
“SystemAssigned”
“SystemAssigned,UserAssigned”
“UserAssigned”(必需)
userAssignedIdentities 与资源关联的用户分配标识集。 userAssignedIdentities 字典密钥将为 ARM 资源 ID,格式为“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。 字典值可以是请求中的空对象({})。 UserAssignedIdentities

Microsoft.ContainerService/fleets

名字 描述 价值
apiVersion API 版本 '2024-05-02-preview'
身份 托管标识。 ManagedServiceIdentity
位置 资源所在的地理位置 string (必需)
名字 资源名称 字符串

约束:
最小长度 = 1
最大长度 = 63
模式 = ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$ (必需)
性能 此资源的资源特定属性。 FleetProperties
标签 资源标记 标记名称和值的字典。 请参阅模板 中的 标记
类型 资源类型 “Microsoft.ContainerService/fleets”

TrackedResourceTags

名字 描述 价值

UserAssignedIdentities

名字 描述 价值

UserAssignedIdentity

名字 描述 价值

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

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

  • 资源组

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

资源格式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.ContainerService/fleets@2024-05-02-preview"
  name = "string"
  identity = {
    type = "string"
    userAssignedIdentities = {
      {customized property} = {
      }
    }
  }
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = jsonencode({
    properties = {
      hubProfile = {
        agentProfile = {
          subnetId = "string"
          vmSize = "string"
        }
        apiServerAccessProfile = {
          enablePrivateCluster = bool
          enableVnetIntegration = bool
          subnetId = "string"
        }
        dnsPrefix = "string"
      }
    }
  })
}

属性值

AgentProfile

名字 描述 价值
subnetId 机队中心节点将在启动时加入的子网的 ID。 如果未指定,将生成和使用 vnet 和子网。 字符串
vmSize 机队中心的虚拟机大小。 字符串

APIServerAccessProfile

名字 描述 价值
enablePrivateCluster 是否创建舰队中心作为专用群集。 bool
enableVnetIntegration 是否为 Fleet 中心启用 apiserver vnet 集成。 bool
subnetId 启用 apiserver vnet 集成时要使用的子网。 使用 BYO vnet 创建新机队时需要用到它。 字符串

FleetHubProfile

名字 描述 价值
agentProfile 舰队中心的代理配置文件。 AgentProfile
apiServerAccessProfile 机队中心 API 服务器的访问配置文件。 APIServerAccessProfile
dnsPrefix 用于为舰队中心创建 FQDN 的 DNS 前缀。 字符串

约束:
最小长度 = 1
最大长度 = 54
Pattern = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][a-zA-Z0-9-]{0,52}[a-zA-Z0-9]$

FleetProperties

名字 描述 价值
hubProfile FleetHubProfile 配置舰队的中心。 FleetHubProfile

ManagedServiceIdentity

名字 描述 价值
类型 托管服务标识的类型(其中允许 SystemAssigned 和 UserAssigned 类型)。 “None”
“SystemAssigned”
“SystemAssigned,UserAssigned”
“UserAssigned”(必需)
userAssignedIdentities 与资源关联的用户分配标识集。 userAssignedIdentities 字典密钥将为 ARM 资源 ID,格式为“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。 字典值可以是请求中的空对象({})。 UserAssignedIdentities

Microsoft.ContainerService/fleets

名字 描述 价值
身份 托管标识。 ManagedServiceIdentity
位置 资源所在的地理位置 string (必需)
名字 资源名称 字符串

约束:
最小长度 = 1
最大长度 = 63
模式 = ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$ (必需)
性能 此资源的资源特定属性。 FleetProperties
标签 资源标记 标记名称和值的字典。
类型 资源类型 “Microsoft.ContainerService/fleets@2024-05-02-preview”

TrackedResourceTags

名字 描述 价值

UserAssignedIdentities

名字 描述 价值

UserAssignedIdentity

名字 描述 价值