I configured pipeline to do zero down time deployment for Azure Functions. For that purpose I have following steps:
- create slot
- deploy to slot
- start swap with preview
- complete swap
My understanding of this is process is that all restarts should happen only on preview slot (so only JobHost should be restarted) and this should have a place before final swap. However, I noticed on Application Insight that Hosting stopped
which result in on 503
code when I was hitting function. Is there away of avoiding this? I'm not sure if it matters but I use Premium plan.