Azure Functions Deployment Slots

Overview Troubleshooting Concepts

What are Deployment Slots?

Deployment slots are a way to manage multiple versions of your Azure Functions app simultaneously. They allow you to safely test new versions of your functions before deploying them to production. This minimizes the risk of impacting your live application.

Types of Deployment Slots

Azure Functions supports the following types of deployment slots:

How to Deploy to a Slot

You can deploy your function app to a specific slot using the Azure portal, Azure CLI, or PowerShell.

Azure CLI Example


  az functionapp deployment slot create --resource-group  --name staging --role-name staging --consumption-plan-location  --name production
        

PowerShell Example


  New-AzFunctionAppDeploymentSlot -ResourceGroupName  -Name staging -FunctionApp 
        

Key Considerations