Create an Azure VMSS Blue/Green Deployment
Currently, this feature is behind the Feature Flag AZURE_VMSS
. Contact Harness Support to enable the feature. A Blue/Green virtual machine scale set (VMSS) deployment uses a load balancer with two backend pools: one production pool and one stage pool. You identify the pools during Workflow setup.
When you deploy the Blue/Green Workflow, it sets up a new VMSS using the image you supplied in Add Your Azure VM Image for Deployment and the base VMSS template you selected in Define Your Azure VMSS Target Infrastructure.
At first, the Workflow uses the stage pool. Once the deployment using the stage pool is successful, the Workflow detaches the stage pool and attaches (swaps) the production pool to the new VMSS.
For other deployment strategies, see Create an Azure VMSS Basic Deployment, and Create an Azure VMSS Canary Deployment.
Before You Begin
- Azure Virtual Machine Scale Set Deployments Overview
- Define Your Azure VMSS Target Infrastructure
- Add Your Azure VM Image for Deployment
- Connect to Azure for VMSS Deployments
- Harness Delegate Overview
- Harness Key Concepts
Visual Summary
Here is the Azure load balancer with two pools set up:
Here is a successful Blue/Green VMSS deployment, showing the swap from the stage to prod pool:
Here is the final, deployed VMSS with its prod pool:
Supported Platforms and Technologies
See Supported Platforms and Technologies.
Review: Load Balancer Requirements
A Harness Blue/Green VMSS deployment requires an Azure load balancer with two backend pools.
The load balancer distributes inbound flows that arrive at the load balancer's front end to the stage and production backend pool instances.
The backend pool instances are instances in the virtual machine scale set Harness creates in the deployment.
See What is Azure Load Balancer? from Azure.
Step 1: Create the Blue/Green Workflow
In your Harness Application, click Workflows, and then click Add Workflow.
Enter the new Workflow's settings.
Name
Enter a name for the Workflow. You will use this name to locate the Workflow in Deployments and to add it to Pipelines.
Workflow Type
Select Blue/Green. See Deployment Concepts and Strategies.
For other deployment strategies, see Create an Azure VMSS Basic Deployment, and Create an Azure VMSS Canary Deployment.