How to successfully migrate Azure Function Apps to use deployment slots

Chris Buley 51 Reputation points

Hi everyone,

Our Azure Functions Apps currently don't use deployment slots and we're looking at migrating our function apps to use them.

If we create deployment slots and then deploy updated code to the slots, what will happen to the original function app? Will it still function with all the relevant settings?

We have applications that link to the original function app name, and since the deployment slot will have a different hostname, we may have issues with production traffic not being routed to the relevant deployment slot etc.



Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,512 questions
0 comments No comments
{count} votes

Accepted answer
  1. akinbade abiola 6,020 Reputation points

    Hello Chris,

    Thanks for your question.

    Deployment slots, are isolated environments so your original code is fine.

    Yes, deployment slots get unique host names.

    See below Settings that are swapped and aren't ( from the official doc):

    You'd need to ensure DNS and routing mechanisms points to the correct hostname after a swap.

    If above answer was helpful, please remember to "Accept Answer"

0 additional answers

Sort by: Most helpful