az spatial-anchors-account key

Note

This reference is part of the mixed-reality extension for Azure CLI and requires version 2.15.0 or higher. The extension will automatically install the first time you run an az spatial-anchors-account key command. Learn more about extensions.

Manage developer keys of a spatial anchors account.

Commands

az spatial-anchors-account key renew

Regenerate specified key of a spatial anchors account.

az spatial-anchors-account key show

List both of the 2 keys of a spatial anchors account.

az spatial-anchors-account key renew

Regenerate specified key of a spatial anchors account.

az spatial-anchors-account key renew --name
                                     --resource-group
                                     [--key {primary, secondary}]

Examples

Regenerate spatial anchors account keys

az spatial-anchors-account key renew -n "MyAccount" -k primary --resource-group "MyResourceGroup"

Required Parameters

--name -n

Name of an mixed reality account.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--key -k

Key to be regenerated.

accepted values: primary, secondary
default value: primary

az spatial-anchors-account key show

List both of the 2 keys of a spatial anchors account.

az spatial-anchors-account key show --name
                                    --resource-group

Examples

List spatial anchor account key

az spatial-anchors-account key show -n "MyAccount" --resource-group "MyResourceGroup"

Required Parameters

--name -n

Name of an mixed reality account.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.