Share via


az staticwebapp secrets

Manage deployment token for the static app.

Commands

Name Description Type Status
az staticwebapp secrets list

List the deployment token for the static app.

Core GA
az staticwebapp secrets reset-api-key

Reset the deployment token for the static app.

Core GA

az staticwebapp secrets list

List the deployment token for the static app.

az staticwebapp secrets list --name
                             [--resource-group]

Examples

List deployment token

az staticwebapp secrets list --name MyStaticAppName

Required Parameters

--name -n

Name of the static site.

Optional Parameters

--resource-group -g

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

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 staticwebapp secrets reset-api-key

Reset the deployment token for the static app.

az staticwebapp secrets reset-api-key --name
                                      [--no-wait]
                                      [--resource-group]

Examples

Reset deployment token

az staticwebapp secrets reset-api-key --name MyStaticAppName

Required Parameters

--name -n

Name of the static site.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.

Default value: False
--resource-group -g

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

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.