az webapp deployment slot

Manage web app deployment slots.

Commands

Name Description Type Status
az webapp deployment slot auto-swap

Configure deployment slot auto swap.

Core GA
az webapp deployment slot create

Create a deployment slot.

Core GA
az webapp deployment slot delete

Delete a deployment slot.

Core GA
az webapp deployment slot list

List all deployment slots.

Core GA
az webapp deployment slot swap

Swap deployment slots for a web app.

Core GA

az webapp deployment slot auto-swap

Configure deployment slot auto swap.

az webapp deployment slot auto-swap --slot
                                    [--auto-swap-slot]
                                    [--disable]
                                    [--ids]
                                    [--name]
                                    [--resource-group]
                                    [--subscription]

Examples

Configure deployment slot auto swap. (autogenerated)

az webapp deployment slot auto-swap --name MyWebapp --resource-group MyResourceGroup --slot staging

Required Parameters

--slot -s

The name of the slot.

Optional Parameters

--auto-swap-slot

Target slot to auto swap.

Default value: production
--disable

Disable auto swap.

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

--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 webapp deployment slot create

Create a deployment slot.

az webapp deployment slot create --name
                                 --resource-group
                                 --slot
                                 [--configuration-source]
                                 [--container-image-name]
                                 [--container-registry-password]
                                 [--container-registry-url]
                                 [--container-registry-user]
                                 [--deployment-container-image-name]
                                 [--docker-registry-server-password]
                                 [--docker-registry-server-user]

Examples

Create a deployment slot. (autogenerated)

az webapp deployment slot create --name MyWebapp --resource-group MyResourceGroup --slot staging

Required Parameters

--name -n

Name of the webapp.

--resource-group -g

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

--slot -s

The name of the slot.

Optional Parameters

--configuration-source

Source slot to clone configurations from. Use web app's name to refer to the production slot.

--container-image-name -c

The container custom image name and optionally the tag name (e.g., /:).

--container-registry-password -w

The container registry server password.

--container-registry-url -r

The container registry server url.

--container-registry-user -u

The container registry server username.

--deployment-container-image-name -i
Deprecated

Option '--deployment-container-image-name' has been deprecated and will be removed in a future release.

Container image name, e.g. publisher/image-name:tag.

--docker-registry-server-password
Deprecated

Option '--docker-registry-server-password' has been deprecated and will be removed in a future release. Use '--container-registry-password' instead.

The container registry server password.

--docker-registry-server-user
Deprecated

Option '--docker-registry-server-user' has been deprecated and will be removed in a future release. Use '--container-registry-user' instead.

The container registry server username.

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 webapp deployment slot delete

Delete a deployment slot.

az webapp deployment slot delete --slot
                                 [--ids]
                                 [--name]
                                 [--resource-group]
                                 [--subscription]

Examples

Delete a deployment slot. (autogenerated)

az webapp deployment slot delete --name MyWebapp --resource-group MyResourceGroup --slot staging

Required Parameters

--slot -s

The name of the slot.

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

--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 webapp deployment slot list

List all deployment slots.

az webapp deployment slot list [--ids]
                               [--name]
                               [--resource-group]
                               [--subscription]

Examples

List all deployment slots. (autogenerated)

az webapp deployment slot list --name MyWebapp --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 the webapp.

--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 webapp deployment slot swap

Swap deployment slots for a web app.

az webapp deployment slot swap --slot
                               [--action {preview, reset, swap}]
                               [--ids]
                               [--name]
                               [--preserve-vnet {false, true}]
                               [--resource-group]
                               [--subscription]
                               [--target-slot]

Examples

Swap a staging slot into production for the MyUniqueApp web app.

az webapp deployment slot swap  -g MyResourceGroup -n MyUniqueApp --slot staging \
    --target-slot production

Required Parameters

--slot -s

The name of the slot.

Optional Parameters

--action

Swap types. use 'preview' to apply target slot's settings on the source slot first; use 'swap' to complete it; use 'reset' to reset the swap.

Accepted values: preview, reset, swap
Default value: swap
--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 the webapp.

--preserve-vnet

Preserve Virtual Network to the slot during swap, default to 'true'.

Accepted values: false, true
--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.

--target-slot

Target slot to swap, default to 'production'.

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.