Is it possible to have Zero Downtime when publishing a Website to Azure App Services (deployment slot) + autoswap

1.2k views Asked by At

We've been using Azure App Services for a while and for us, it's pretty good.

When we manually do a SWAP (production <-> staging, deployment slots) we get a white screen of death with some WEBSITE INACCESSIBLE error in the middle of the deployment. After a bit of time, the site feels like it's warmed up and it's back online again.

Is there a way to avoid IIS (we're assuming IIS causes this) from doing this? Also, this needs to be automated ... so we we WebDeploy our new codem it pushes this up, warms up, then swaps.

NOTE: we also use STICKY SLOTS

We think the sticky slots are causing this 'reboot/bounce' to occur at the start of the swap..

So - is this possible?

1

There are 1 answers

3
Fabrizio Accatino On

Try to activate "Custom warm-up before swap". It could solve your issue.
https://learn.microsoft.com/en-us/azure/app-service-web/web-sites-staged-publishing#custom-warm-up-before-swap