Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
The Basic, Standard, and Enterprise plans will be deprecated starting from mid-March, 2025, with a 3 year retirement period. We recommend transitioning to Azure Container Apps. For more information, see the Azure Spring Apps retirement announcement.
The Standard consumption and dedicated plan will be deprecated starting September 30, 2024, with a complete shutdown after six months. We recommend transitioning to Azure Container Apps. For more information, see Migrate Azure Spring Apps Standard consumption and dedicated plan to Azure Container Apps.
This article applies to: ✅ Java ✅ C#
This article applies to: ✅ Basic/Standard ✅ Enterprise
This article describes the zero downtime deployment support in Azure Spring Apps.
Achieving zero downtime deployments is a fundamental goal for mission-critical applications. Your application needs to be available even when new releases are rolled out during business hours. With zero downtime deployment support in Azure Spring Apps, you can complete the deployment process from start to finish without any workload interruptions.
You can achieve zero downtime with blue-green deployment strategies in Azure Spring Apps. A blue-green deployment eliminates downtime by running two deployment versions, with only one of the deployments serving production traffic at any time. A blue-green deployment provides zero downtime by allowing you to switch to the other deployment version if something disrupts the live deployment.
When you perform a blue-green switch, Azure Spring Apps performs the following underlying operations:
UP
for instances in the production
deployment.OUT_OF_SERVICE
for instances in the staging
deployment.production
deployment.Note
For a blue-green deployment, you can achieve zero down time even for single-replica deployment.
For a deployment with a replica number of two or higher, you can achieve zero downtime with a rolling update strategy from Azure Spring Apps. When you deploy a new version to an existing deployment, or restart a deployment, Azure Spring Apps uses underlying Kubernetes rolling updates to perform the update.
Rolling updates enable deployment updates to take place with zero downtime by incrementally updating instances with new instances. Your application continues to serve production traffic when performing a rolling update if the deployment replica number is two or higher. For more information, see Performing a Rolling Update.
Warning
For single-replica deployment, you might see downtime during the deployment update. To ensure application availability, we recommend that you deploy with at least two replicas for your production workload.
Note
To gracefully start or shutdown your application, you must configure health probes for your deployments. For more information, see How to configure health probes and graceful termination periods for apps hosted in Azure Spring Apps. Kubernetes checks these probes during the rolling update process, and the Nginx ingress controller routes traffic to instances with a succeeded readiness probe.
When you scale in your application instances, Azure Spring Apps uses underlying Kubernetes Container Lifecycle Hooks to gracefully shut down the pods.
In the hook, Azure Spring Apps performs the following operations for a shutting down an application container:
OUT_OF_SERVICE
.Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowTraining
Module
Deploy a Spring Boot app to Azure Container Apps - Training
In this module, you learn how to deploy a Spring Boot app to Azure Container Apps. You deploy a Spring Boot application to Azure Container Apps and maintain it using the built-in Java stack.
Certification
Microsoft Certified: Azure for SAP Workloads Specialty - Certifications
Demonstrate planning, migration, and operation of an SAP solution on Microsoft Azure while you leverage Azure resources.
Documentation
Blue-Green Deployment Strategies in Azure Spring Apps
This topic explains two approaches to blue-green deployments in Azure Spring Apps.