az cognitiveservices account identity
管理认知服务帐户的标识。
命令
| 名称 | 说明 | 类型 | Status |
|---|---|---|---|
| az cognitiveservices account identity assign |
分配认知服务帐户的标识。 |
Core | GA |
| az cognitiveservices account identity remove |
从认知服务帐户中删除标识。 |
Core | GA |
| az cognitiveservices account identity show |
显示认知服务帐户的标识。 |
Core | GA |
az cognitiveservices account identity assign
分配认知服务帐户的标识。
分配认知服务帐户的标识对象。 系统将生成系统分配的标识并将其分配给该帐户。
az cognitiveservices account identity assign --name
--resource-group
示例
分配认知服务帐户的标识。
az cognitiveservices account identity assign --name myresource --resource-group cognitive-services-resource-group
必需参数
认知服务帐户名称。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az cognitiveservices account identity remove
从认知服务帐户中删除标识。
从认知服务帐户中删除标识(如果存在)。
az cognitiveservices account identity remove --name
--resource-group
示例
从认知服务帐户中删除标识。
az cognitiveservices account identity remove --name myresource --resource-group cognitive-services-resource-group
必需参数
认知服务帐户名称。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az cognitiveservices account identity show
显示认知服务帐户的标识。
显示认知服务帐户的标识对象,如果帐户没有分配的标识,可能会返回空对象。
az cognitiveservices account identity show --name
--resource-group
示例
显示认知服务帐户的标识。
az cognitiveservices account identity show --name myresource --resource-group cognitive-services-resource-group
必需参数
认知服务帐户名称。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |