az cognitiveservices account

管理 Azure 認知服務帳戶。

本文僅列出 Azure 認知服務帳戶和訂用帳戶管理的 Azure CLI 命令。 請參閱個別服務的檔 https://docs.microsoft.com/azure/cognitive-services/ ,以瞭解如何使用 API 和支援的 SDK。

命令

名稱 Description 類型 狀態
az cognitiveservices account commitment-plan

管理 Azure 認知服務帳戶的承諾方案。

核心 GA
az cognitiveservices account commitment-plan create

建立 Azure 認知服務帳戶的承諾方案。

核心 GA
az cognitiveservices account commitment-plan delete

從 Azure 認知服務帳戶刪除承諾用量方案。

核心 GA
az cognitiveservices account commitment-plan list

顯示來自 Azure 認知服務帳戶的所有承諾方案。

核心 GA
az cognitiveservices account commitment-plan show

顯示來自 Azure 認知服務帳戶的承諾方案。

核心 GA
az cognitiveservices account create

管理 Azure 認知服務帳戶。

核心 GA
az cognitiveservices account delete

管理 Azure 認知服務帳戶。

核心 GA
az cognitiveservices account deployment

管理 Azure 認知服務帳戶的部署。

核心 GA
az cognitiveservices account deployment create

建立 Azure 認知服務帳戶的部署。

核心 GA
az cognitiveservices account deployment delete

從 Azure 認知服務帳戶刪除部署。

核心 GA
az cognitiveservices account deployment list

顯示 Azure 認知服務帳戶的所有部署。

核心 GA
az cognitiveservices account deployment show

顯示 Azure 認知服務帳戶的部署。

核心 GA
az cognitiveservices account identity

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

核心 GA
az cognitiveservices account identity assign

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

核心 GA
az cognitiveservices account identity remove

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

核心 GA
az cognitiveservices account identity show

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

核心 GA
az cognitiveservices account keys

管理 Azure 認知服務帳戶。

核心 GA
az cognitiveservices account keys list

管理 Azure 認知服務帳戶。

核心 GA
az cognitiveservices account keys regenerate

管理 Azure 認知服務帳戶。

核心 GA
az cognitiveservices account list

管理 Azure 認知服務帳戶。

核心 GA
az cognitiveservices account list-deleted

列出虛刪除的 Azure 認知服務帳戶。

核心 GA
az cognitiveservices account list-kinds

列出 Azure 認知服務帳戶的所有有效類型。

核心 GA
az cognitiveservices account list-models

管理 Azure 認知服務帳戶。

核心 GA
az cognitiveservices account list-skus

管理 Azure 認知服務帳戶。

核心 GA
az cognitiveservices account list-usage

列出 Azure 認知服務帳戶的使用方式。

核心 GA
az cognitiveservices account network-rule

管理網路規則。

核心 GA
az cognitiveservices account network-rule add

新增網路規則。

核心 GA
az cognitiveservices account network-rule list

列出網路規則。

核心 GA
az cognitiveservices account network-rule remove

移除網路規則。

核心 GA
az cognitiveservices account purge

清除虛刪除的 Azure 認知服務帳戶。

核心 GA
az cognitiveservices account recover

復原虛刪除的 Azure 認知服務帳戶。

核心 GA
az cognitiveservices account show

管理 Azure 認知服務帳戶。

核心 GA
az cognitiveservices account show-deleted

顯示虛刪除的 Azure 認知服務帳戶。

核心 GA
az cognitiveservices account update

管理 Azure 認知服務帳戶。

核心 GA

az cognitiveservices account create

管理 Azure 認知服務帳戶。

本文僅列出 Azure 認知服務帳戶和訂用帳戶管理的 Azure CLI 命令。 請參閱個別服務的檔 https://docs.microsoft.com/azure/cognitive-services/ ,以瞭解如何使用 API 和支援的 SDK。

az cognitiveservices account create --kind
                                    --location
                                    --name
                                    --resource-group
                                    --sku
                                    [--api-properties]
                                    [--assign-identity]
                                    [--custom-domain]
                                    [--encryption]
                                    [--storage]
                                    [--tags]
                                    [--yes]

範例

在西歐建立 S0 臉部 API 認知服務帳戶,而不需要確認。

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

管理 Azure 認知服務帳戶。 (自動產生)

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/"
      }
    }'

必要參數

--kind

認知服務帳戶的 API 名稱。

值來自: az cognitiveservices account list-kinds
--location -l

位置。​​ 來自的值: 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

選擇性參數

--api-properties

JSON 格式或 a=b c=d 格式的 Api 屬性。 某些認知服務(亦即 QnA Maker)需要額外的 API 屬性才能建立帳戶。

--assign-identity

產生並指派此帳戶的 Azure Active Directory 身分識別。

預設值: False
--custom-domain

指派給帳戶的使用者網域。 名稱是 CNAME 來源。

--encryption

此資源的加密屬性,格式為 JSON。

--storage

此資源的儲存體帳戶,格式為 JSON 陣列。

--tags

以空格分隔的標記:key[=value] [key[=value] ...]。使用 「」 清除現有的標記。

--yes

請勿提示確認條款。

全域參數
--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 delete

管理 Azure 認知服務帳戶。

本文僅列出 Azure 認知服務帳戶和訂用帳戶管理的 Azure CLI 命令。 請參閱個別服務的檔 https://docs.microsoft.com/azure/cognitive-services/ ,以瞭解如何使用 API 和支援的 SDK。

az cognitiveservices account delete --name
                                    --resource-group

範例

刪除帳戶。

az cognitiveservices account delete --name myresource-luis -g 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 list

管理 Azure 認知服務帳戶。

本文僅列出 Azure 認知服務帳戶和訂用帳戶管理的 Azure CLI 命令。 請參閱個別服務的檔 https://docs.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

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

--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 list-deleted

列出虛刪除的 Azure 認知服務帳戶。

本文僅列出 Azure 認知服務帳戶和訂用帳戶管理的 Azure CLI 命令。 請參閱個別服務的檔 https://docs.microsoft.com/azure/cognitive-services/ ,以瞭解如何使用 API 和支援的 SDK。

az cognitiveservices account list-deleted

範例

列出訂用帳戶中的所有認知服務帳戶。

az cognitiveservices account list-deleted
全域參數
--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 list-kinds

列出 Azure 認知服務帳戶的所有有效類型。

az cognitiveservices account list-kinds
全域參數
--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 list-models

管理 Azure 認知服務帳戶。

本文僅列出 Azure 認知服務帳戶和訂用帳戶管理的 Azure CLI 命令。 請參閱個別服務的檔 https://docs.microsoft.com/azure/cognitive-services/ ,以瞭解如何使用 API 和支援的 SDK。

az cognitiveservices account list-models --name
                                         --resource-group

範例

列出認知服務帳戶可用的模型。

az cognitiveservices account list-models -n myresource -g 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 list-skus

管理 Azure 認知服務帳戶。

本文僅列出 Azure 認知服務帳戶和訂用帳戶管理的 Azure CLI 命令。 請參閱個別服務的檔 https://docs.microsoft.com/azure/cognitive-services/ ,以瞭解如何使用 API 和支援的 SDK。

az cognitiveservices account list-skus [--kind]
                                       [--location]
                                       [--name]
                                       [--resource-group]

範例

顯示 SKU。

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

選擇性參數

--kind

認知服務帳戶的 API 名稱。

值來自: az cognitiveservices account list-kinds
--location -l

位置。​​ 來自的值: 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>

當指定 --name 時,會使用 --resource-group。 在其他情況下,將會忽略它。

全域參數
--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 list-usage

列出 Azure 認知服務帳戶的使用方式。

az cognitiveservices account list-usage --name
                                        --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 purge

清除虛刪除的 Azure 認知服務帳戶。

本文僅列出 Azure 認知服務帳戶和訂用帳戶管理的 Azure CLI 命令。 請參閱個別服務的檔 https://docs.microsoft.com/azure/cognitive-services/ ,以瞭解如何使用 API 和支援的 SDK。

az cognitiveservices account purge --location
                                   --name
                                   --resource-group

範例

清除虛刪除的 Azure 認知服務帳戶。

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

必要參數

--location -l

位置。​​ 來自的值: az account list-locations 。 您可以使用 來設定預設位置 az configure --defaults location=<location>

--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 recover

復原虛刪除的 Azure 認知服務帳戶。

本文僅列出 Azure 認知服務帳戶和訂用帳戶管理的 Azure CLI 命令。 請參閱個別服務的檔 https://docs.microsoft.com/azure/cognitive-services/ ,以瞭解如何使用 API 和支援的 SDK。

az cognitiveservices account recover --location
                                     --name
                                     --resource-group

範例

復原虛刪除的 Azure 認知服務帳戶。

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

必要參數

--location -l

位置。​​ 來自的值: az account list-locations 。 您可以使用 來設定預設位置 az configure --defaults location=<location>

--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 show

管理 Azure 認知服務帳戶。

本文僅列出 Azure 認知服務帳戶和訂用帳戶管理的 Azure CLI 命令。 請參閱個別服務的檔 https://docs.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

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

--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 show-deleted

顯示虛刪除的 Azure 認知服務帳戶。

本文僅列出 Azure 認知服務帳戶和訂用帳戶管理的 Azure CLI 命令。 請參閱個別服務的檔 https://docs.microsoft.com/azure/cognitive-services/ ,以瞭解如何使用 API 和支援的 SDK。

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

範例

顯示虛刪除的 Azure 認知服務帳戶。

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

必要參數

--location -l

位置。​​ 來自的值: az account list-locations 。 您可以使用 來設定預設位置 az configure --defaults location=<location>

--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 update

管理 Azure 認知服務帳戶。

本文僅列出 Azure 認知服務帳戶和訂用帳戶管理的 Azure CLI 命令。 請參閱個別服務的檔 https://docs.microsoft.com/azure/cognitive-services/ ,以瞭解如何使用 API 和支援的 SDK。

az cognitiveservices account update --name
                                    --resource-group
                                    [--api-properties]
                                    [--custom-domain]
                                    [--encryption]
                                    [--sku]
                                    [--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>

選擇性參數

--api-properties

JSON 格式或 a=b c=d 格式的 Api 屬性。 某些認知服務(亦即 QnA Maker)需要額外的 API 屬性才能建立帳戶。

--custom-domain

指派給帳戶的使用者網域。 名稱是 CNAME 來源。

--encryption

此資源的加密屬性,格式為 JSON。

--sku --sku-name

認知服務帳戶/部署的 Sku 名稱。

值來自: az cognitiveservices account list-skus
--storage

此資源的儲存體帳戶,格式為 JSON 陣列。

--tags

以空格分隔的標記:key[=value] [key[=value] ...]。使用 「」 清除現有的標記。

全域參數
--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 來取得完整偵錯記錄。