az maps account keys

Manage Azure Maps account keys.

Commands

az maps account keys list

Get the keys to use with the Maps APIs. A key is used to authenticate and authorize access to the Maps REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration.

az maps account keys renew

Regenerate either the primary or secondary key for use with the Maps APIs. The old key will stop working immediately.

az maps account keys list

Get the keys to use with the Maps APIs. A key is used to authenticate and authorize access to the Maps REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration.

az maps account keys list --account-name
                          --resource-group

Examples

List Keys

az maps account keys list --name "myMapsAccount" --resource-group "myResourceGroup"

Required Parameters

--account-name --name -n

The name of the maps account.

--resource-group -g

Resource group name.

az maps account keys renew

Regenerate either the primary or secondary key for use with the Maps APIs. The old key will stop working immediately.

az maps account keys renew --account-name
                           --key {primary, secondary}
                           --resource-group

Examples

Renew

az maps account keys renew --name "myMapsAccount" --key "primary" --resource-group "myResourceGroup"

Required Parameters

--account-name --name -n

The name of the maps account.

--key

Whether the operation refers to the primary or secondary key.

accepted values: primary, secondary
--resource-group -g

Resource group name.