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

Microsoft.CognitiveServices 帐户 2017-04-18

Bicep 资源定义

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

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

资源格式

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

resource symbolicname 'Microsoft.CognitiveServices/accounts@2017-04-18' = {
  identity: {
    type: 'string'
    userAssignedIdentities: {
      {customized property}: {
        clientId: 'string'
        principalId: 'string'
      }
    }
  }
  kind: 'string'
  location: 'string'
  name: 'string'
  properties: {
    apiProperties: {
      aadClientId: 'string'
      aadTenantId: 'string'
      eventHubConnectionString: 'string'
      qnaAzureSearchEndpointId: 'string'
      qnaAzureSearchEndpointKey: 'string'
      qnaRuntimeEndpoint: 'string'
      statisticsEnabled: bool
      storageAccountConnectionString: 'string'
      superUser: 'string'
      websiteName: 'string'
    }
    customSubDomainName: 'string'
    encryption: {
      keySource: 'string'
      keyVaultProperties: {
        keyName: 'string'
        keyVaultUri: 'string'
        keyVersion: 'string'
      }
    }
    networkAcls: {
      defaultAction: 'string'
      ipRules: [
        {
          value: 'string'
        }
      ]
      virtualNetworkRules: [
        {
          id: 'string'
          ignoreMissingVnetServiceEndpoint: bool
          state: 'string'
        }
      ]
    }
    privateEndpointConnections: [
      {
        location: 'string'
        properties: {
          groupIds: [
            'string'
          ]
          privateEndpoint: {}
          privateLinkServiceConnectionState: {
            actionsRequired: 'string'
            description: 'string'
            status: 'string'
          }
        }
      }
    ]
    publicNetworkAccess: 'string'
    userOwnedStorage: [
      {
        resourceId: 'string'
      }
    ]
  }
  sku: {
    name: 'string'
  }
  tags: {
    {customized property}: 'string'
  }
}

属性值

CognitiveServicesAccountApiProperties

名字 描述 价值
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

CognitiveServicesAccountProperties

名字 描述 价值
apiProperties 特殊 API 的 API 属性。 CognitiveServicesAccountApiProperties
customSubDomainName 用于基于令牌的身份验证的可选子域名称。 字符串
加密 此资源的加密属性。 加密
networkAcls 一组规则,用于控制特定网络位置的可访问性。 NetworkRuleSet
privateEndpointConnections 与认知服务帐户关联的专用终结点连接。 PrivateEndpointConnection[]
publicNetworkAccess 是否允许对此帐户使用公共终结点访问。 值是可选的,但如果传入,则必须为“Enabled”或“Disabled” “Disabled”
“Enabled”
userOwnedStorage 此资源的存储帐户。 UserOwnedStorage[]

CognitiveServicesAccountTags

名字 描述 价值

加密

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

身份

名字 描述 价值
类型 托管服务标识的类型。 “None”
“SystemAssigned”
“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

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

Microsoft.CognitiveServices/accounts

名字 描述 价值
身份 认知服务帐户的标识。 标识
资源的种类。 字符串
位置 资源的位置 字符串
名字 资源名称 字符串

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

NetworkRuleSet

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

PrivateEndpoint

名字 描述 价值

PrivateEndpointConnection

名字 描述 价值
位置 专用终结点连接的位置 字符串
性能 资源属性。 PrivateEndpointConnectionProperties

PrivateEndpointConnectionProperties

名字 描述 价值
groupIds 专用链接资源组 ID。 string[]
privateEndpoint 专用终结点的资源。 PrivateEndpoint
privateLinkServiceConnectionState 有关服务使用者与提供程序之间的连接状态的信息集合。 PrivateLinkServiceConnectionState (必需)

PrivateLinkServiceConnectionState

名字 描述 价值
actionsRequired 一条消息,指示服务提供商上的更改是否需要对使用者进行任何更新。 字符串
描述 批准/拒绝连接的原因。 字符串
地位 指示连接是否已被服务的所有者批准/拒绝/删除。 “已批准”
“Disconnected”
“Pending”
“已拒绝”

Sku

名字 描述 价值
名字 获取或设置 SKU 名称。 创建帐户时是必需的,对于更新是可选的。 string (必需)

UserAssignedIdentity

名字 描述 价值
clientId 与此标识关联的客户端应用 ID。 字符串
principalId 与此标识关联的 Azure Active Directory 主体 ID。 字符串

UserOwnedStorage

名字 描述 价值
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": "2017-04-18",
  "name": "string",
  "identity": {
    "type": "string",
    "userAssignedIdentities": {
      "{customized property}": {
        "clientId": "string",
        "principalId": "string"
      }
    }
  },
  "kind": "string",
  "location": "string",
  "properties": {
    "apiProperties": {
      "aadClientId": "string",
      "aadTenantId": "string",
      "eventHubConnectionString": "string",
      "qnaAzureSearchEndpointId": "string",
      "qnaAzureSearchEndpointKey": "string",
      "qnaRuntimeEndpoint": "string",
      "statisticsEnabled": "bool",
      "storageAccountConnectionString": "string",
      "superUser": "string",
      "websiteName": "string"
    },
    "customSubDomainName": "string",
    "encryption": {
      "keySource": "string",
      "keyVaultProperties": {
        "keyName": "string",
        "keyVaultUri": "string",
        "keyVersion": "string"
      }
    },
    "networkAcls": {
      "defaultAction": "string",
      "ipRules": [
        {
          "value": "string"
        }
      ],
      "virtualNetworkRules": [
        {
          "id": "string",
          "ignoreMissingVnetServiceEndpoint": "bool",
          "state": "string"
        }
      ]
    },
    "privateEndpointConnections": [
      {
        "location": "string",
        "properties": {
          "groupIds": [ "string" ],
          "privateEndpoint": {
          },
          "privateLinkServiceConnectionState": {
            "actionsRequired": "string",
            "description": "string",
            "status": "string"
          }
        }
      }
    ],
    "publicNetworkAccess": "string",
    "userOwnedStorage": [
      {
        "resourceId": "string"
      }
    ]
  },
  "sku": {
    "name": "string"
  },
  "tags": {
    "{customized property}": "string"
  }
}

属性值

CognitiveServicesAccountApiProperties

名字 描述 价值
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

CognitiveServicesAccountProperties

名字 描述 价值
apiProperties 特殊 API 的 API 属性。 CognitiveServicesAccountApiProperties
customSubDomainName 用于基于令牌的身份验证的可选子域名称。 字符串
加密 此资源的加密属性。 加密
networkAcls 一组规则,用于控制特定网络位置的可访问性。 NetworkRuleSet
privateEndpointConnections 与认知服务帐户关联的专用终结点连接。 PrivateEndpointConnection[]
publicNetworkAccess 是否允许对此帐户使用公共终结点访问。 值是可选的,但如果传入,则必须为“Enabled”或“Disabled” “Disabled”
“Enabled”
userOwnedStorage 此资源的存储帐户。 UserOwnedStorage[]

CognitiveServicesAccountTags

名字 描述 价值

加密

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

身份

名字 描述 价值
类型 托管服务标识的类型。 “None”
“SystemAssigned”
“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

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

Microsoft.CognitiveServices/accounts

名字 描述 价值
apiVersion API 版本 '2017-04-18'
身份 认知服务帐户的标识。 标识
资源的种类。 字符串
位置 资源的位置 字符串
名字 资源名称 字符串

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

NetworkRuleSet

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

PrivateEndpoint

名字 描述 价值

PrivateEndpointConnection

名字 描述 价值
位置 专用终结点连接的位置 字符串
性能 资源属性。 PrivateEndpointConnectionProperties

PrivateEndpointConnectionProperties

名字 描述 价值
groupIds 专用链接资源组 ID。 string[]
privateEndpoint 专用终结点的资源。 PrivateEndpoint
privateLinkServiceConnectionState 有关服务使用者与提供程序之间的连接状态的信息集合。 PrivateLinkServiceConnectionState (必需)

PrivateLinkServiceConnectionState

名字 描述 价值
actionsRequired 一条消息,指示服务提供商上的更改是否需要对使用者进行任何更新。 字符串
描述 批准/拒绝连接的原因。 字符串
地位 指示连接是否已被服务的所有者批准/拒绝/删除。 “已批准”
“Disconnected”
“Pending”
“已拒绝”

Sku

名字 描述 价值
名字 获取或设置 SKU 名称。 创建帐户时是必需的,对于更新是可选的。 string (必需)

UserAssignedIdentity

名字 描述 价值
clientId 与此标识关联的客户端应用 ID。 字符串
principalId 与此标识关联的 Azure Active Directory 主体 ID。 字符串

UserOwnedStorage

名字 描述 价值
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@2017-04-18"
  name = "string"
  identity = {
    type = "string"
    userAssignedIdentities = {
      {customized property} = {
        clientId = "string"
        principalId = "string"
      }
    }
  }
  kind = "string"
  location = "string"
  sku = {
    name = "string"
  }
  tags = {
    {customized property} = "string"
  }
  body = jsonencode({
    properties = {
      apiProperties = {
        aadClientId = "string"
        aadTenantId = "string"
        eventHubConnectionString = "string"
        qnaAzureSearchEndpointId = "string"
        qnaAzureSearchEndpointKey = "string"
        qnaRuntimeEndpoint = "string"
        statisticsEnabled = bool
        storageAccountConnectionString = "string"
        superUser = "string"
        websiteName = "string"
      }
      customSubDomainName = "string"
      encryption = {
        keySource = "string"
        keyVaultProperties = {
          keyName = "string"
          keyVaultUri = "string"
          keyVersion = "string"
        }
      }
      networkAcls = {
        defaultAction = "string"
        ipRules = [
          {
            value = "string"
          }
        ]
        virtualNetworkRules = [
          {
            id = "string"
            ignoreMissingVnetServiceEndpoint = bool
            state = "string"
          }
        ]
      }
      privateEndpointConnections = [
        {
          location = "string"
          properties = {
            groupIds = [
              "string"
            ]
            privateEndpoint = {
            }
            privateLinkServiceConnectionState = {
              actionsRequired = "string"
              description = "string"
              status = "string"
            }
          }
        }
      ]
      publicNetworkAccess = "string"
      userOwnedStorage = [
        {
          resourceId = "string"
        }
      ]
    }
  })
}

属性值

CognitiveServicesAccountApiProperties

名字 描述 价值
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

CognitiveServicesAccountProperties

名字 描述 价值
apiProperties 特殊 API 的 API 属性。 CognitiveServicesAccountApiProperties
customSubDomainName 用于基于令牌的身份验证的可选子域名称。 字符串
加密 此资源的加密属性。 加密
networkAcls 一组规则,用于控制特定网络位置的可访问性。 NetworkRuleSet
privateEndpointConnections 与认知服务帐户关联的专用终结点连接。 PrivateEndpointConnection[]
publicNetworkAccess 是否允许对此帐户使用公共终结点访问。 值是可选的,但如果传入,则必须为“Enabled”或“Disabled” “Disabled”
“Enabled”
userOwnedStorage 此资源的存储帐户。 UserOwnedStorage[]

CognitiveServicesAccountTags

名字 描述 价值

加密

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

身份

名字 描述 价值
类型 托管服务标识的类型。 “None”
“SystemAssigned”
“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

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

Microsoft.CognitiveServices/accounts

名字 描述 价值
身份 认知服务帐户的标识。 标识
资源的种类。 字符串
位置 资源的位置 字符串
名字 资源名称 字符串

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

NetworkRuleSet

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

PrivateEndpoint

名字 描述 价值

PrivateEndpointConnection

名字 描述 价值
位置 专用终结点连接的位置 字符串
性能 资源属性。 PrivateEndpointConnectionProperties

PrivateEndpointConnectionProperties

名字 描述 价值
groupIds 专用链接资源组 ID。 string[]
privateEndpoint 专用终结点的资源。 PrivateEndpoint
privateLinkServiceConnectionState 有关服务使用者与提供程序之间的连接状态的信息集合。 PrivateLinkServiceConnectionState (必需)

PrivateLinkServiceConnectionState

名字 描述 价值
actionsRequired 一条消息,指示服务提供商上的更改是否需要对使用者进行任何更新。 字符串
描述 批准/拒绝连接的原因。 字符串
地位 指示连接是否已被服务的所有者批准/拒绝/删除。 “已批准”
“Disconnected”
“Pending”
“已拒绝”

Sku

名字 描述 价值
名字 获取或设置 SKU 名称。 创建帐户时是必需的,对于更新是可选的。 string (必需)

UserAssignedIdentity

名字 描述 价值
clientId 与此标识关联的客户端应用 ID。 字符串
principalId 与此标识关联的 Azure Active Directory 主体 ID。 字符串

UserOwnedStorage

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

VirtualNetworkRule

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