az webapp deployment slot

Manage web app deployment slots.

Commands

az webapp deployment slot auto-swap

Configure deployment slot auto swap.

az webapp deployment slot create

Create a deployment slot.

az webapp deployment slot delete

Delete a deployment slot.

az webapp deployment slot list

List all deployment slots.

az webapp deployment slot swap

Change deployment slots for a web app.

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.

az webapp deployment slot create

Create a deployment slot.

az webapp deployment slot create --name
                                 --resource-group
                                 --slot
                                 [--configuration-source]
                                 [--subscription]

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.

--subscription

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

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.

az webapp deployment slot list

List all deployment slots.

az webapp deployment slot list [--ids]
                               [--name]
                               [--query-examples]
                               [--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.

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

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

az webapp deployment slot swap

Change deployment slots for a web app.

az webapp deployment slot swap --slot
                               [--action {preview, reset, swap}]
                               [--ids]
                               [--name]
                               [--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.

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