Where i can see how many licenses avaliable to use in Azure Hybrid benefit?

Fábio Santos 65 Reputation points
2023-10-11T15:27:41.5533333+00:00

I want use Hybrid benefit, where i can see how many licenses i have available, and how many are in use?

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

1 answer

Sort by: Most helpful
  1. kobulloc-MSFT 26,131 Reputation points Microsoft Employee
    2023-10-11T17:38:24.63+00:00

    Hello, @Fábio Santos !

    How do I see how many VMs have been used for Azure Hybrid Benefit?

    The number of licenses available are the number of core licenses that you own that are covered with active Software Assurance or Windows Server Subscriptions. You can use the Azure Hybrid Benefit Savings Calculator and check out the Azure Hybrid Benefit for Windows Server Documentation for more detail on how this works.

    To check how many are in use, the recommended approach is to use either Azure CLI or PowerShell to count all virtual machines and virtual machine scale sets deployed with Azure Hybrid Benefit for Windows Server:

    Check VMs in use with Azure CLI:

    az vm list --query "[?licenseType=='Windows_Server']" -o table

    Check VMs in use with PowerShell:

    Get-AzVM | ?{$_.LicenseType -like "Windows_Server"} | select ResourceGroupName, Name, LicenseType

    You can also check your Microsoft Azure bill to determine how many VMs with Azure Hybrid Benefit for Windows Server you're running. You can find information about the number of instances with the benefit under Additional Info:

    "{"ImageType":"WindowsServerBYOL","ServiceType":"Standard_A1","VMName":"","UsageType":"ComputeHR"}"

    For additional information, check out the documentation:


    I hope this has been helpful! Your feedback is important so please take a moment to accept answers.

    If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!

    User's image