Azure image version doesn't match semver

Yaron Kaikov 1 Reputation point
2022-12-18T08:33:16.04+00:00

Hi

I am defining an Azure compute gallery in order to share our custom image with the community. When trying to define the image version, I see it doesn't match semver syntax.
(https://semver.org/)

Any idea how can i overcome this?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,068 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ravi Kanth Koppala 3,391 Reputation points Microsoft Employee Moderator
    2022-12-18T13:24:02.76+00:00

    @Yaron Kaikov ,
    The version number for an Azure compute gallery image follows a specific format that includes four integer values separated by periods. The format is: {Major}.{Minor}.{Build}.{Revision}.

    • The Major value is increased when you make incompatible API changes.
    • The Minor value is incremented when you add functionality in a backwards-compatible manner.
    • The Build value is incremented when you make backwards-compatible bug fixes.
    • The Revision value is incremented when you make changes to the image that do not affect the API or functionality, such as updating documentation or modifying the build process.

    For example, a valid version number for an Azure compute gallery image might be 1.0.0.0. This indicates that the image is the first version, with no minor or build updates and no revision
    updates.

    It's essential to follow this versioning scheme when creating an Azure compute gallery image, as it will allow users of the image to understand the level of compatibility and the nature of any changes made.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.