Creating MS Azure VM I cannot specify existing windows license

ZanellaGianluca-1302 25 Reputation points
2023-08-18T01:53:53.7766667+00:00

Hi,

I am creating a new Azure VM in the Azure portal (“Create new virtual machine” from the portal options). In the Basic tab, I do not have the "Licensing" option to tell that I already have a Windows license. I tried several versions of Windows Server DataCenter without any success. Any suggestion?

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

Accepted answer
  1. TP 124.7K Reputation points Volunteer Moderator
    2023-08-21T19:27:08.28+00:00

    Hi,

    I don't have an explanation for why the option isn't showing up on Create a VM in portal. Could be part of their process for rolling out/testing features with a portion of users at a time. As a workaround you can set Licensing Type via the VM's Configuration blade after the VM has been created. You may set it using powershell as well.

    Below is screenshot of Licensing section of Configuration blade:

    azure hybrid benefit configuration blade portal

    Convert an existing VM using Azure Hybrid Benefit for Windows Server

    https://learn.microsoft.com/en-us/azure/virtual-machines/windows/hybrid-use-benefit-licensing#convert-an-existing-vm-using-azure-hybrid-benefit-for-windows-server

    Code sample from above article:

    $vm = Get-AzVM -ResourceGroup "rg-name" -Name "vm-name"
    $vm.LicenseType = "Windows_Server"
    Update-AzVM -ResourceGroupName rg-name -VM $vm
    
    

    Please click Accept Answer if the above was useful.

    Thanks.

    -TP

    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Dillon Silzer 57,826 Reputation points Volunteer Moderator
    2023-08-18T03:56:03.3266667+00:00

    Hello,

    When you choose to add an Azure VM (Windows Server) the licensing is typically already included within the pricing. (This includes Windows Server 2019 Datacenter).


    If this is helpful please accept answer.

    1 person found this answer helpful.

  2. kobulloc-MSFT 26,801 Reputation points Microsoft Employee Moderator
    2023-08-24T02:44:03.8633333+00:00

    Hello, @ZanellaGianluca-1302 !

    We received your feedback and would like to make sure that your question is addressed. It sounds like you may be having trouble applying the Azure Hybrid Benefit discount (which we can help with) or you need reassurance that your Windows Server license has been applied to your VM. Both Dillon and TP have brought up good points which I'll cover in more detail based on the feedback you provided.

    How do I specify that I have a license for a VM OS?

    To expand on Dillon's point, by creating a VM you have already either declared that you own a VM/cloud suitable license for the VM (bring your own license scenarios for Windows 10/11) or you are paying for the license as part of the VM cost as is the case for Windows Server, and discounts are available for migrating your on-premises license to the cloud. There are some nuanced scenarios including image migration to the cloud and utilizing License Mobility that are covered in the FAQ:

    Virtual Machines licensing FAQ

    To expand on TP's point, you should be able to apply a discount by using Azure Hybrid Benefit if you already have a qualifying license. It's important to note that this is different than the "I confirm I have an eligible Windows 10/11 license with multi-tenant hosting rights." attestation that is required for a Windows 10/11 license which states that you are providing a license. Outside of some edge cases mentioned in the FAQ above, deploying a marketplace image includes the license cost in the VM pricing. If you are unable to get the Azure Hybrid Benefit discount on an eligible VM, please let us know and we'll get someone to look at your subscription to determine what is happening.

    Hopefully this addresses your issue. If you have additional questions, please let us know in the comments. If this has answered your question, please accept an answer.

    Thank you for helping to improve Microsoft Q&A!

    User's image

    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.