Will VM UUID change after the VM falls into inactive / shutdown mode for a few days and then is restarted

Pavan 1 Reputation point
2022-12-16T10:23:33.037+00:00

We have one situation, generally we are using the serial number of a Windows machine to generate a server license. This is how it was written in our application a long time ago. Currently, when these applications are deployed to a VM, they may be hosted on Azure or AWS. They request the server license based on the serial number for the first time and receive the server license based on the serial number.

If that VM falls into inactive / shutdown mode for a few days and then is restarted, the serial number of that VM will be modified. Due to the change in serial number, our application's license will become invalid in this situation.

Our ask is that, instead of a serial number, do we have a unique id for each VM in the cloud that remains the same through its life?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,582 questions
Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,725 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Alistair Ross 7,391 Reputation points Microsoft Employee
    2022-12-16T10:53:41.097+00:00

    Hello @Pavan

    The Azure VM unique ID is what you are looking for: https://azure.microsoft.com/en-us/blog/accessing-and-using-azure-vm-unique-id/

    I hope this helps provide you with the information you need. If it does, please make sure to mark the question as answered so it helps other people in future.

    Kind regards

    Alistair

    0 comments No comments

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.