Azure VMSS Versioning and Naming

Updated 4 months ago by Michael Cretzman

Currently, this feature is in Beta and behind a Feature Flag. Contact Harness Support to enable the feature. Feature Flags can only be removed for Harness Professional and Essentials editions. Once the feature is released to a general audience, it is available for Trial and Community Editions.

In this topic, we cover how Harness names, tags, and versions the VMSS and instances you deploy.

In this topic:

Before You Begin

VMSS and Instance Names

The VMSS and its new instances created by Harness are named using the VMSS name you entered in the Azure Virtual Machine Scale Set Setup Workflow step, and given an incremental suffix.

For example, if the VMSS is named doc__basic, the first instance is named doc__basic__1, and the second doc__basic__2.

Each subsequent deployment using the same Harness Infrastructure Definition will increment the suffix on the name of the deployed VMSS, regardless of the name of VMSS.

For example, here are three VMSS deployments:

The first two doc__basic deployments are Basic Workflows and the doc__canary VMSS is a Canary Workflow. The doc__canary VMSS has the suffix __3 because it used the same Infrastructure Definition as the doc__basic Workflows.

Harness Revision Tags

Harness adds three Azure tags to each VMSS it deploys. These tags are used for revision tracking.

Do not delete these tags.

You can see the tags on the VMSS:

The tags are:

  • HARNESS_REVISION — The unique revision number of the VMSS, with an incremental suffix.
  • Name — The name of the VMSS, with an incremental suffix.
  • Created — The timestamp of the VMSS creation.

With each deployment of a VMSS using the same Harness Infrastructure Definition, the suffixes of HARNESS_REVISION and Name tags are incremented:

How did we do?