CmdID / az / az search / az search service / az search service admin-key
az search service admin-key regenerate
Regenerates either the primary or secondary admin API key. Azure CLI reference
2 options Its page in the Azure CLI reference
Options
--key-kind, --name, -nSpecifies which key to regenerate.--search-service-nameThe name of the Azure AI Search service associated with the specified resource group.