Blue-Green Deployment Using Azure DevOps

In every project there comes a time when you need to deploy the latest codebase to the production environment. This may lead to quite a few issues as usually the website needs to be taken down for a while to perform the deployment and sanity tests. Even if everything looks good on a staging environment, all sorts of problems may occur when going live. A proposed solution to this problem is Blue-Green deployment. This strategy is based on maintaining two identical environments, one called Blue and one called Green. At any point in time, one of them is used as a production and the other – as a staging environment.

The advantages of such an approach are plenty, most important of them being no downtime during deployment and simple rollback procedure. Another great reason to use Blue-Green deployment is the possibility to test the soon-to-be production environment before making the switch and warm it up.

Below are the following steps for Blue-Green Deployment:

  1. Create staging slot for production Azure app service
Azure_Ashish
  • Deploy all files from production to staging server and verify staging server up and running same like production
Azure_Ashish
  • Once staging server is ready add create new release for Staging
Azure_Ashish
  • Update staging server detail and Save changes
Azure_Ashish
  • Go to Azure DevOps Pipeline > Releases and select UAT Release Staging
Azure_Ashish
  • Once Staging release is ready click on release and deploy files
Azure_Ashish
  • Once staging server up and running, swap staging deployment slot to production.
Azure_Ashish
  • Now all traffic will be moved on Staging server without any downtime.

I hope this article will help you to configure the DevOps!

Please let me know if you have any specific issue.

Connect me on Twitter – https://twitter.com/sitecore_ashish or Linkedin – https://www.linkedin.com/in/ashishbansal9/

Happy Sitecoring and Cloud

Leave a Reply

Your email address will not be published. Required fields are marked *