Verify a Windows license on an Azure Virtual Desktop session host
Short answer
D In Azure Cloud Shell, run Get-AzVm against Host1 and inspect the returned LicenseType property for Windows_Client.
Question
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?
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
- https://learn.microsoft.com/en-us/azure/virtual-desktop/apply-windows-license
- https://learn.microsoft.com/en-us/azure/virtual-machines/windows/hybrid-use-benefit-licensing#powershell-2
These links open the official vendor documentation in a new tab.
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?
LicenseType with Get-AzVm.What LicenseType value indicates the Windows license is assigned to an AVD session host?
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?
Get-AzVm or the documented licensing/configuration setting for the VM.Community Votes
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
-
Rednevi 👍 2 Answered DAfter 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
-
c7d45f4 👍 2 Answered CWhile 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
-
oktober_23 👍 2 Answered DCorrect - D https://learn.microsoft.com/en-us/azure/virtual-machines/windows/hybrid-use-benefit-licensing#powershell-2
-
CloudDummyDude 👍 2Portal and viewing properties won't give information about license status. Get-AzVM cmdlet and LicenseType
-
tempelier1975 👍 2 Answered DGet-AzVm
Show 9 more comments
-
b082cb3 👍 1C. 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.
-
pinda 👍 1 Answered CIn 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.
-
jeff1988 👍 1 Answered CC. 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.
-
jasonho77 👍 1Checking 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
-
lukiduc9625 👍 1Please, 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
-
Anonymous learner 👍 1 Answered DPowerShell command Get-AzVM https://learn.microsoft.com/en-us/azure/virtual-machines/windows/hybrid-use-benefit-licensing#powershell-2
-
SilverFox22 👍 1 Answered DLooking at the Properties of a host VM right now in Azure portal. I see nothing about an OS license. Answer is D.
-
Ivanvazovv 👍 1Currently checking, no info about the license.
-
b082cb3 👍 1is your VM a Azure AD-joined VM
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All AZ-140 Questions
Access 64 questions with complete answers and detailed explanations.
View Full AZ-140 Practice Test →