az cognitiveservices account deployment

管理 Azure Cognitive Services 帳號的部署。

命令

名稱 Description 類型 狀態
az cognitiveservices account deployment create

建立 Azure Cognitive Services 帳號的部署。

Core GA
az cognitiveservices account deployment delete

從 Azure Cognitive Services 帳號刪除部署。

Core GA
az cognitiveservices account deployment list

顯示 Azure Cognitive Services 帳號的所有部署。

Core GA
az cognitiveservices account deployment show

顯示 Azure Cognitive Services 帳戶的部署。

Core GA

az cognitiveservices account deployment create

建立 Azure Cognitive Services 帳號的部署。

要部署 Anthropic 模型,請使用符合資格的 Foundry 帳號,並為每次 Anthropic 部署提供組織名稱、產業及國家。 使用模型來呈現真實組織的數值。 請提供兩個字母的 ISO 3166-1 alpha-2 國家代碼,例如美國,而非國家名稱。 這些論證在其他模型格式中並不必要。 模型可用性、市場資格、條款及配額要求仍然適用。

az cognitiveservices account deployment create --model-format
                                               --model-name
                                               --model-version
                                               --name
                                               --resource-group
                                               [--acquire-policy-token]
                                               [--capacity --sku-capacity]
                                               [--change-reference]
                                               [--country --country-code]
                                               [--deployment-name]
                                               [--industry]
                                               [--model-source]
                                               [--organization-name]
                                               [--scale-capacity --scale-settings-capacity]
                                               [--scale-settings-scale-type --scale-type {Manual, Standard}]
                                               [--sku --sku-name]
                                               [--spillover-deployment-name --spillover-name]

範例

建立 Azure Cognitive Services 帳號的部署。

az cognitiveservices account deployment create -g yuanyang-test-sdk -n yytest-oai --deployment-name dpy --model-name ada --model-version "1" --model-format OpenAI --sku-capacity 1 --sku-name "Standard"

建立一個包含組織資訊的 Anthropic Claude 部署。

az cognitiveservices account deployment create -g myResourceGroup -n myFoundryAccount --deployment-name my-haiku --model-name claude-haiku-4-5 --model-version "2" --model-format Anthropic --sku-capacity 1 --sku-name GlobalStandard --organization-name "Contoso" --industry "Law" --country "US"

必要參數

--model-format

認知服務帳戶部署模型格式。

屬性 值
參數群組: DeploymentModel Arguments
--model-name

認知服務帳戶部署模型名稱。

屬性 值
參數群組: DeploymentModel Arguments
--model-version

認知服務帳戶部署模型版本。

屬性 值
參數群組: DeploymentModel Arguments
--name -n

認知服務帳戶名稱。

--resource-group -g

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

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--acquire-policy-token

自動取得 Azure 原則 令牌以進行此資源操作。

屬性 值
參數群組: Global Policy Arguments
--capacity --sku-capacity

認知服務帳戶/部署 SKU 的容量值。

--change-reference

相關變更的 ID 是為此資源操作所參考的。

屬性 值
參數群組: Global Policy Arguments
--country --country-code

組織的兩字母 ISO 3166-1 alpha-2 國家代碼,例如美國。 Anthropic 部署必備。 請指定 ---組織名稱與---產業。

屬性 值
參數群組: Model provider Arguments
--deployment-name

認知服務帳戶部署名稱。

--industry

採用 Anthropic 模式的組織產業,例如法律。 Anthropic 部署必備。 請同時指定 --組織名稱和--國家。

屬性 值
參數群組: Model provider Arguments
--model-source

認知服務帳戶部署模型來源。

屬性 值
參數群組: DeploymentModel Arguments
--organization-name

採用 Anthropic 模式的組織名稱。 Anthropic 部署必備。 請同時指定 ---產業和--國家。

屬性 值
參數群組: Model provider Arguments
--scale-capacity --scale-settings-capacity

認知服務帳戶部署調整設定容量。

屬性 值
參數群組: DeploymentScaleSettings Arguments
--scale-settings-scale-type --scale-type

認知服務帳戶部署調整設定擴展類型。

屬性 值
參數群組: DeploymentScaleSettings Arguments
接受的值: Manual, Standard
--sku --sku-name

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

--spillover-deployment-name --spillover-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

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性 值
預設值: False

az cognitiveservices account deployment delete

從 Azure Cognitive Services 帳號刪除部署。

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

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

範例

從 Azure Cognitive Services 帳號刪除部署。

az cognitiveservices account deployment delete -g yuanyang-test-sdk -n yytest-oai --deployment-name dpy

必要參數

--name -n

認知服務帳戶名稱。

--resource-group -g

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

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--acquire-policy-token

自動取得 Azure 原則 令牌以進行此資源操作。

屬性 值
參數群組: Global Policy Arguments
--change-reference

相關變更的 ID 是為此資源操作所參考的。

屬性 值
參數群組: Global Policy Arguments
--deployment-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

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性 值
預設值: False

az cognitiveservices account deployment list

顯示 Azure Cognitive Services 帳號的所有部署。

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

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

範例

顯示 Azure Cognitive Services 帳號的所有部署。

az cognitiveservices account deployment list -g yuanyang-test-sdk -n yytest-oai

必要參數

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

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性 值
預設值: False

az cognitiveservices account deployment show

顯示 Azure Cognitive Services 帳戶的部署。

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

az cognitiveservices account deployment show --name
                                             --resource-group
                                             [--deployment-name]

範例

顯示 Azure Cognitive Services 帳戶的部署。

az cognitiveservices account deployment show -g yuanyang-test-sdk -n yytest-oai --deployment-name dpy

必要參數

--name -n

認知服務帳戶名稱。

--resource-group -g

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

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

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

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性 值
預設值: False