

$vms | Where-Object | Select-Object ResourceGroupName, Name, LicenseType Run the following cmdlet to see a list of all session host VMs that have the Windows license applied in your Azure subscription: $vms = Get-AzVM

VMs without the applied Windows license will show you something like this: Type : Microsoft.Compute/virtualMachines Verify your session host VM is utilizing the licensing benefitĪfter deploying your VM, run this cmdlet to verify the license type: Get-AzVM -ResourceGroupName -Name Ī session host VM with the applied Windows license will show you something like this: Type : Microsoft.Compute/virtualMachines Run the following PowerShell cmdlet to apply the Windows license: $vm = Get-AzVM -ResourceGroup -Name Make sure you have installed and configured the latest Azure PowerShell.
DOES MY MICROSOFT WINDOWS LICENSE EXPIRE HOW TO
To do this, first follow the instructions in Create a host pool with PowerShell to create a host pool and associated VMs, then return to this article to learn how to apply the license.Īpply a Windows license to a session host VM You can apply a license to an existing session host virtual machine.Virtual machines created this way automatically have the license applied. You can create a host pool and its session host virtual machines using the GitHub Azure Resource Manager template.You can create a host pool and its session host virtual machines using the Azure Marketplace offering.There are a few ways to use the Azure Virtual Desktop license: This license does not apply to virtual machines that are running as file share servers, domain controllers, and so on.

Ways to use your Azure Virtual Desktop licenseĪzure Virtual Desktop licensing allows you to apply a license to any Windows or Windows Server virtual machine that is registered as a session host in a host pool and receives user connections. For more information, see Azure Virtual Desktop pricing. Customers who are properly licensed to run Azure Virtual Desktop workloads are eligible to apply a Windows license to their session host virtual machines and run them without paying for another license.
