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

az cognitiveservices account

管理帐户。

命令

名称 说明 类型 Status
az cognitiveservices account adapter-deployment

管理Azure认知服务帐户的 LoRA 适配器部署。

Core Preview
az cognitiveservices account adapter-deployment create

创建(或替换/重新定位)附加到托管计算部署的 LoRA 适配器部署。

Core Preview
az cognitiveservices account adapter-deployment delete

从Azure认知服务帐户中删除适配器部署。

Core Preview
az cognitiveservices account adapter-deployment list

列出Azure认知服务帐户的所有适配器部署。

Core Preview
az cognitiveservices account adapter-deployment show

显示Azure认知服务帐户的适配器部署。

Core Preview
az cognitiveservices account commitment-plan

管理Azure认知服务帐户的承诺计划。

Core GA
az cognitiveservices account commitment-plan create

为Azure认知服务帐户创建承诺计划。

Core GA
az cognitiveservices account commitment-plan delete

从Azure认知服务帐户中删除承诺计划。

Core GA
az cognitiveservices account commitment-plan list

显示Azure认知服务帐户中的所有承诺计划。

Core GA
az cognitiveservices account commitment-plan show

显示来自Azure认知服务帐户的承诺计划。

Core GA
az cognitiveservices account compute

管理Azure认知服务帐户的计算资源。

Core Preview
az cognitiveservices account compute create

为Azure认知服务帐户创建计算资源。

Core Preview
az cognitiveservices account compute delete

从Azure认知服务帐户中删除计算资源。

Core Preview
az cognitiveservices account compute list

列出Azure认知服务帐户的所有计算资源。

Core Preview
az cognitiveservices account compute show

显示Azure认知服务帐户的计算资源。

Core Preview
az cognitiveservices account compute wait

等待计算资源达到指定条件。

Core Preview
az cognitiveservices account connection

管理Azure认知服务连接及其更具体的派生。

Core GA
az cognitiveservices account connection create

创建连接。

Core GA
az cognitiveservices account connection delete

删除连接。

Core GA
az cognitiveservices account connection list

列出所有连接。

Core GA
az cognitiveservices account connection show

显示连接的详细信息。

Core GA
az cognitiveservices account connection update

更新连接。

Core GA
az cognitiveservices account costcontrol

管理 Foundry 帐户拥有的成本控制。

Core Preview
az cognitiveservices account costcontrol create

创建帐户拥有的成本控制。

Core Preview
az cognitiveservices account costcontrol delete

删除帐户拥有的成本控制。

Core Preview
az cognitiveservices account costcontrol head

检查帐户拥有的成本控制是否存在,而不返回其正文。

Core Preview
az cognitiveservices account costcontrol list

列出帐户拥有的成本控制。

Core Preview
az cognitiveservices account costcontrol show

获取帐户拥有的成本控制及其表示实体标记。

Core Preview
az cognitiveservices account costcontrol update

更新帐户拥有的成本控制。

Core Preview
az cognitiveservices account create

管理Azure认知服务帐户。

Core GA
az cognitiveservices account delete

管理Azure认知服务帐户。

Core GA
az cognitiveservices account deployment

管理Azure认知服务帐户的部署。

Core GA
az cognitiveservices account deployment create

为Azure认知服务帐户创建部署。

Core GA
az cognitiveservices account deployment delete

从Azure认知服务帐户中删除部署。

Core GA
az cognitiveservices account deployment list

显示Azure认知服务帐户的所有部署。

Core GA
az cognitiveservices account deployment show

显示Azure认知服务帐户的部署。

Core GA
az cognitiveservices account identity

管理认知服务帐户的标识。

Core GA
az cognitiveservices account identity assign

分配认知服务帐户的标识。

Core GA
az cognitiveservices account identity remove

从认知服务帐户中删除标识。

Core GA
az cognitiveservices account identity show

显示认知服务帐户的标识。

Core GA
az cognitiveservices account keys

管理Azure认知服务帐户。

Core GA
az cognitiveservices account keys list

管理Azure认知服务帐户。

Core GA
az cognitiveservices account keys regenerate

管理Azure认知服务帐户。

Core GA
az cognitiveservices account list

管理Azure认知服务帐户。

Core GA
az cognitiveservices account list-deleted

列出软删除Azure认知服务帐户。

Core GA
az cognitiveservices account list-kinds

列出Azure认知服务帐户的所有有效类型。

Core GA
az cognitiveservices account list-models

管理Azure认知服务帐户。

Core GA
az cognitiveservices account list-skus

管理Azure认知服务帐户。

Core GA
az cognitiveservices account list-usage

列出Azure认知服务帐户的使用情况。

Core GA
az cognitiveservices account managed-compute-deployment

管理Azure认知服务帐户的托管计算部署。

Core Preview
az cognitiveservices account managed-compute-deployment create

为Azure认知服务帐户创建托管计算部署。

Core Preview
az cognitiveservices account managed-compute-deployment delete

从Azure认知服务帐户中删除托管计算部署。

Core Preview
az cognitiveservices account managed-compute-deployment list

列出Azure认知服务帐户的所有托管计算部署。

Core Preview
az cognitiveservices account managed-compute-deployment show

显示Azure认知服务帐户的托管计算部署。

Core Preview
az cognitiveservices account managed-compute-deployment update

更新Azure认知服务帐户的托管计算部署。

Core Preview
az cognitiveservices account managed-network

管理Azure认知服务帐户的托管网络设置。

Core Preview
az cognitiveservices account managed-network create

为Azure认知服务帐户创建托管网络。

Core Preview
az cognitiveservices account managed-network outbound-rule

管理Azure认知服务帐户的托管网络的出站规则。

Core Preview
az cognitiveservices account managed-network outbound-rule bulk-set

从 YAML 或 JSON 文件批量创建或更新出站规则。

Core Preview
az cognitiveservices account managed-network outbound-rule list

列出托管网络的所有出站规则。

Core Preview
az cognitiveservices account managed-network outbound-rule remove

从托管网络中删除出站规则。

Core Preview
az cognitiveservices account managed-network outbound-rule set

为托管网络创建或更新单个出站规则。

Core Preview
az cognitiveservices account managed-network outbound-rule show

显示出站规则的详细信息。

Core Preview
az cognitiveservices account managed-network provision-network

为Azure认知服务帐户预配托管网络。

Core Preview
az cognitiveservices account managed-network show

显示Azure认知服务帐户的托管网络设置。

Core Preview
az cognitiveservices account managed-network update

更新Azure认知服务帐户的托管网络设置。

Core Preview
az cognitiveservices account network-rule

管理网络规则。

Core GA
az cognitiveservices account network-rule add

添加网络规则。

Core GA
az cognitiveservices account network-rule list

列出网络规则。

Core GA
az cognitiveservices account network-rule remove

删除网络规则。

Core GA
az cognitiveservices account project

管理Project。

Core GA
az cognitiveservices account project connection

管理与项目关联的Azure认知服务连接。

Core GA
az cognitiveservices account project connection create

为Azure认知服务帐户创建连接。

Core GA
az cognitiveservices account project connection delete

按名称删除认知服务项目连接。

Core GA
az cognitiveservices account project connection list

列出指定项目下的所有可用认知服务项目连接。

Core GA
az cognitiveservices account project connection show

按名称列出认知服务项目连接。

Core GA
az cognitiveservices account project connection update

更新项目连接。

Core GA
az cognitiveservices account project costcontrol

管理 Foundry 项目拥有的成本控制。

Core Preview
az cognitiveservices account project costcontrol create

创建 Foundry 项目拥有的 const 控件。

Core Preview
az cognitiveservices account project costcontrol delete

删除项目拥有的成本控制。

Core Preview
az cognitiveservices account project costcontrol head

检查项目拥有的成本控制是否存在,而不返回其正文。

Core Preview
az cognitiveservices account project costcontrol list

列出项目拥有的成本控制。

Core Preview
az cognitiveservices account project costcontrol show

获取项目拥有的成本控制及其表示实体标记。

Core Preview
az cognitiveservices account project costcontrol update

更新 Foundry 项目拥有的 const 控件。

Core Preview
az cognitiveservices account project create

为Azure认知服务帐户创建项目。

Core GA
az cognitiveservices account project delete

删除项目。

Core GA
az cognitiveservices account project list

返回认知服务帐户中的所有项目。

Core GA
az cognitiveservices account project show

返回由参数指定的认知服务项目。

Core GA
az cognitiveservices account project update

更新Azure认知服务帐户的项目。

Core GA
az cognitiveservices account purge

清除软删除Azure认知服务帐户。

Core GA
az cognitiveservices account recover

恢复软删除Azure认知服务帐户。

Core GA
az cognitiveservices account show

管理Azure认知服务帐户。

Core GA
az cognitiveservices account show-deleted

显示软删除Azure认知服务帐户。

Core GA
az cognitiveservices account update

管理Azure认知服务帐户。

Core GA

az cognitiveservices account create

管理Azure认知服务帐户。

本文仅列出了Azure认知服务帐户和订阅管理的Azure CLI命令。 请参阅各个服务的文档 https://learn.microsoft.com/azure/cognitive-services/ ,了解如何使用 API 和支持的 SDK。

az cognitiveservices account create --kind
                                    --location
                                    --name
                                    --resource-group
                                    --sku --sku-name
                                    [--acquire-policy-token]
                                    [--agent-hosting-cluster]
                                    [--agent-hosting-management-identity --agent-hosting-mi]
                                    [--agent-hosting-storage]
                                    [--agent-hosting-wi --agent-hosting-workload-identity]
                                    [--allow-project-management --manage-projects {false, true}]
                                    [--api-properties]
                                    [--assign-identity]
                                    [--change-reference]
                                    [--custom-domain]
                                    [--encryption]
                                    [--storage]
                                    [--tags]
                                    [--yes]

示例

在西欧创建 S0 人脸 API 认知服务帐户,无需确认。

az cognitiveservices account create -n myresource -g myResourceGroup --kind Face --sku S0 -l WestEurope --yes

管理Azure认知服务帐户。 (autogenerated)

az cognitiveservices account create --kind Face --location WestEurope --name myresource --resource-group myResourceGroup --sku S0 --subscription MySubscription --yes

在西欧创建文本分析认知服务帐户,无需确认并使用客户拥有的存储。

az cognitiveservices account create -n myresource -g myResourceGroup --assign-identity --kind TextAnalytics --sku S -l WestEurope --yes
    --storage '[
    {
      "resourceId": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount"
    }
  ]'

在西欧创建一个文本分析认知服务帐户,无需确认和用户客户管理的加密。

az cognitiveservices account create -n myresource -g myResourceGroup --assign-identity --kind TextAnalytics --sku S -l WestEurope --yes
    --encryption '{
      "keySource": "Microsoft.KeyVault",
      "keyVaultProperties": {
        "keyName": "KeyName",
        "keyVersion": "secretVersion",
        "keyVaultUri": "https://issue23056kv.vault.azure.net/"
      }
    }'

使用客户拥有的 AKS 创建 AI Services 帐户,自动创建存储和托管标识。

az cognitiveservices account create \
    --name foundryByocAccount \
    --resource-group myResourceGroup \
    --kind AIServices --sku S0 --location westus \
    --custom-domain foundrybyocaccount \
    --agent-hosting-cluster "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/cluster1"

必需参数

--kind

认知服务帐户的 API 名称。

属性 值
值来源: az cognitiveservices account list-kinds
--location -l

Location. az account list-locations 中的值。 可以使用 az configure --defaults location=<location> 配置默认位置。

--name -n

认知服务帐户名称。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。

--sku --sku-name

认知服务帐户/部署的 SKU 的名称。

属性 值
值来源: az cognitiveservices account list-skus

可选参数

以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。

--acquire-policy-token

为此资源操作自动获取Azure Policy令牌。

属性 值
参数组: Global Policy Arguments
--agent-hosting-cluster
预览

客户拥有的 AKS 群集的 ARM 资源 ID。 运行预检,准备缺少的存储和托管标识,并使用代理托管创建帐户。

属性 值
参数组: Agent Hosting Arguments
--agent-hosting-management-identity --agent-hosting-mi
预览

托管管理用户分配标识的 ARM 资源 ID。 提供时验证和重复使用;省略时创建。 自动分配给帐户。 需要 --agent-hosting-cluster。

属性 值
参数组: Agent Hosting Arguments
--agent-hosting-storage
预览

用于验证和重复使用的现有存储的 ARM 资源 ID。 省略时创建存储。 需要 --agent-hosting-cluster。

属性 值
参数组: Agent Hosting Arguments
--agent-hosting-wi --agent-hosting-workload-identity
预览

工作负荷用户分配标识的 ARM 资源 ID。 提供时验证和重复使用;省略时创建。 未分配给帐户。 需要 --agent-hosting-cluster。

属性 值
参数组: Agent Hosting Arguments
--allow-project-management --manage-projects

仅 AIServices 类型。 启用项目管理。 默认值为 true。

属性 值
参数组: AI Services Arguments
接受的值: false, true
--api-properties

JSON 格式或 a=b c=d 格式的 Api 属性。 某些认知服务(即 QnA Maker)需要额外的 API 属性才能创建帐户。

--assign-identity

为此帐户生成并分配Azure Active Directory标识。

属性 值
默认值: False
--change-reference

此资源操作的相关更改引用 ID。

属性 值
参数组: Global Policy Arguments
--custom-domain

分配给帐户的用户域。 名称是 CNAME 源。

--encryption

此资源的加密属性,采用 JSON 格式。

--storage

此资源的存储帐户,采用 JSON 数组格式。

--tags

空格分隔标记:key[=value] [key[=value] ...]。使用“”清除现有标记。

--yes

不要提示确认条款。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性 值
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性 值
默认值: False
--output -o

输出格式。

属性 值
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

增加日志记录详细程度。 使用 --debug 获取完整的调试日志。

属性 值
默认值: False

az cognitiveservices account delete

管理Azure认知服务帐户。

本文仅列出了Azure认知服务帐户和订阅管理的Azure CLI命令。 请参阅各个服务的文档 https://learn.microsoft.com/azure/cognitive-services/ ,了解如何使用 API 和支持的 SDK。

az cognitiveservices account delete --name
                                    --resource-group
                                    [--acquire-policy-token]
                                    [--change-reference]

示例

删除帐户。

az cognitiveservices account delete --name myresource-luis -g cognitive-services-resource-group

必需参数

--name -n

认知服务帐户名称。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。

可选参数

以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。

--acquire-policy-token

为此资源操作自动获取Azure Policy令牌。

属性 值
参数组: Global Policy Arguments
--change-reference

此资源操作的相关更改引用 ID。

属性 值
参数组: Global Policy Arguments
全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性 值
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性 值
默认值: False
--output -o

输出格式。

属性 值
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

增加日志记录详细程度。 使用 --debug 获取完整的调试日志。

属性 值
默认值: False

az cognitiveservices account list

管理Azure认知服务帐户。

本文仅列出了Azure认知服务帐户和订阅管理的Azure CLI命令。 请参阅各个服务的文档 https://learn.microsoft.com/azure/cognitive-services/ ,了解如何使用 API 和支持的 SDK。

az cognitiveservices account list [--resource-group]

示例

列出资源组中的所有认知服务帐户。

az cognitiveservices account list -g MyResourceGroup

可选参数

以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性 值
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性 值
默认值: False
--output -o

输出格式。

属性 值
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

增加日志记录详细程度。 使用 --debug 获取完整的调试日志。

属性 值
默认值: False

az cognitiveservices account list-deleted

列出软删除Azure认知服务帐户。

本文仅列出了Azure认知服务帐户和订阅管理的Azure CLI命令。 请参阅各个服务的文档 https://learn.microsoft.com/azure/cognitive-services/ ,了解如何使用 API 和支持的 SDK。

az cognitiveservices account list-deleted [--acquire-policy-token]
                                          [--change-reference]

示例

列出订阅中的所有认知服务帐户。

az cognitiveservices account list-deleted

可选参数

以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。

--acquire-policy-token

为此资源操作自动获取Azure Policy令牌。

属性 值
参数组: Global Policy Arguments
--change-reference

此资源操作的相关更改引用 ID。

属性 值
参数组: Global Policy Arguments
全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性 值
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性 值
默认值: False
--output -o

输出格式。

属性 值
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

增加日志记录详细程度。 使用 --debug 获取完整的调试日志。

属性 值
默认值: False

az cognitiveservices account list-kinds

列出Azure认知服务帐户的所有有效类型。

az cognitiveservices account list-kinds [--acquire-policy-token]
                                        [--change-reference]

可选参数

以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。

--acquire-policy-token

为此资源操作自动获取Azure Policy令牌。

属性 值
参数组: Global Policy Arguments
--change-reference

此资源操作的相关更改引用 ID。

属性 值
参数组: Global Policy Arguments
全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性 值
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性 值
默认值: False
--output -o

输出格式。

属性 值
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

增加日志记录详细程度。 使用 --debug 获取完整的调试日志。

属性 值
默认值: False

az cognitiveservices account list-models

管理Azure认知服务帐户。

本文仅列出了Azure认知服务帐户和订阅管理的Azure CLI命令。 请参阅各个服务的文档 https://learn.microsoft.com/azure/cognitive-services/ ,了解如何使用 API 和支持的 SDK。

az cognitiveservices account list-models --name
                                         --resource-group
                                         [--acquire-policy-token]
                                         [--change-reference]

示例

列出可用于认知服务帐户的模型。

az cognitiveservices account list-models -n myresource -g cognitive-services-resource-group

必需参数

--name -n

认知服务帐户名称。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。

可选参数

以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。

--acquire-policy-token

为此资源操作自动获取Azure Policy令牌。

属性 值
参数组: Global Policy Arguments
--change-reference

此资源操作的相关更改引用 ID。

属性 值
参数组: Global Policy Arguments
全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性 值
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性 值
默认值: False
--output -o

输出格式。

属性 值
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

增加日志记录详细程度。 使用 --debug 获取完整的调试日志。

属性 值
默认值: False

az cognitiveservices account list-skus

管理Azure认知服务帐户。

本文仅列出了Azure认知服务帐户和订阅管理的Azure CLI命令。 请参阅各个服务的文档 https://learn.microsoft.com/azure/cognitive-services/ ,了解如何使用 API 和支持的 SDK。

az cognitiveservices account list-skus [--acquire-policy-token]
                                       [--change-reference]
                                       [--kind]
                                       [--location]
                                       [--name]
                                       [--resource-group]

示例

显示 SKU。

az cognitiveservices account list-skus --kind Face --location westus

可选参数

以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。

--acquire-policy-token

为此资源操作自动获取Azure Policy令牌。

属性 值
参数组: Global Policy Arguments
--change-reference

此资源操作的相关更改引用 ID。

属性 值
参数组: Global Policy Arguments
--kind

认知服务帐户的 API 名称。

属性 值
值来源: az cognitiveservices account list-kinds
--location -l

Location. az account list-locations 中的值。 可以使用 az configure --defaults location=<location> 配置默认位置。

--name -n

认知服务帐户名称。

指定 --name 时,将忽略 --kind 和 --location。 指定 --name 时需要 --resource-group。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。

--resource-group 在指定 --name 时使用。 在其他情况下,将忽略它。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性 值
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性 值
默认值: False
--output -o

输出格式。

属性 值
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

增加日志记录详细程度。 使用 --debug 获取完整的调试日志。

属性 值
默认值: False

az cognitiveservices account list-usage

列出Azure认知服务帐户的使用情况。

az cognitiveservices account list-usage --name
                                        --resource-group
                                        [--acquire-policy-token]
                                        [--change-reference]

必需参数

--name -n

认知服务帐户名称。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。

可选参数

以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。

--acquire-policy-token

为此资源操作自动获取Azure Policy令牌。

属性 值
参数组: Global Policy Arguments
--change-reference

此资源操作的相关更改引用 ID。

属性 值
参数组: Global Policy Arguments
全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性 值
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性 值
默认值: False
--output -o

输出格式。

属性 值
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

增加日志记录详细程度。 使用 --debug 获取完整的调试日志。

属性 值
默认值: False

az cognitiveservices account purge

清除软删除Azure认知服务帐户。

本文仅列出了Azure认知服务帐户和订阅管理的Azure CLI命令。 请参阅各个服务的文档 https://learn.microsoft.com/azure/cognitive-services/ ,了解如何使用 API 和支持的 SDK。

az cognitiveservices account purge --location
                                   --name
                                   --resource-group
                                   [--acquire-policy-token]
                                   [--change-reference]

示例

清除软删除Azure认知服务帐户。

az cognitiveservices account purge --location eastus --resource-group cognitive-services-resource-group --name cognitive-services-account-name

必需参数

--location -l

Location. az account list-locations 中的值。 可以使用 az configure --defaults location=<location> 配置默认位置。

--name -n

认知服务帐户名称。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。

可选参数

以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。

--acquire-policy-token

为此资源操作自动获取Azure Policy令牌。

属性 值
参数组: Global Policy Arguments
--change-reference

此资源操作的相关更改引用 ID。

属性 值
参数组: Global Policy Arguments
全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性 值
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性 值
默认值: False
--output -o

输出格式。

属性 值
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

增加日志记录详细程度。 使用 --debug 获取完整的调试日志。

属性 值
默认值: False

az cognitiveservices account recover

恢复软删除Azure认知服务帐户。

本文仅列出了Azure认知服务帐户和订阅管理的Azure CLI命令。 请参阅各个服务的文档 https://learn.microsoft.com/azure/cognitive-services/ ,了解如何使用 API 和支持的 SDK。

az cognitiveservices account recover --location
                                     --name
                                     --resource-group
                                     [--acquire-policy-token]
                                     [--change-reference]

示例

恢复软删除Azure认知服务帐户。

az cognitiveservices account recover --location eastus --resource-group cognitive-services-resource-group --name cognitive-services-account-name

必需参数

--location -l

Location. az account list-locations 中的值。 可以使用 az configure --defaults location=<location> 配置默认位置。

--name -n

认知服务帐户名称。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。

可选参数

以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。

--acquire-policy-token

为此资源操作自动获取Azure Policy令牌。

属性 值
参数组: Global Policy Arguments
--change-reference

此资源操作的相关更改引用 ID。

属性 值
参数组: Global Policy Arguments
全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性 值
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性 值
默认值: False
--output -o

输出格式。

属性 值
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

增加日志记录详细程度。 使用 --debug 获取完整的调试日志。

属性 值
默认值: False

az cognitiveservices account show

管理Azure认知服务帐户。

本文仅列出了Azure认知服务帐户和订阅管理的Azure CLI命令。 请参阅各个服务的文档 https://learn.microsoft.com/azure/cognitive-services/ ,了解如何使用 API 和支持的 SDK。

az cognitiveservices account show --name
                                  --resource-group

示例

显示帐户信息。

az cognitiveservices account show --name myresource --resource-group cognitive-services-resource-group

必需参数

--name -n

认知服务帐户名称。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性 值
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性 值
默认值: False
--output -o

输出格式。

属性 值
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

增加日志记录详细程度。 使用 --debug 获取完整的调试日志。

属性 值
默认值: False

az cognitiveservices account show-deleted

显示软删除Azure认知服务帐户。

本文仅列出了Azure认知服务帐户和订阅管理的Azure CLI命令。 请参阅各个服务的文档 https://learn.microsoft.com/azure/cognitive-services/ ,了解如何使用 API 和支持的 SDK。

az cognitiveservices account show-deleted --location
                                          --name
                                          --resource-group
                                          [--acquire-policy-token]
                                          [--change-reference]

示例

显示软删除Azure认知服务帐户。

az cognitiveservices account show-deleted --location eastus --resource-group cognitive-services-resource-group --name cognitive-services-account-name

必需参数

--location -l

Location. az account list-locations 中的值。 可以使用 az configure --defaults location=<location> 配置默认位置。

--name -n

认知服务帐户名称。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。

可选参数

以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。

--acquire-policy-token

为此资源操作自动获取Azure Policy令牌。

属性 值
参数组: Global Policy Arguments
--change-reference

此资源操作的相关更改引用 ID。

属性 值
参数组: Global Policy Arguments
全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性 值
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性 值
默认值: False
--output -o

输出格式。

属性 值
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

增加日志记录详细程度。 使用 --debug 获取完整的调试日志。

属性 值
默认值: False

az cognitiveservices account update

管理Azure认知服务帐户。

本文仅列出了Azure认知服务帐户和订阅管理的Azure CLI命令。 请参阅各个服务的文档 https://learn.microsoft.com/azure/cognitive-services/ ,了解如何使用 API 和支持的 SDK。

az cognitiveservices account update --name
                                    --resource-group
                                    [--acquire-policy-token]
                                    [--allow-project-management --manage-projects {false, true}]
                                    [--api-properties]
                                    [--change-reference]
                                    [--custom-domain]
                                    [--encryption]
                                    [--kind {AIServices, OpenAI}]
                                    [--sku --sku-name]
                                    [--storage]
                                    [--tags]

示例

更新 SKU 和标记。

az cognitiveservices account update --name myresource -g cognitive-services-resource-group --sku S0 --tags external-app=chatbot-HR azure-web-app-bot=HR-external azure-app-service=HR-external-app-service

必需参数

--name -n

认知服务帐户名称。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。

可选参数

以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。

--acquire-policy-token

为此资源操作自动获取Azure Policy令牌。

属性 值
参数组: Global Policy Arguments
--allow-project-management --manage-projects

仅 AIServices 类型。 启用项目管理。 默认值为 true。

属性 值
参数组: AI Services Arguments
接受的值: false, true
--api-properties

JSON 格式或 a=b c=d 格式的 Api 属性。 某些认知服务(即 QnA Maker)需要额外的 API 属性才能创建帐户。

--change-reference

此资源操作的相关更改引用 ID。

属性 值
参数组: Global Policy Arguments
--custom-domain

分配给帐户的用户域。 名称是 CNAME 源。

--encryption

此资源的加密属性,采用 JSON 格式。

--kind

要将现有帐户转换为的目标 API 名称。

属性 值
参数组: AI Services Arguments
接受的值: AIServices, OpenAI
--sku --sku-name

认知服务帐户/部署的 SKU 的名称。

属性 值
值来源: az cognitiveservices account list-skus
--storage

此资源的存储帐户,采用 JSON 数组格式。

--tags

空格分隔标记:key[=value] [key[=value] ...]。使用“”清除现有标记。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性 值
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性 值
默认值: False
--output -o

输出格式。

属性 值
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

增加日志记录详细程度。 使用 --debug 获取完整的调试日志。

属性 值
默认值: False