Versioning control in Powershell build Module

How to setup versioning in the PowerShell build release pipeline?

This blog is part of a series of blog about “Creating PowerShell modules with Azure Devops.

Not only do you need to release modules into the wild you also need to track the versioning of those modules you are releasing. The versioning of releases is split up into three different numbers:

  • [int]$Major
  • [int]$Minor
  • [int]$Build

To start with the latest two, these are both automatically generated by the script. The Build versioning is always updated whenever the build pipeline is runnend. The Minor version will be updated whenever there is a public script added to the module directory.

Major number

The major number is the one you specified yourself. This needs to be done with a variable in the build pipeline. It will validate the number with the released number.

module.MajorVersionNumber

Author: Eelco Labordus

I am an experienced Azure Cloud Architect with a proven track record in the information technology and services industry. With a deep passion for teaching, I thrive in collaborative team environments where I can contribute to the growth and success of my colleagues. My expertise lies in Azure Cloud, Data Center platforms, Automation, PowerShell, Windows Azure Pack, Azure(stack), System Center, VMware Infrastructure, Scrum, Management, and Process Management. I am a strong information technology professional, holding a degree from Hogeschool Novi.

Leave a Reply

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