How to keep Azure Function available during code updates?

Viewed 121

I've found that my Azure Function is unavailable for approx. 3-5 mins when publishing changes. Any triggers are not recognized nor captured in App Insights.

This is not a big deal at the moment, but if this Function ever requires increased uptime, how can I ensure it will be available during code changes?

1 Answers

As mentioned in the comment, you just need to use the Azure Functions deployment slots, when you need to publish the changes, swap your function to the staging slot, after publishing, swap it back to the production slot.

Related