az functionapp deployment slot

Manage function app deployment slots.

Commands

az functionapp deployment slot auto-swap

Configure deployment slot auto swap.

az functionapp deployment slot create

Create a deployment slot.

az functionapp deployment slot delete

Delete a deployment slot.

az functionapp deployment slot list

List all deployment slots.

az functionapp deployment slot swap

Change deployment slots for a function app.

az functionapp deployment slot auto-swap

Configure deployment slot auto swap.

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

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

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

Create a deployment slot.

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

Examples

Create a deployment slot. (autogenerated)

az functionapp deployment slot create --name MyFunctionapp --resource-group MyResourceGroup --slot staging

Required Parameters

--name -n

Name of the function app.

--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 function 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 functionapp deployment slot delete

Delete a deployment slot.

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

Examples

Delete a deployment slot. (autogenerated)

az functionapp deployment slot delete --name MyFunctionapp --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 function app.

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

List all deployment slots.

az functionapp deployment slot list [--ids]
                                    [--name]
                                    [--query-examples]
                                    [--resource-group]
                                    [--subscription]

Examples

List all deployment slots. (autogenerated)

az functionapp deployment slot list --name MyFunctionapp --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 function app.

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

Change deployment slots for a function app.

az functionapp 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 function app.

az functionapp 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 function app.

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