Share via


az staticwebapp environment

Manage environment of the static app.

Commands

Name Description Type Status
az staticwebapp environment delete

Delete the static app production environment or the specified environment.

Core GA
az staticwebapp environment functions

Show information about functions.

Core GA
az staticwebapp environment list

List all environment of the static app including production.

Core GA
az staticwebapp environment show

Show information about the production environment or the specified environment.

Core GA

az staticwebapp environment delete

Delete the static app production environment or the specified environment.

az staticwebapp environment delete --name
                                   [--environment-name]
                                   [--resource-group]
                                   [--yes]

Examples

Delete a static app environment.

az staticwebapp environment delete -n MyStaticAppName

Required Parameters

--name -n

Name of the static site.

Optional Parameters

--environment-name

Name of the environment of static site.

Default value: default
--resource-group -g

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

--yes -y

Do not prompt for confirmation.

Default value: False
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 environment functions

Show information about functions.

az staticwebapp environment functions --name
                                      [--environment-name]
                                      [--resource-group]

Examples

Show static app functions.

az staticwebapp environment functions -n MyStaticAppName

Required Parameters

--name -n

Name of the static site.

Optional Parameters

--environment-name

Name of the environment of static site.

Default value: default
--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 environment list

List all environment of the static app including production.

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

Examples

List static app environment.

az staticwebapp environment list -n 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 environment show

Show information about the production environment or the specified environment.

az staticwebapp environment show --name
                                 [--environment-name]
                                 [--resource-group]

Examples

Show a static app environment.

az staticwebapp environment show -n MyStaticAppName

Required Parameters

--name -n

Name of the static site.

Optional Parameters

--environment-name

Name of the environment of static site.

Default value: default
--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.