App Service Deployment with Zero Downtime

John Wong Yek Hon 140 Reputation points
2024-12-12T08:09:10.11+00:00

I have a application deployed in Azure App Service. The problem that I am facing now is, how to perform deployment with zero downtime?

I am going to enable the zone redundancy feature onto my App Service, is this feature support the zero downtime by nature? since my application will have at least 3 instances running. Will azure automatically bring down the 1 instance and deploy the latest app, while ensure the other 2 instances are running?

If this zone redundancy doesn't support the zero downtime deployment, then please guide me to the correct direction.

Thanks.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,638 questions
{count} votes

Accepted answer
  1. ajkuma 27,941 Reputation points Microsoft Employee
    2024-12-12T10:16:03.5266667+00:00

    John Wong Yek Hon, To perform a deployment with zero downtime, you may leverage the deployment slots feature in Azure App Service. Deployment slots allow you to deploy a new version of your application to a separate slot, test it, and then swap it with the production slot without any downtime.

    Regarding your question about zone redundancy, while zone redundancy can help improve the resiliency and reliability of your application, it does not guarantee zero downtime during deployments.

    You may configure auto swap for your deployment slots. This feature automatically swaps the staging slot with the production slot after a successful deployment, ensuring minimal manual intervention and reducing the risk of downtime.

    You may apply the approach on accomplishing zero downtime deployments facilitated by a combination of Health checks and deployment slots. Ref: You may checkout this article authored by one of my colleague: Azure App Service, Health checks and zero downtime deployments

    Just to highlight:

    • Deployment slots are available in Standard, Premium, or Isolated App Service Plan (ASP) tier - Each ASP tier supports a different number of deployment slots. There's no extra charge for using deployment slots.
    • Basic tier or higher can scale out to two or more instances and get the full benefit of Health check (feature).

    If the answer helped (pointed, you in the right direction) > please click Accept Answer to benefit the community find answers quickly to similar question.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.