שתף באמצעות


az cognitiveservices account commitment-plan

Manage commitment plans for Azure Cognitive Services accounts.

Commands

Name Description Type Status
az cognitiveservices account commitment-plan create

Create a commitment plan for Azure Cognitive Services account.

Core GA
az cognitiveservices account commitment-plan delete

Delete a commitment plan from Azure Cognitive Services account.

Core GA
az cognitiveservices account commitment-plan list

Show all commitment plans from Azure Cognitive Services account.

Core GA
az cognitiveservices account commitment-plan show

Show a commitment plan from Azure Cognitive Services account.

Core GA

az cognitiveservices account commitment-plan create

Create a commitment plan for Azure Cognitive Services account.

This article lists the Azure CLI commands for Azure Cognitive Services account and subscription management only. Refer to the documentation at https://docs.microsoft.com/azure/cognitive-services/ for individual services to learn how to use the APIs and supported SDKs.

az cognitiveservices account commitment-plan create --auto-renew {false, true}
                                                    --commitment-plan-name
                                                    --hosting-model {ConnectedContainer, DisconnectedContainer, ProvisionedWeb, Web}
                                                    --name
                                                    --plan-type
                                                    --resource-group
                                                    [--current-count]
                                                    [--current-tier]
                                                    [--next-count]
                                                    [--next-tier]

Examples

Create a commitment plan for Azure Cognitive Services account.

az cognitiveservices account commitment-plan create -g yuanyang-test-sdk -n yytest-ta --commitment-plan-name "plan" --hosting-model "Web" --plan-type "TA" --auto-renew false --current-tier "T1" --next-tier "T2"

Required Parameters

--auto-renew

A boolean indicating whether to apply auto renew.

Accepted values: false, true
--commitment-plan-name

Cognitive Services account commitment plan name.

--hosting-model

Cognitive Services account hosting model.

Accepted values: ConnectedContainer, DisconnectedContainer, ProvisionedWeb, Web
--name -n

Cognitive service account name.

--plan-type

Cognitive Services account commitment plan type.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--current-count

Cognitive Services account commitment plan current commitment period count.

--current-tier

Cognitive Services account commitment plan current commitment period tier.

--next-count

Cognitive Services account commitment plan next commitment period count.

--next-tier

Cognitive Services account commitment plan next commitment period tier.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az cognitiveservices account commitment-plan delete

Delete a commitment plan from Azure Cognitive Services account.

This article lists the Azure CLI commands for Azure Cognitive Services account and subscription management only. Refer to the documentation at https://docs.microsoft.com/azure/cognitive-services/ for individual services to learn how to use the APIs and supported SDKs.

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

Examples

Delete a commitment plan from Azure Cognitive Services account.

az cognitiveservices account commitment-plan delete -g yuanyang-test-sdk -n yytest-ta --commitment-plan-name "plan"

Required Parameters

--commitment-plan-name

Cognitive Services account commitment plan name.

--name -n

Cognitive service account name.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az cognitiveservices account commitment-plan list

Show all commitment plans from Azure Cognitive Services account.

This article lists the Azure CLI commands for Azure Cognitive Services account and subscription management only. Refer to the documentation at https://docs.microsoft.com/azure/cognitive-services/ for individual services to learn how to use the APIs and supported SDKs.

az cognitiveservices account commitment-plan list --name
                                                  --resource-group

Examples

Show all commitment plans from Azure Cognitive Services account.

az cognitiveservices account commitment-plan list -g yuanyang-test-sdk -n yytest-ta

Required Parameters

--name -n

Cognitive service account name.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az cognitiveservices account commitment-plan show

Show a commitment plan from Azure Cognitive Services account.

This article lists the Azure CLI commands for Azure Cognitive Services account and subscription management only. Refer to the documentation at https://docs.microsoft.com/azure/cognitive-services/ for individual services to learn how to use the APIs and supported SDKs.

az cognitiveservices account commitment-plan show --commitment-plan-name
                                                  --name
                                                  --resource-group

Examples

Show a commitment plan from Azure Cognitive Services account.

az cognitiveservices account commitment-plan show -g yuanyang-test-sdk -n yytest-ta --commitment-plan-name "plan"

Required Parameters

--commitment-plan-name

Cognitive Services account commitment plan name.

--name -n

Cognitive service account name.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.