az cognitiveservices account keys
Manage Azure Cognitive Services accounts.
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.
Commands
az cognitiveservices account keys list |
Manage Azure Cognitive Services accounts. |
az cognitiveservices account keys regenerate |
Manage Azure Cognitive Services accounts. |
az cognitiveservices account keys list
Manage Azure Cognitive Services accounts.
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 keys list --name
--resource-group
[--query-examples]
[--subscription]
Examples
Get current resource keys.
az cognitiveservices account keys list --name myresource -g cognitive-services-resource-group
Manage Azure Cognitive Services accounts. (autogenerated)
az cognitiveservices account keys list --name myresource --resource-group cognitive-services-resource-group --subscription MySubscription
Required Parameters
Cognitive service account name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
az cognitiveservices account keys regenerate
Manage Azure Cognitive Services accounts.
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 keys regenerate --key-name {key1, key2}
--name
--resource-group
[--subscription]
Examples
Get new keys for resource.
az cognitiveservices account keys regenerate --name myresource -g cognitive-services-resource-group --key-name key1
Required Parameters
Key name to generate.
Cognitive service account name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.