How to Configure Windows Server 2019 for Azure Hybrid Benefit

Azure Hybrid Benefit is a licensing benefit that allows organizations to use their existing on-premises Windows Server licenses with active Software Assurance (SA) to run Windows Server virtual machines on Azure at a reduced cost. For Windows Server 2019 environments, this benefit can dramatically reduce cloud compute costs by eliminating the need to pay for the Windows Server license component in Azure VM pricing. This guide walks through the full process of enabling, verifying, and managing Azure Hybrid Benefit for Windows Server 2019 deployments.

Prerequisites and Licensing Requirements

Before enabling Azure Hybrid Benefit, you must verify that your organization holds valid Windows Server licenses with active Software Assurance or Windows Server subscriptions through an Enterprise Agreement (EA), Enterprise Agreement Subscription (EAS), Server and Cloud Enrollment (SCE), or Microsoft Partner Network agreement. Standard Edition licenses cover up to two virtual machines. Datacenter Edition licenses provide unlimited virtualization rights on Azure.

You also need an Azure subscription with sufficient permissions. The account used must have at least the Virtual Machine Contributor role on the target resource group, or Contributor or Owner at the subscription level. Verify your license counts before proceeding — each Windows Server Datacenter or Standard core license covers a pair of physical cores, and Azure VMs are billed per vCPU.

Enabling Azure Hybrid Benefit During VM Creation

The simplest way to apply Azure Hybrid Benefit is at VM creation time. Using the Azure CLI, include the --license-type flag:

az vm create 
  --resource-group MyResourceGroup 
  --name MyWS2019VM 
  --image Win2019Datacenter 
  --admin-username azureadmin 
  --admin-password "SecureP@ssw0rd!" 
  --size Standard_D4s_v3 
  --license-type Windows_Server

The value Windows_Server activates Azure Hybrid Benefit. For Windows Server Standard Edition, this value is the same — the differentiation is tracked in your license agreement with Microsoft, not in the Azure tag itself.

Enabling Azure Hybrid Benefit on an Existing VM

To apply the benefit to a VM already running in Azure, use the update command:

az vm update 
  --resource-group MyResourceGroup 
  --name MyWS2019VM 
  --set licenseType=Windows_Server

This change takes effect immediately without requiring a VM restart. To verify the change was applied:

az vm show 
  --resource-group MyResourceGroup 
  --name MyWS2019VM 
  --query "licenseType" 
  --output tsv

The output should return Windows_Server confirming the benefit is active.

Applying Hybrid Benefit Using PowerShell

The Azure PowerShell module provides equivalent functionality. First connect to your Azure account:

Connect-AzAccount

$vm = Get-AzVM -ResourceGroupName "MyResourceGroup" -Name "MyWS2019VM"
$vm.LicenseType = "Windows_Server"
Update-AzVM -ResourceGroupName "MyResourceGroup" -VM $vm

To check all VMs in a subscription that have Hybrid Benefit enabled:

Get-AzVM | Where-Object { $_.LicenseType -eq "Windows_Server" } | 
  Select-Object Name, ResourceGroupName, LicenseType, Location

Enabling Hybrid Benefit on Azure Virtual Machine Scale Sets

For VMSS deployments running Windows Server 2019, enable Hybrid Benefit in the scale set profile:

az vmss create 
  --resource-group MyResourceGroup 
  --name MyScaleSet 
  --image Win2019Datacenter 
  --upgrade-policy-mode automatic 
  --admin-username azureadmin 
  --admin-password "SecureP@ssw0rd!" 
  --instance-count 3 
  --license-type Windows_Server

Update an existing scale set:

az vmss update 
  --resource-group MyResourceGroup 
  --name MyScaleSet 
  --set virtualMachineProfile.licenseType=Windows_Server

Using ARM Templates to Deploy with Hybrid Benefit

In Azure Resource Manager templates, the license type is specified in the VM resource properties section. Add the following to your template’s VM resource definition:

{
  "type": "Microsoft.Compute/virtualMachines",
  "apiVersion": "2021-07-01",
  "name": "[parameters('vmName')]",
  "location": "[parameters('location')]",
  "properties": {
    "licenseType": "Windows_Server",
    "hardwareProfile": {
      "vmSize": "[parameters('vmSize')]"
    },
    "storageProfile": {
      "imageReference": {
        "publisher": "MicrosoftWindowsServer",
        "offer": "WindowsServer",
        "sku": "2019-Datacenter",
        "version": "latest"
      }
    }
  }
}

Disabling Azure Hybrid Benefit

If a license expires or you wish to revert to pay-as-you-go pricing for Windows Server, disable the benefit:

az vm update 
  --resource-group MyResourceGroup 
  --name MyWS2019VM 
  --set licenseType=None

Using PowerShell:

$vm = Get-AzVM -ResourceGroupName "MyResourceGroup" -Name "MyWS2019VM"
$vm.LicenseType = "None"
Update-AzVM -ResourceGroupName "MyResourceGroup" -VM $vm

Auditing Hybrid Benefit Usage Across Your Organization

Azure Policy can enforce and audit Hybrid Benefit compliance. Use the built-in policy definition to audit VMs without the benefit applied:

az policy assignment create 
  --name "audit-hybrid-benefit" 
  --display-name "Audit VMs without Azure Hybrid Benefit" 
  --policy "2b84f7d3-f4c9-4b02-b6a4-61613c9f8a7c" 
  --scope "/subscriptions/"

You can also use Azure Cost Management to see savings. Navigate to Azure Portal > Cost Management + Billing > Cost Analysis, then filter by VM meter and compare against the base rate. Organizations with large Windows Server estates typically save 40–80% on Windows licensing costs in Azure.

Combining Hybrid Benefit with Reserved Instances

Azure Hybrid Benefit stacks with Reserved VM Instances (1-year or 3-year reservations), delivering maximum savings. To purchase a reservation for Windows Server 2019 VMs:

az reservations reservation-order purchase 
  --reserved-resource-type VirtualMachines 
  --sku Standard_D4s_v3 
  --location eastus 
  --term P1Y 
  --billing-scope "/subscriptions/" 
  --quantity 10 
  --display-name "WS2019-Prod-Reservations"

With both benefits combined, organizations can achieve savings of up to 80% compared to on-demand Windows Server VM pricing. Ensure your SA agreements are renewed before expiry to maintain uninterrupted Hybrid Benefit eligibility. Track expiry dates in the Microsoft Volume Licensing Service Center (VLSC) portal.