A session host is Azure AD–joined. To verify whether a Windows license is assigned to the VM, which action should you take?
Choose an answer
Tap an option to check your answer.
Correct answer: From Azure Cloud Shell, run the Get-AzVm cmdlet..
Why this is the answer
The Get-AzVM cmdlet in Azure Cloud Shell allows you to retrieve detailed information about an Azure Virtual Machine, including its licensing status. When a VM is Azure AD-joined and uses Azure Hybrid Benefit or other Azure-specific licensing, this cmdlet can display the LicenseType property, which indicates if a Windows Server or Windows Client license is applied. Viewing product licenses in the Azure Active Directory admin center shows user-assigned licenses for services like Microsoft 365, not VM operating system licenses. The Get-WindowsDeveloperLicense cmdlet is for checking developer licenses on a local Windows machine, not for Azure VM licensing. Viewing VM properties in the Azure portal provides general VM details but might not explicitly show the LicenseType in a clear, filterable way as the cmdlet does.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed