nerdexam
Microsoft

AZ-140 · Question #199

You have an Azure Virtual Desktop deployment that contains a host pool named Pool1. Pool1 contains a session host named Host1 that is Azure AD-joined. You need to verify whether a Windows license is…

The correct answer is D. From Azure Cloud Shell, run the Get-AzVm cmdlet. To verify whether a Windows license is assigned to an Azure VM, you inspect the VM's 'LicenseType' property using Azure PowerShell. The command 'Get-AzVM -ResourceGroupName <rg> -Name Host1' returns the VM object, and the LicenseType field shows values such as 'Windows_Client'…

Submitted by packet_pusher· Apr 18, 2026Monitor and maintain an Azure Virtual Desktop infrastructure

Question

You have an Azure Virtual Desktop deployment that contains a host pool named Pool1. Pool1 contains a session host named Host1 that is Azure AD-joined. You need to verify whether a Windows license is assigned to Host1. What should you do?

Options

  • AFrom the Azure Active Directory admin center, view the product licenses.
  • BFrom VM1, run the Get-WindowsDeveloperLicense cmdlet.
  • CFrom the Azure portal, view the properties of Host1.
  • DFrom Azure Cloud Shell, run the Get-AzVm cmdlet.

How the community answered

(45 responses)
  • A
    4% (2)
  • B
    9% (4)
  • C
    2% (1)
  • D
    84% (38)

Explanation

To verify whether a Windows license is assigned to an Azure VM, you inspect the VM's 'LicenseType' property using Azure PowerShell. The command 'Get-AzVM -ResourceGroupName <rg> -Name Host1' returns the VM object, and the LicenseType field shows values such as 'Windows_Client' or 'Windows_Server' if Azure Hybrid Benefit / AVD licensing is applied, or is empty/null if no license assignment is configured. This is the authoritative way to check license assignment at the VM resource level. Option A (AAD admin center product licenses) shows user-assigned Microsoft 365 licenses, not Azure VM Windows licenses. Option B ('Get-WindowsDeveloperLicense') is for Windows developer mode licenses, unrelated to VM licensing. Option C (viewing properties in the Azure portal) is possible but the 'Get-AzVm' cmdlet exposes the LicenseType property more directly and programmatically.

Topics

#Azure Virtual Desktop#Azure VM licensing#Azure Hybrid Benefit#Azure PowerShell

Community Discussion

No community discussion yet for this question.

Full AZ-140 Practice