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

Microsoft.CognitiveServices 帐户

Bicep 资源定义

可以使用目标操作部署帐户资源类型:

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

资源格式

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

resource symbolicname 'Microsoft.CognitiveServices/accounts@2024-10-01' = {
  identity: {
    type: 'string'
    userAssignedIdentities: {
      {customized property}: {}
    }
  }
  kind: 'string'
  location: 'string'
  name: 'string'
  properties: {
    allowedFqdnList: [
      'string'
    ]
    amlWorkspace: {
      identityClientId: 'string'
      resourceId: 'string'
    }
    apiProperties: {
      aadClientId: 'string'
      aadTenantId: 'string'
      eventHubConnectionString: 'string'
      qnaAzureSearchEndpointId: 'string'
      qnaAzureSearchEndpointKey: 'string'
      qnaRuntimeEndpoint: 'string'
      statisticsEnabled: bool
      storageAccountConnectionString: 'string'
      superUser: 'string'
      websiteName: 'string'
    }
    customSubDomainName: 'string'
    disableLocalAuth: bool
    dynamicThrottlingEnabled: bool
    encryption: {
      keySource: 'string'
      keyVaultProperties: {
        identityClientId: 'string'
        keyName: 'string'
        keyVaultUri: 'string'
        keyVersion: 'string'
      }
    }
    locations: {
      regions: [
        {
          customsubdomain: 'string'
          name: 'string'
          value: int
        }
      ]
      routingMethod: 'string'
    }
    migrationToken: 'string'
    networkAcls: {
      bypass: 'string'
      defaultAction: 'string'
      ipRules: [
        {
          value: 'string'
        }
      ]
      virtualNetworkRules: [
        {
          id: 'string'
          ignoreMissingVnetServiceEndpoint: bool
          state: 'string'
        }
      ]
    }
    publicNetworkAccess: 'string'
    raiMonitorConfig: {
      adxStorageResourceId: 'string'
      identityClientId: 'string'
    }
    restore: bool
    restrictOutboundNetworkAccess: bool
    userOwnedStorage: [
      {
        identityClientId: 'string'
        resourceId: 'string'
      }
    ]
  }
  sku: {
    capacity: int
    family: 'string'
    name: 'string'
    size: 'string'
    tier: 'string'
  }
  tags: {
    {customized property}: 'string'
  }
}

属性值

AccountProperties

名字 描述 价值
allowedFqdnList string[]
amlWorkspace 用户拥有 AML 工作区属性。 UserOwnedAmlWorkspace
apiProperties 特殊 API 的 API 属性。 ApiProperties
customSubDomainName 用于基于令牌的身份验证的可选子域名称。 字符串
disableLocalAuth bool
dynamicThrottlingEnabled 用于启用动态限制的标志。 bool
加密 此资源的加密属性。 加密
地点 认知服务帐户的多区域设置。 MultiRegionSettings
migrationToken 资源迁移令牌。 字符串
networkAcls 一组规则,用于控制特定网络位置的可访问性。 NetworkRuleSet
publicNetworkAccess 是否允许对此帐户使用公共终结点访问。 “Disabled”
“Enabled”
raiMonitorConfig 认知服务 Rai Monitor 配置。 RaiMonitorConfig
恢复 bool
restrictOutboundNetworkAccess bool
userOwnedStorage 此资源的存储帐户。 UserOwnedStorage[]

AccountTags

名字 描述 价值

ApiProperties

名字 描述 价值
aadClientId (仅限指标顾问)Azure AD 客户端 ID(应用程序 ID)。 字符串

约束:
最大长度 = 500
aadTenantId (仅限指标顾问)Azure AD 租户 ID。 字符串

约束:
最大长度 = 500
eventHubConnectionString (仅限个性化)启用必应搜索统计信息的标志。 字符串

约束:
最大长度 = 1000
Pattern = ^( *)Endpoint=sb://(.*);( *)SharedAccessKeyName=(.*);( *)SharedAccessKey=(.*)$
qnaAzureSearchEndpointId (仅限 QnAMaker)QnAMaker 的 Azure 搜索终结点 ID。 字符串
qnaAzureSearchEndpointKey (仅限 QnAMaker)QnAMaker 的 Azure 搜索终结点密钥。 字符串
qnaRuntimeEndpoint (仅限 QnAMaker)QnAMaker 的运行时终结点。 字符串
statisticsEnabled (仅必应搜索)启用必应搜索统计信息的标志。 bool
storageAccountConnectionString (仅限个性化)存储帐户连接字符串。 字符串

约束:
最大长度 = 1000
Pattern = ^(( *)DefaultEndpointsProtocol=(http|https)( *);( *))?AccountName=(.*)AccountKey=(.*)EndpointSuffix=(.*)$
超级用户 (仅限指标顾问)指标顾问的超级用户。 字符串

约束:
最大长度 = 500
websiteName (仅限指标顾问)指标顾问的网站名称。 字符串

约束:
最大长度 = 500

加密

名字 描述 价值
keySource 枚举 KeySource for Encryption 的可能值 “Microsoft.CognitiveServices”
“Microsoft.KeyVault”
keyVaultProperties KeyVault 的属性 KeyVaultProperties

身份

名字 描述 价值
类型 标识类型。 “None”
“SystemAssigned”
“SystemAssigned,UserAssigned”
“UserAssigned”
userAssignedIdentities 与资源关联的用户分配标识的列表。 用户标识字典密钥引用的格式为 ARM 资源 ID:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName} IdentityUserAssignedIdentities

IdentityUserAssignedIdentities

名字 描述 价值

IpRule

名字 描述 价值
价值 CIDR 表示法中的 IPv4 地址范围,例如“124.56.78.91”(简单 IP 地址)或“124.56.78.0/24”(以 124.56.78 开头的所有地址)。 string (必需)

KeyVaultProperties

名字 描述 价值
identityClientId 字符串
keyName KeyVault 中密钥的名称 字符串
keyVaultUri KeyVault 的 URI 字符串
keyVersion KeyVault 中密钥的版本 字符串

Microsoft.CognitiveServices/accounts

名字 描述 价值
身份 资源的标识。 标识
资源的种类。 字符串
位置 资源所在的地理位置 字符串
名字 资源名称 字符串

约束:
最小长度 = 2
最大长度 = 64
模式 = ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ (必需)
性能 认知服务帐户的属性。 AccountProperties
sku 表示 SKU 的资源模型定义 Sku
标签 资源标记 标记名称和值的字典。 请参阅模板 中的 标记

MultiRegionSettings

名字 描述 价值
地区 RegionSetting[]
routingMethod 多区域路由方法。 “性能”
“Priority”
“Weighted”

NetworkRuleSet

名字 描述 价值
旁路 为受信任的服务设置。 “AzureServices”
“None”
defaultAction 当没有来自 ipRules 和 virtualNetworkRules 的规则匹配时,默认操作。 仅当评估绕过属性后,才使用此属性。 “允许”
“拒绝”
ipRules IP 地址规则的列表。 IpRule[]
virtualNetworkRules 虚拟网络规则的列表。 VirtualNetworkRule[]

RaiMonitorConfig

名字 描述 价值
adxStorageResourceId 存储资源 ID。 字符串
identityClientId 用于访问存储的标识客户端 ID。 字符串

RegionSetting

名字 描述 价值
customsubdomain 将区域映射到区域自定义子域。 字符串
名字 区域的名称。 字符串
价值 优先级或加权路由方法的值。 int

Sku

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

UserAssignedIdentity

名字 描述 价值

UserOwnedAmlWorkspace

名字 描述 价值
identityClientId AML 工作区资源的标识客户端 ID。 字符串
resourceId AML 工作区资源的完整资源 ID。 字符串

UserOwnedStorage

名字 描述 价值
identityClientId 字符串
resourceId Microsoft.Storage 资源的完整资源 ID。 字符串

VirtualNetworkRule

名字 描述 价值
id vnet 子网的完整资源 ID,例如“/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1”。 string (必需)
ignoreMissingVnetServiceEndpoint 忽略缺少的 vnet 服务终结点。 bool
获取虚拟网络规则的状态。 字符串

快速入门示例

以下快速入门示例部署此资源类型。

Bicep 文件 描述
Azure AI Studio 基本设置 此模板集演示如何使用基本设置设置设置 Azure AI Studio,这意味着启用了公共 Internet 访问、Microsoft托管密钥进行加密和 AI 资源的Microsoft托管标识配置。
Azure AI Studio 基本设置 此模板集演示如何使用基本设置设置设置 Azure AI Studio,这意味着启用了公共 Internet 访问、Microsoft托管密钥进行加密和 AI 资源的Microsoft托管标识配置。
Azure AI Studio 基本设置 此模板集演示如何使用基本设置设置设置 Azure AI Studio,这意味着启用了公共 Internet 访问、Microsoft托管密钥进行加密和 AI 资源的Microsoft托管标识配置。
Azure AI Studio 网络受限 此模板集演示如何使用禁用专用链接和出口设置 Azure AI Studio,并使用Microsoft托管密钥进行加密和 AI 资源的Microsoft托管标识配置。
Azure AI Studio 网络受限 此模板集演示如何使用禁用专用链接和出口设置 Azure AI Studio,并使用Microsoft托管密钥进行加密和 AI 资源的Microsoft托管标识配置。
使用 Microsoft Entra ID 身份验证 Azure AI Studio 此模板集演示如何为依赖资源(例如 Azure AI 服务和 Azure 存储)设置具有 Microsoft Entra ID 身份验证的 Azure AI Studio。
部署 Azure AI 服务多服务资源 此模板部署一个 Azure AI 服务资源,使 AI 在无需机器学习专业知识的情况下,使每个开发人员都能接触到 AI。 只需通过 API 调用即可将查看、听到、说话、搜索、理解和加速决策的功能嵌入到应用中。
部署 Azure AI Translator 资源 此模板部署 Azure AI Translator 资源,使 AI 在无需机器学习专业知识的情况下,让每个开发人员都能访问 AI。
部署 Azure AI 视觉资源 此模板部署 Azure AI 视觉资源,使 AI 在无需机器学习专业知识的情况下,使每个开发人员都能接触到 AI。
使用托管虚拟网络部署安全 Azure AI Studio 此模板创建一个安全的 Azure AI Studio 环境,其中包含可靠的网络和标识安全限制。

ARM 模板资源定义

可以使用目标操作部署帐户资源类型:

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

资源格式

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

{
  "type": "Microsoft.CognitiveServices/accounts",
  "apiVersion": "2024-10-01",
  "name": "string",
  "identity": {
    "type": "string",
    "userAssignedIdentities": {
      "{customized property}": {
      }
    }
  },
  "kind": "string",
  "location": "string",
  "properties": {
    "allowedFqdnList": [ "string" ],
    "amlWorkspace": {
      "identityClientId": "string",
      "resourceId": "string"
    },
    "apiProperties": {
      "aadClientId": "string",
      "aadTenantId": "string",
      "eventHubConnectionString": "string",
      "qnaAzureSearchEndpointId": "string",
      "qnaAzureSearchEndpointKey": "string",
      "qnaRuntimeEndpoint": "string",
      "statisticsEnabled": "bool",
      "storageAccountConnectionString": "string",
      "superUser": "string",
      "websiteName": "string"
    },
    "customSubDomainName": "string",
    "disableLocalAuth": "bool",
    "dynamicThrottlingEnabled": "bool",
    "encryption": {
      "keySource": "string",
      "keyVaultProperties": {
        "identityClientId": "string",
        "keyName": "string",
        "keyVaultUri": "string",
        "keyVersion": "string"
      }
    },
    "locations": {
      "regions": [
        {
          "customsubdomain": "string",
          "name": "string",
          "value": "int"
        }
      ],
      "routingMethod": "string"
    },
    "migrationToken": "string",
    "networkAcls": {
      "bypass": "string",
      "defaultAction": "string",
      "ipRules": [
        {
          "value": "string"
        }
      ],
      "virtualNetworkRules": [
        {
          "id": "string",
          "ignoreMissingVnetServiceEndpoint": "bool",
          "state": "string"
        }
      ]
    },
    "publicNetworkAccess": "string",
    "raiMonitorConfig": {
      "adxStorageResourceId": "string",
      "identityClientId": "string"
    },
    "restore": "bool",
    "restrictOutboundNetworkAccess": "bool",
    "userOwnedStorage": [
      {
        "identityClientId": "string",
        "resourceId": "string"
      }
    ]
  },
  "sku": {
    "capacity": "int",
    "family": "string",
    "name": "string",
    "size": "string",
    "tier": "string"
  },
  "tags": {
    "{customized property}": "string"
  }
}

属性值

AccountProperties

名字 描述 价值
allowedFqdnList string[]
amlWorkspace 用户拥有 AML 工作区属性。 UserOwnedAmlWorkspace
apiProperties 特殊 API 的 API 属性。 ApiProperties
customSubDomainName 用于基于令牌的身份验证的可选子域名称。 字符串
disableLocalAuth bool
dynamicThrottlingEnabled 用于启用动态限制的标志。 bool
加密 此资源的加密属性。 加密
地点 认知服务帐户的多区域设置。 MultiRegionSettings
migrationToken 资源迁移令牌。 字符串
networkAcls 一组规则,用于控制特定网络位置的可访问性。 NetworkRuleSet
publicNetworkAccess 是否允许对此帐户使用公共终结点访问。 “Disabled”
“Enabled”
raiMonitorConfig 认知服务 Rai Monitor 配置。 RaiMonitorConfig
恢复 bool
restrictOutboundNetworkAccess bool
userOwnedStorage 此资源的存储帐户。 UserOwnedStorage[]

AccountTags

名字 描述 价值

ApiProperties

名字 描述 价值
aadClientId (仅限指标顾问)Azure AD 客户端 ID(应用程序 ID)。 字符串

约束:
最大长度 = 500
aadTenantId (仅限指标顾问)Azure AD 租户 ID。 字符串

约束:
最大长度 = 500
eventHubConnectionString (仅限个性化)启用必应搜索统计信息的标志。 字符串

约束:
最大长度 = 1000
Pattern = ^( *)Endpoint=sb://(.*);( *)SharedAccessKeyName=(.*);( *)SharedAccessKey=(.*)$
qnaAzureSearchEndpointId (仅限 QnAMaker)QnAMaker 的 Azure 搜索终结点 ID。 字符串
qnaAzureSearchEndpointKey (仅限 QnAMaker)QnAMaker 的 Azure 搜索终结点密钥。 字符串
qnaRuntimeEndpoint (仅限 QnAMaker)QnAMaker 的运行时终结点。 字符串
statisticsEnabled (仅必应搜索)启用必应搜索统计信息的标志。 bool
storageAccountConnectionString (仅限个性化)存储帐户连接字符串。 字符串

约束:
最大长度 = 1000
Pattern = ^(( *)DefaultEndpointsProtocol=(http|https)( *);( *))?AccountName=(.*)AccountKey=(.*)EndpointSuffix=(.*)$
超级用户 (仅限指标顾问)指标顾问的超级用户。 字符串

约束:
最大长度 = 500
websiteName (仅限指标顾问)指标顾问的网站名称。 字符串

约束:
最大长度 = 500

加密

名字 描述 价值
keySource 枚举 KeySource for Encryption 的可能值 “Microsoft.CognitiveServices”
“Microsoft.KeyVault”
keyVaultProperties KeyVault 的属性 KeyVaultProperties

身份

名字 描述 价值
类型 标识类型。 “None”
“SystemAssigned”
“SystemAssigned,UserAssigned”
“UserAssigned”
userAssignedIdentities 与资源关联的用户分配标识的列表。 用户标识字典密钥引用的格式为 ARM 资源 ID:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName} IdentityUserAssignedIdentities

IdentityUserAssignedIdentities

名字 描述 价值

IpRule

名字 描述 价值
价值 CIDR 表示法中的 IPv4 地址范围,例如“124.56.78.91”(简单 IP 地址)或“124.56.78.0/24”(以 124.56.78 开头的所有地址)。 string (必需)

KeyVaultProperties

名字 描述 价值
identityClientId 字符串
keyName KeyVault 中密钥的名称 字符串
keyVaultUri KeyVault 的 URI 字符串
keyVersion KeyVault 中密钥的版本 字符串

Microsoft.CognitiveServices/accounts

名字 描述 价值
apiVersion API 版本 '2024-10-01'
身份 资源的标识。 标识
资源的种类。 字符串
位置 资源所在的地理位置 字符串
名字 资源名称 字符串

约束:
最小长度 = 2
最大长度 = 64
模式 = ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ (必需)
性能 认知服务帐户的属性。 AccountProperties
sku 表示 SKU 的资源模型定义 Sku
标签 资源标记 标记名称和值的字典。 请参阅模板 中的 标记
类型 资源类型 “Microsoft.CognitiveServices/accounts”

MultiRegionSettings

名字 描述 价值
地区 RegionSetting[]
routingMethod 多区域路由方法。 “性能”
“Priority”
“Weighted”

NetworkRuleSet

名字 描述 价值
旁路 为受信任的服务设置。 “AzureServices”
“None”
defaultAction 当没有来自 ipRules 和 virtualNetworkRules 的规则匹配时,默认操作。 仅当评估绕过属性后,才使用此属性。 “允许”
“拒绝”
ipRules IP 地址规则的列表。 IpRule[]
virtualNetworkRules 虚拟网络规则的列表。 VirtualNetworkRule[]

RaiMonitorConfig

名字 描述 价值
adxStorageResourceId 存储资源 ID。 字符串
identityClientId 用于访问存储的标识客户端 ID。 字符串

RegionSetting

名字 描述 价值
customsubdomain 将区域映射到区域自定义子域。 字符串
名字 区域的名称。 字符串
价值 优先级或加权路由方法的值。 int

Sku

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

UserAssignedIdentity

名字 描述 价值

UserOwnedAmlWorkspace

名字 描述 价值
identityClientId AML 工作区资源的标识客户端 ID。 字符串
resourceId AML 工作区资源的完整资源 ID。 字符串

UserOwnedStorage

名字 描述 价值
identityClientId 字符串
resourceId Microsoft.Storage 资源的完整资源 ID。 字符串

VirtualNetworkRule

名字 描述 价值
id vnet 子网的完整资源 ID,例如“/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1”。 string (必需)
ignoreMissingVnetServiceEndpoint 忽略缺少的 vnet 服务终结点。 bool
获取虚拟网络规则的状态。 字符串

快速入门模板

以下快速入门模板部署此资源类型。

模板 描述
Azure AI Studio 基本设置

部署到 Azure
此模板集演示如何使用基本设置设置设置 Azure AI Studio,这意味着启用了公共 Internet 访问、Microsoft托管密钥进行加密和 AI 资源的Microsoft托管标识配置。
Azure AI Studio 基本设置

部署到 Azure
此模板集演示如何使用基本设置设置设置 Azure AI Studio,这意味着启用了公共 Internet 访问、Microsoft托管密钥进行加密和 AI 资源的Microsoft托管标识配置。
Azure AI Studio 基本设置

部署到 Azure
此模板集演示如何使用基本设置设置设置 Azure AI Studio,这意味着启用了公共 Internet 访问、Microsoft托管密钥进行加密和 AI 资源的Microsoft托管标识配置。
Azure AI Studio 网络受限

部署到 Azure
此模板集演示如何使用禁用专用链接和出口设置 Azure AI Studio,并使用Microsoft托管密钥进行加密和 AI 资源的Microsoft托管标识配置。
Azure AI Studio 网络受限

部署到 Azure
此模板集演示如何使用禁用专用链接和出口设置 Azure AI Studio,并使用Microsoft托管密钥进行加密和 AI 资源的Microsoft托管标识配置。
使用 Microsoft Entra ID 身份验证 Azure AI Studio

部署到 Azure
此模板集演示如何为依赖资源(例如 Azure AI 服务和 Azure 存储)设置具有 Microsoft Entra ID 身份验证的 Azure AI Studio。
部署 Azure AI 服务多服务资源

部署到 Azure
此模板部署一个 Azure AI 服务资源,使 AI 在无需机器学习专业知识的情况下,使每个开发人员都能接触到 AI。 只需通过 API 调用即可将查看、听到、说话、搜索、理解和加速决策的功能嵌入到应用中。
部署 Azure AI Translator 资源

部署到 Azure
此模板部署 Azure AI Translator 资源,使 AI 在无需机器学习专业知识的情况下,让每个开发人员都能访问 AI。
部署 Azure AI 视觉资源

部署到 Azure
此模板部署 Azure AI 视觉资源,使 AI 在无需机器学习专业知识的情况下,使每个开发人员都能接触到 AI。
使用托管虚拟网络部署安全 Azure AI Studio

部署到 Azure
此模板创建一个安全的 Azure AI Studio 环境,其中包含可靠的网络和标识安全限制。

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

可以使用目标操作部署帐户资源类型:

  • 资源组

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

资源格式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.CognitiveServices/accounts@2024-10-01"
  name = "string"
  identity = {
    type = "string"
    userAssignedIdentities = {
      {customized property} = {
      }
    }
  }
  kind = "string"
  location = "string"
  sku = {
    capacity = int
    family = "string"
    name = "string"
    size = "string"
    tier = "string"
  }
  tags = {
    {customized property} = "string"
  }
  body = jsonencode({
    properties = {
      allowedFqdnList = [
        "string"
      ]
      amlWorkspace = {
        identityClientId = "string"
        resourceId = "string"
      }
      apiProperties = {
        aadClientId = "string"
        aadTenantId = "string"
        eventHubConnectionString = "string"
        qnaAzureSearchEndpointId = "string"
        qnaAzureSearchEndpointKey = "string"
        qnaRuntimeEndpoint = "string"
        statisticsEnabled = bool
        storageAccountConnectionString = "string"
        superUser = "string"
        websiteName = "string"
      }
      customSubDomainName = "string"
      disableLocalAuth = bool
      dynamicThrottlingEnabled = bool
      encryption = {
        keySource = "string"
        keyVaultProperties = {
          identityClientId = "string"
          keyName = "string"
          keyVaultUri = "string"
          keyVersion = "string"
        }
      }
      locations = {
        regions = [
          {
            customsubdomain = "string"
            name = "string"
            value = int
          }
        ]
        routingMethod = "string"
      }
      migrationToken = "string"
      networkAcls = {
        bypass = "string"
        defaultAction = "string"
        ipRules = [
          {
            value = "string"
          }
        ]
        virtualNetworkRules = [
          {
            id = "string"
            ignoreMissingVnetServiceEndpoint = bool
            state = "string"
          }
        ]
      }
      publicNetworkAccess = "string"
      raiMonitorConfig = {
        adxStorageResourceId = "string"
        identityClientId = "string"
      }
      restore = bool
      restrictOutboundNetworkAccess = bool
      userOwnedStorage = [
        {
          identityClientId = "string"
          resourceId = "string"
        }
      ]
    }
  })
}

属性值

AccountProperties

名字 描述 价值
allowedFqdnList string[]
amlWorkspace 用户拥有 AML 工作区属性。 UserOwnedAmlWorkspace
apiProperties 特殊 API 的 API 属性。 ApiProperties
customSubDomainName 用于基于令牌的身份验证的可选子域名称。 字符串
disableLocalAuth bool
dynamicThrottlingEnabled 用于启用动态限制的标志。 bool
加密 此资源的加密属性。 加密
地点 认知服务帐户的多区域设置。 MultiRegionSettings
migrationToken 资源迁移令牌。 字符串
networkAcls 一组规则,用于控制特定网络位置的可访问性。 NetworkRuleSet
publicNetworkAccess 是否允许对此帐户使用公共终结点访问。 “Disabled”
“Enabled”
raiMonitorConfig 认知服务 Rai Monitor 配置。 RaiMonitorConfig
恢复 bool
restrictOutboundNetworkAccess bool
userOwnedStorage 此资源的存储帐户。 UserOwnedStorage[]

AccountTags

名字 描述 价值

ApiProperties

名字 描述 价值
aadClientId (仅限指标顾问)Azure AD 客户端 ID(应用程序 ID)。 字符串

约束:
最大长度 = 500
aadTenantId (仅限指标顾问)Azure AD 租户 ID。 字符串

约束:
最大长度 = 500
eventHubConnectionString (仅限个性化)启用必应搜索统计信息的标志。 字符串

约束:
最大长度 = 1000
Pattern = ^( *)Endpoint=sb://(.*);( *)SharedAccessKeyName=(.*);( *)SharedAccessKey=(.*)$
qnaAzureSearchEndpointId (仅限 QnAMaker)QnAMaker 的 Azure 搜索终结点 ID。 字符串
qnaAzureSearchEndpointKey (仅限 QnAMaker)QnAMaker 的 Azure 搜索终结点密钥。 字符串
qnaRuntimeEndpoint (仅限 QnAMaker)QnAMaker 的运行时终结点。 字符串
statisticsEnabled (仅必应搜索)启用必应搜索统计信息的标志。 bool
storageAccountConnectionString (仅限个性化)存储帐户连接字符串。 字符串

约束:
最大长度 = 1000
Pattern = ^(( *)DefaultEndpointsProtocol=(http|https)( *);( *))?AccountName=(.*)AccountKey=(.*)EndpointSuffix=(.*)$
超级用户 (仅限指标顾问)指标顾问的超级用户。 字符串

约束:
最大长度 = 500
websiteName (仅限指标顾问)指标顾问的网站名称。 字符串

约束:
最大长度 = 500

加密

名字 描述 价值
keySource 枚举 KeySource for Encryption 的可能值 “Microsoft.CognitiveServices”
“Microsoft.KeyVault”
keyVaultProperties KeyVault 的属性 KeyVaultProperties

身份

名字 描述 价值
类型 标识类型。 “None”
“SystemAssigned”
“SystemAssigned,UserAssigned”
“UserAssigned”
userAssignedIdentities 与资源关联的用户分配标识的列表。 用户标识字典密钥引用的格式为 ARM 资源 ID:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName} IdentityUserAssignedIdentities

IdentityUserAssignedIdentities

名字 描述 价值

IpRule

名字 描述 价值
价值 CIDR 表示法中的 IPv4 地址范围,例如“124.56.78.91”(简单 IP 地址)或“124.56.78.0/24”(以 124.56.78 开头的所有地址)。 string (必需)

KeyVaultProperties

名字 描述 价值
identityClientId 字符串
keyName KeyVault 中密钥的名称 字符串
keyVaultUri KeyVault 的 URI 字符串
keyVersion KeyVault 中密钥的版本 字符串

Microsoft.CognitiveServices/accounts

名字 描述 价值
身份 资源的标识。 标识
资源的种类。 字符串
位置 资源所在的地理位置 字符串
名字 资源名称 字符串

约束:
最小长度 = 2
最大长度 = 64
模式 = ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ (必需)
性能 认知服务帐户的属性。 AccountProperties
sku 表示 SKU 的资源模型定义 Sku
标签 资源标记 标记名称和值的字典。
类型 资源类型 “Microsoft.CognitiveServices/accounts@2024-10-01”

MultiRegionSettings

名字 描述 价值
地区 RegionSetting[]
routingMethod 多区域路由方法。 “性能”
“Priority”
“Weighted”

NetworkRuleSet

名字 描述 价值
旁路 为受信任的服务设置。 “AzureServices”
“None”
defaultAction 当没有来自 ipRules 和 virtualNetworkRules 的规则匹配时,默认操作。 仅当评估绕过属性后,才使用此属性。 “允许”
“拒绝”
ipRules IP 地址规则的列表。 IpRule[]
virtualNetworkRules 虚拟网络规则的列表。 VirtualNetworkRule[]

RaiMonitorConfig

名字 描述 价值
adxStorageResourceId 存储资源 ID。 字符串
identityClientId 用于访问存储的标识客户端 ID。 字符串

RegionSetting

名字 描述 价值
customsubdomain 将区域映射到区域自定义子域。 字符串
名字 区域的名称。 字符串
价值 优先级或加权路由方法的值。 int

Sku

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

UserAssignedIdentity

名字 描述 价值

UserOwnedAmlWorkspace

名字 描述 价值
identityClientId AML 工作区资源的标识客户端 ID。 字符串
resourceId AML 工作区资源的完整资源 ID。 字符串

UserOwnedStorage

名字 描述 价值
identityClientId 字符串
resourceId Microsoft.Storage 资源的完整资源 ID。 字符串

VirtualNetworkRule

名字 描述 价值
id vnet 子网的完整资源 ID,例如“/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1”。 string (必需)
ignoreMissingVnetServiceEndpoint 忽略缺少的 vnet 服务终结点。 bool
获取虚拟网络规则的状态。 字符串