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?
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?
To verify whether a Windows license is assigned to a virtual machine in Azure Virtual Desktop, you can use the Get-AzVM cmdlet. This command retrieves information about the virtual machine, including its configuration and licensing details. When you run this cmdlet, you can check the 'LicenseType' property to determine if a Windows license has been applied to the VM. This method provides a direct way to access the necessary information regarding the VM's licensing status.
Get-AzVm
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
Portal and viewing properties won't give information about license status. Get-AzVM cmdlet and LicenseType
Correct - D https://learn.microsoft.com/en-us/azure/virtual-machines/windows/hybrid-use-benefit-licensing#powershell-2
PowerShell command Get-AzVM https://learn.microsoft.com/en-us/azure/virtual-machines/windows/hybrid-use-benefit-licensing#powershell-2
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.
Looking at the Properties of a host VM right now in Azure portal. I see nothing about an OS license. Answer is D.
is your VM a Azure AD-joined VM
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
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