> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flexagon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# executeWebAppSlotSwap

> It first connects to the intended Azure Tenant Subscription with provided credentials. Next, it swaps the slot in Azure Web App based on configured va

It first connects to the intended Azure Tenant Subscription with provided credentials. Next, it swaps the slot in Azure Web App based on configured value.

This operation should return the status and response details of execution details from Azure.

# Target Properties

<table><colgroup><col /><col /><col /><col /></colgroup><tbody><tr><th>**Property Name**</th><th>**Property Code**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>Web App Slot Name</td><td>`FDAZ_WEB_SLOT_NAME`</td><td>Yes</td><td>Slot for Web App deployment</td></tr><tr><td>Target Slot to Swap for Web App</td><td>`FDAZ_WEB_TARGET_SLOT_NAME`</td><td>No</td><td>Slot to be swapped with for Web App</td></tr><tr><td>Slot Swap Action for Web App</td><td>`FDAZ_WEB_SLOT_SWAP_ACTION`</td><td>No</td><td>Slot swap action type for Web App</td></tr><tr><td>Preserve Slot VNet for Web App</td><td>`FDAZ_WEB_PRESERVE_VNET`</td><td>No</td><td>To preserve the Slot VNet for Web App</td></tr><tr><td>Azure Cloud Account</td><td>`FDAZ_ACCOUNT_CODE`</td><td>Yes</td><td>Azure cloud account name</td></tr><tr><td>Absolute path of Azure CLI</td><td>`FDAZ_CLI_PATH`</td><td>No</td><td>e.g. /u01/azure/bin/az or c:\azure\cli\wbin\az</td></tr></tbody></table>

# Project Properties

<table><colgroup><col /><col /><col /><col /></colgroup><tbody><tr><th>**Property Name**</th><th>**Property Code**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>Web App name</td><td>`FDAZ_WEB_APP_NAME`</td><td>Yes</td><td>Azure Web App name</td></tr><tr><td>Resource Group Name</td><td>`FDAZ_RESOURCE_GROUP`</td><td>Yes</td><td>Azure Resource Group name</td></tr></tbody></table>

# Outputs

<table><colgroup><col /><col /><col /></colgroup><tbody><tr><th>**Output Name**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>`FDAZ_OUT_SLOT_SWAP_STATUS`</td><td>Yes</td><td>Status of the deployment</td></tr><tr><td>`FDAZ_OUT_SLOT_SWAP_RESP`</td><td>Yes</td><td>Response of the deployment</td></tr><tr><td>`FDAZ_OUT_SLOT_SWAP_ERR`</td><td>No</td><td>Error (in case any) from the deployment</td></tr></tbody></table>

# Artifacts

This operation doesn’t consume any artifacts.  

# Endpoint Selection

This operation will select all available endpoints associated to the target.

# Endpoint Execution

This operation will execute on any one of the selected endpoints and will be random in the determination of which one.
