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

# executeFunctionAppSlotSwap

> Execute Slot swap in Function App Service It first connects to the intended Azure Tenant Subscription with provided credentials. Next, it swaps the sl

Execute Slot swap in Function App Service

It first connects to the intended Azure Tenant Subscription with provided credentials. Next, it swaps the slot in Azure Function 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>Function App Slot Name</td><td>`FDAZ_SLOT_NAME`</td><td>Yes</td><td>Slot for Function App deployment</td></tr><tr><td>Target Slot to Swap for Function App</td><td>`FDAZ_TARGET_SLOT_NAME`</td><td>Yes</td><td>Slot to be swapped with for Function App</td></tr><tr><td>Preserve Slot VNet for Function App</td><td>`FDAZ_PRESERVE_VNET`</td><td>No</td><td>To preserve the Slot VNet for Function App</td></tr><tr><td>Slot Swap Action for Function App</td><td>`FDAZ_SLOT_SWAP_ACTION`</td><td>No</td><td>Slot Swap action type for Function 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>Function App Name</td><td>`FDAZ_FUNCTION_APP_NAME`</td><td>Yes</td><td>Azure Function 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>Slot Swap action Status</td></tr><tr><td>`FDAZ_OUT_SLOT_SWAP_RESP`</td><td>Yes</td><td>Slot Swap action Response Message</td></tr><tr><td>`FDAZ_OUT_SLOT_SWAP_ERR`</td><td>No</td><td>Slot Swap action Error Message</td></tr></tbody></table>

# Artifacts

This operation doesn’t consume any artifacts.  

# Endpoint Selection

This operation will select all available endpoints associated with 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.
