Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
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://learn.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://learn.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>.
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://learn.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
[--acquire-policy-token]
[--change-reference]
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.
| Property | Value |
|---|---|
| Accepted values: | Key1, Key2 |
Cognitive service account name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Feedback
Was this page helpful?
