CmdID / az / az cognitiveservices / az cognitiveservices account / az cognitiveservices account keys
az cognitiveservices account keys regenerate
Manage Azure Cognitive Services accounts. Azure CLI reference
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.
1 example Its page in the Azure CLI reference
Examples
Get new keys for resource.
az cognitiveservices account keys regenerate --name myresource -g cognitive-services-resource-group --key-name key1Identify--namecognitive service account name-gName of resource group.--key-nameKey name to generate