Restart during swap of deployment slots

789 Views Asked by At

I’m trying to reduce the downtime during a deployment to prod without stopping the functions by adding a staging slot. During a swap between production and staging slots, do the functions get automatically restart?

1

There are 1 best solutions below

1
On

According to this documentation of Swap Operations in Azure Functions deployment slots, restart occurs for every instance in swapping the slots.

The steps given in that document will ensure the target slot doesn't experience downtime during a swap.

In Many Places, the workaround given like adding the app setting WEBSITE_ADD_SITENAME_BINDINGS_IN_APPHOST_CONFIG=1 on all slots will minimize the restarts but cannot completely avoid.