az spatial-anchors-account key

Note

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

This command group is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Manage developer keys of a spatial anchors account.

Commands

Name Description Type Status
az spatial-anchors-account key renew

Regenerate specified Key of a Spatial Anchors Account.

Extension Preview
az spatial-anchors-account key show

List Both of the 2 Keys of a Spatial Anchors Account.

Extension Preview

az spatial-anchors-account key renew

Preview

Command group 'az spatial-anchors-account key' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Regenerate specified Key of a Spatial Anchors Account.

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

Examples

Regenerate spatial anchors account keys

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

Optional Parameters

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--key -k

Key to be regenerated.

accepted values: primary, secondary
default value: primary
--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>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az spatial-anchors-account key show

Preview

Command group 'az spatial-anchors-account key' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

List Both of the 2 Keys of a Spatial Anchors Account.

az spatial-anchors-account key show [--ids]
                                    [--name]
                                    [--resource-group]
                                    [--subscription]

Examples

List spatial anchor account key

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

Optional Parameters

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--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>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.