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
Name | Description | Type | Status |
---|---|---|---|
az cognitiveservices account keys list |
Manage Azure Cognitive Services accounts. |
Core | GA |
az cognitiveservices account keys regenerate |
Manage Azure Cognitive Services accounts. |
Core | GA |
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
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>
.
Global Parameters
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.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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
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>
.
Global Parameters
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.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Azure CLI