az cognitiveservices account keys
管理 Azure 認知服務帳戶。
本文僅列出 Azure 認知服務帳戶和訂用帳戶管理的 Azure CLI 命令。 請參閱個別服務的檔 https://learn.microsoft.com/azure/cognitive-services/ ,以瞭解如何使用 API 和支援的 SDK。
命令
| 名稱 | Description | 類型 | 狀態 |
|---|---|---|---|
| az cognitiveservices account keys list |
管理 Azure 認知服務帳戶。 |
Core | GA |
| az cognitiveservices account keys regenerate |
管理 Azure 認知服務帳戶。 |
Core | GA |
az cognitiveservices account keys list
管理 Azure 認知服務帳戶。
本文僅列出 Azure 認知服務帳戶和訂用帳戶管理的 Azure CLI 命令。 請參閱個別服務的檔 https://learn.microsoft.com/azure/cognitive-services/ ,以瞭解如何使用 API 和支援的 SDK。
az cognitiveservices account keys list --name
--resource-group
範例
取得目前的資源金鑰。
az cognitiveservices account keys list --name myresource -g cognitive-services-resource-group
管理 Azure 認知服務帳戶。 (autogenerated)
az cognitiveservices account keys list --name myresource --resource-group cognitive-services-resource-group --subscription MySubscription
必要參數
認知服務帳戶名稱。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az cognitiveservices account keys regenerate
管理 Azure 認知服務帳戶。
本文僅列出 Azure 認知服務帳戶和訂用帳戶管理的 Azure CLI 命令。 請參閱個別服務的檔 https://learn.microsoft.com/azure/cognitive-services/ ,以瞭解如何使用 API 和支援的 SDK。
az cognitiveservices account keys regenerate --key-name {Key1, Key2}
--name
--resource-group
範例
取得資源的新金鑰。
az cognitiveservices account keys regenerate --name myresource -g cognitive-services-resource-group --key-name key1
必要參數
要產生的金鑰名稱。
| 屬性 | 值 |
|---|---|
| 接受的值: | Key1, Key2 |
認知服務帳戶名稱。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |