az cognitiveservices account identity

管理認知服務帳戶的身分識別。

命令

名稱 Description 類型 狀態
az cognitiveservices account identity assign

指派認知服務帳戶的身分識別。

核心 GA
az cognitiveservices account identity remove

從認知服務帳戶移除身分識別。

核心 GA
az cognitiveservices account identity show

顯示認知服務帳戶的身分識別。

核心 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

必要參數

--name -n

認知服務帳戶名稱。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

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

必要參數

--name -n

認知服務帳戶名稱。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

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

必要參數

--name -n

認知服務帳戶名稱。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。