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

Microsoft。ApiManagement aigateways

Bicep 资源定义

aigateway的资源类型可以部署用于针对以下操作:

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

资源格式

要创建一个Microsoft.ApiManagement/aigateways资源,请将以下Bicep添加到你的模板中。

resource symbolicname 'Microsoft.ApiManagement/aigateways@2026-09-01-preview' = {
  identity: {
    type: 'string'
    userAssignedIdentities: {
      {customized property}: {}
    }
  }
  location: 'string'
  name: 'string'
  properties: {
    backend: {
      subnet: {
        id: 'string'
      }
    }
  }
  sku: {
    capacity: int
    family: 'string'
    name: 'string'
    size: 'string'
    tier: 'string'
  }
  tags: {
    {customized property}: 'string'
  }
}

属性值

Microsoft。ApiManagement/aigateways

Name Description 价值
标识 分配给此资源的托管服务标识。 ManagedServiceIdentity
位置 资源所在的地理位置 string (必需)
name 资源名称 string

约束:
模式 = ^[a-z0-9][a-z0-9-]{1,22}[a-z0-9]$ (必需)
性能 此资源的资源特定属性。 AiGatewayProperties (required)
sku 分配给此资源的 SKU(库存单位)。 Sku
标记 资源标记 标记名称和值的字典。 请参阅模板 中的 标记

AiGatewayBackend

Name Description 价值
子网 AI 网关通过的子网覆盖后端。 AiGatewaySubnet

AiGatewayProperties

Name Description 价值
后端 后端网络配置。 只有在AI网关创建时才能设置。 AiGatewayBackend

AiGatewaySubnet

Name Description 价值
id 子网的资源标识符。 子网必须委托给 Microsoft。应用/环境,并且必须与 AI 网关处于同一区域。 string (必需)

ManagedServiceIdentity

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

ManagedServiceIdentityUserAssignedIdentities

Name Description 价值

Sku

Name Description 价值
产能 如果 SKU 支持横向扩展/缩减,则应包含容量整数。 如果资源无法横向扩展/缩小,则可能会省略此范围。 int
family 如果服务具有不同代的硬件(对于同一 SKU,则可以在此处捕获)。 字符串
name SKU 的名称。 例如P3。 它通常是字母+数字代码 string (必需)
size SKU 大小。 当名称字段是层和其他一些值的组合时,这将是独立的代码。 字符串
分层 如果服务具有多个层,但在 PUT 上不需要,则需要资源提供程序实现此字段。 'Basic'
'Free'
'Premium'
'Standard'

TrackedResourceTags

Name Description 价值

UserAssignedIdentity

Name Description 价值

ARM 模板资源定义

aigateway的资源类型可以部署用于针对以下操作:

用法示例

资源格式

要创建一个Microsoft。ApiManagement/aigateways资源,请将以下JSON添加到你的模板中。

{
  "type": "Microsoft.ApiManagement/aigateways",
  "apiVersion": "2026-09-01-preview",
  "name": "string",
  "identity": {
    "type": "string",
    "userAssignedIdentities": {
      "{customized property}": {
      }
    }
  },
  "location": "string",
  "properties": {
    "backend": {
      "subnet": {
        "id": "string"
      }
    }
  },
  "sku": {
    "capacity": "int",
    "family": "string",
    "name": "string",
    "size": "string",
    "tier": "string"
  },
  "tags": {
    "{customized property}": "string"
  }
}

属性值

Microsoft。ApiManagement/aigateways

Name Description 价值
apiVersion API 版本 '2026-09-01-预览'
标识 分配给此资源的托管服务标识。 ManagedServiceIdentity
位置 资源所在的地理位置 string (必需)
name 资源名称 string

约束:
模式 = ^[a-z0-9][a-z0-9-]{1,22}[a-z0-9]$ (必需)
性能 此资源的资源特定属性。 AiGatewayProperties (required)
sku 分配给此资源的 SKU(库存单位)。 Sku
标记 资源标记 标记名称和值的字典。 请参阅模板 中的 标记
类型 资源类型 “Microsoft。ApiManagement/aigateways”

AiGatewayBackend

Name Description 价值
子网 AI 网关通过的子网覆盖后端。 AiGatewaySubnet

AiGatewayProperties

Name Description 价值
后端 后端网络配置。 只有在AI网关创建时才能设置。 AiGatewayBackend

AiGatewaySubnet

Name Description 价值
id 子网的资源标识符。 子网必须委托给 Microsoft。应用/环境,并且必须与 AI 网关处于同一区域。 string (必需)

ManagedServiceIdentity

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

ManagedServiceIdentityUserAssignedIdentities

Name Description 价值

Sku

Name Description 价值
产能 如果 SKU 支持横向扩展/缩减,则应包含容量整数。 如果资源无法横向扩展/缩小,则可能会省略此范围。 int
family 如果服务具有不同代的硬件(对于同一 SKU,则可以在此处捕获)。 字符串
name SKU 的名称。 例如P3。 它通常是字母+数字代码 string (必需)
size SKU 大小。 当名称字段是层和其他一些值的组合时,这将是独立的代码。 字符串
分层 如果服务具有多个层,但在 PUT 上不需要,则需要资源提供程序实现此字段。 'Basic'
'Free'
'Premium'
'Standard'

TrackedResourceTags

Name Description 价值

UserAssignedIdentity

Name Description 价值

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

aigateway的资源类型可以部署用于针对以下操作:

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

资源格式

要创建一个 Microsoft.ApiManagement/aigateways 资源,请将以下 Terraform 添加到你的模板中。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.ApiManagement/aigateways@2026-09-01-preview"
  name = "string"
  parent_id = "string"
  identity {
    type = "string"
    identity_ids = [
      "string"
    ]
  }
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    properties = {
      backend = {
        subnet = {
          id = "string"
        }
      }
    }
    sku = {
      capacity = int
      family = "string"
      name = "string"
      size = "string"
      tier = "string"
    }
  }
}

属性值

Microsoft。ApiManagement/aigateways

Name Description 价值
标识 分配给此资源的托管服务标识。 ManagedServiceIdentity
位置 资源所在的地理位置 string (必需)
name 资源名称 string

约束:
模式 = ^[a-z0-9][a-z0-9-]{1,22}[a-z0-9]$ (必需)
性能 此资源的资源特定属性。 AiGatewayProperties (required)
sku 分配给此资源的 SKU(库存单位)。 Sku
标记 资源标记 标记名称和值的字典。
类型 资源类型 “Microsoft。ApiManagement/aigateways@2026-09-01-预览”

AiGatewayBackend

Name Description 价值
子网 AI 网关通过的子网覆盖后端。 AiGatewaySubnet

AiGatewayProperties

Name Description 价值
后端 后端网络配置。 只有在AI网关创建时才能设置。 AiGatewayBackend

AiGatewaySubnet

Name Description 价值
id 子网的资源标识符。 子网必须委托给 Microsoft。应用/环境,并且必须与 AI 网关处于同一区域。 string (必需)

ManagedServiceIdentity

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

ManagedServiceIdentityUserAssignedIdentities

Name Description 价值

Sku

Name Description 价值
产能 如果 SKU 支持横向扩展/缩减,则应包含容量整数。 如果资源无法横向扩展/缩小,则可能会省略此范围。 int
family 如果服务具有不同代的硬件(对于同一 SKU,则可以在此处捕获)。 字符串
name SKU 的名称。 例如P3。 它通常是字母+数字代码 string (必需)
size SKU 大小。 当名称字段是层和其他一些值的组合时,这将是独立的代码。 字符串
分层 如果服务具有多个层,但在 PUT 上不需要,则需要资源提供程序实现此字段。 'Basic'
'Free'
'Premium'
'Standard'

TrackedResourceTags

Name Description 价值

UserAssignedIdentity

Name Description 价值