Verify a Windows license on an Azure Virtual Desktop session host

AZ-140 By islever Editorial Last updated

Short answer

D In Azure Cloud Shell, run Get-AzVm against Host1 and inspect the returned LicenseType property for Windows_Client.

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?
  1. From the Azure Active Directory admin center, view the product licenses.
  2. From VM1, run the Get-WindowsDeveloperLicense cmdlet.
  3. From the Azure portal, view the properties of Host1.
  4. From Azure Cloud Shell, run the Get-AzVm cmdlet. Correct Answer

Key Takeaways

The exam tests whether you can distinguish a session host VM's OS license assignment from user product licenses and from a portal blade that does not surface LicenseType.

The Windows license on an Azure Virtual Desktop session host is verified through the VM's ARM LicenseType property, exposed by Get-AzVm, not through the Azure portal's VM Properties blade.

Common mistake: Choosing C assumes the VM Properties blade in the Azure portal displays the Windows license; the authoritative value is the LicenseType returned by Get-AzVm, which is Windows_Client when assigned.

Expert Analysis

Where the license actually lives For an AVD session host, the Windows license assigned to the VM is represented in Azure Resource Manager as the virtual machine's licenseType property. The check is not about the user's Microsoft 365/Windows E3/E5 product license in Azure AD, and it is not about a developer license inside Windows. That makes A the user-licensing distractor and B irrelevant. The Azure AD-joined detail describes Host1's identity, not a different licensing store; it does not move the check into the Azure AD admin center.

Why the PowerShell option wins Option D uses Azure Cloud Shell to run Get-AzVm for Host1. The returned object includes LicenseType; a licensed Windows client session host shows Windows_Client, while an unlicensed VM typically shows None. That is the documented verification path. One comment points to Microsoft's Hybrid Use Benefit PowerShell guidance and notes the output LicenseType: Windows_Client; another explicitly recommends Get-AzVm, which matches the vendor documentation.

The portal trap Option C sounds plausible because the Azure portal is a natural place to inspect a VM. But the VM's Properties blade is not the reliable place to confirm the OS license; comments from people who opened that blade report seeing "nothing about an OS license." Even if a licensing value appears elsewhere in the portal, the option names the Properties view, not a validated licensing check. The boundary is: portal Properties is general resource metadata; Get-AzVm returns the ARM property that records the assigned license. Therefore D is the correct action.

Official Reference

Exam Strategy

When a question asks you to verify a VM attribute in Azure, look for the cmdlet that returns the ARM object property, not a portal blade whose label sounds similar. Here, Get-AzVm is the direct check because it returns LicenseType. Read the option's exact scope: user product licenses and developer licenses are different from a session host's OS license. If a portal path is offered but not the documented licensing page, treat it as a distractor.

Frequently Asked Questions

Does Azure AD join change how I check the Windows license on an AVD session host?

No. Azure AD join affects identity and sign-in, not the VM's license verification. Check the session host's LicenseType with Get-AzVm.

What LicenseType value indicates the Windows license is assigned to an AVD session host?

For Windows client AVD session hosts, Windows_Client indicates the license is applied. A value of None means the license is not assigned.

Can I see the Windows license in the Azure portal VM Properties blade?

The Properties blade is not the reliable place to confirm the OS license. Use Get-AzVm or the documented licensing/configuration setting for the VM.

More AZ-140 FAQ →

Community Votes

D
62%
C
38%

62% of anonymous learners picked answer D. Votes are pick records left by other test-takers — they are not the verified answer.

Discussion 14 contributions

Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.

From public community threads 14

  1. Rednevi 👍 2 Answered D
    After deploying your VM, run this cmdlet to verify the license type: PowerShell Copy Get-AzVM -ResourceGroupName <resourceGroupName> -Name <vmName> A session host VM with the applied Windows license will show you something like this: PowerShell Copy Type : Microsoft.Compute/virtualMachines Location : westus LicenseType : Windows_Client VMs without the applied Windows license will show you something like this: PowerShell Copy Type : Microsoft.Compute/virtualMachines Location : westus LicenseType : https://learn.microsoft.com/en-us/azure/virtual-desktop/apply-windows-license#verify-your-session-host-vm-is-utilizing-the-licensing-benefit
  2. c7d45f4 👍 2 Answered C
    While the Get-AzVm cmdlet can provide information about a virtual machine (VM) in Azure, including its configuration, it doesn't specifically provide details about Windows licensing status. To check the Windows license assignment for a VM in Azure Virtual Desktop, you would typically access the VM properties directly from the Azure porta
  3. oktober_23 👍 2 Answered D
    Correct - D https://learn.microsoft.com/en-us/azure/virtual-machines/windows/hybrid-use-benefit-licensing#powershell-2
  4. CloudDummyDude 👍 2
    Portal and viewing properties won't give information about license status. Get-AzVM cmdlet and LicenseType
  5. tempelier1975 👍 2 Answered D
    Get-AzVm
Show 9 more comments
  1. b082cb3 👍 1
    C. From the Azure portal, view the properties of Host1. Here's why this is the correct approach: Azure AD-joined VMs: For Azure AD-joined virtual machines, including those used as session hosts in Azure Virtual Desktop, licensing information is typically visible in the Azure portal. VM Properties: The Azure portal provides detailed information about virtual machines, including their licensing status, in the properties section. Direct VM-level information: This method allows you to check the specific licensing status of Host1 directly, rather than looking at broader account or subscription-level information. D. From Azure Cloud Shell, run the Get-AzVm cmdlet. While this cmdlet can provide information about VMs, it doesn't directly show licensing information. It would require additional parsing and might not give as clear information as the Azure portal. The Azure portal provides a straightforward, visual way to check the licensing status of a specific VM, making it the most efficient and reliable method for this task.
  2. pinda 👍 1 Answered C
    In an Azure Virtual Desktop environment, the licensing status for the session hosts can be checked through the Azure portal by viewing the properties of the virtual machine (VM). The VM properties include information about the operating system, licensing, and other configuration details.
  3. jeff1988 👍 1 Answered C
    C. From the Azure portal, view the properties of Host1. In the Azure portal, you can check the properties of the virtual machine to see the licensing information. This will allow you to confirm if a Windows license is assigned to Host1.
  4. jasonho77 👍 1
    Checking the properties of the Azure Virtual Desktop session host in the Azure portal is the appropriate method to view information about the virtual machine, including licensing details. So, the correct answer is: C
  5. lukiduc9625 👍 1
    Please, show me (on screenshot) where precisely can I found license information - I look at a few my Azure vms' properties and on neither I can find license info
  6. Anonymous learner 👍 1 Answered D
    PowerShell command Get-AzVM https://learn.microsoft.com/en-us/azure/virtual-machines/windows/hybrid-use-benefit-licensing#powershell-2
  7. SilverFox22 👍 1 Answered D
    Looking at the Properties of a host VM right now in Azure portal. I see nothing about an OS license. Answer is D.
  8. Ivanvazovv 👍 1
    Currently checking, no info about the license.
  9. b082cb3 👍 1
    is your VM a Azure AD-joined VM

Reader comments & corrections

No reader corrections yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Practice All AZ-140 Questions

Access 64 questions with complete answers and detailed explanations.

View Full AZ-140 Practice Test →

← Back to AZ-140 Study Guide