CmdID / az / az maps / az maps account / az maps account keys
az maps account keys renew
Renew either the primary or secondary key for use with the Maps APIs. Azure CLI reference
This command immediately invalidates old API keys. Only the renewed keys can be used to connect to maps.
1 example 1 option Its page in the Azure CLI reference
Examples
Renew
az maps account keys renew --name "myMapsAccount" --key "primary" --resource-group "myResourceGroup"Identify--nameThe name of the maps account--keyWhether the operation refers to the primary or secondary key--resource-groupResource group nameOptions
--keyWhether the operation refers to the primary or secondary key