nerdexam
MicrosoftMicrosoft

AZ-140 · Question #183

AZ-140 Question #183: Real Exam Question with Answer & Explanation

The correct answer is A: Update-AzVm. $vm = Get-AzVM -ResourceGroup <resourceGroupName> -Name <vmName> $vm.LicenseType = "Windows_Client" Update-AzVM -ResourceGroupName <resourceGroupName> -VM $vm https://learn.microsoft.com/en-us/azure/virtual-desktop/apply-windows-license

Submitted by carter_n· Apr 18, 2026Plan and implement an Azure Virtual Desktop infrastructure

Question

You have an Azure Virtual Desktop deployment that contains a host pool named Pool1. Pool1 contains 10 session hosts that were deployed by using an Azure Resource Manager (ARM) template. You discover that Windows licenses were NOT applied to the session hosts. You need to use a PowerShell script to update the licenses. Which cmdlet should you include in the solution?

Options

  • AUpdate-AzVm
  • BUpdate-AzWvdDesktop
  • CUpdate-AzWvdHostPool
  • DUpdate-AzWvdWorkspace
  • EUpdate-AzWvdSessionHost

Explanation

$vm = Get-AzVM -ResourceGroup <resourceGroupName> -Name <vmName> $vm.LicenseType = "Windows_Client" Update-AzVM -ResourceGroupName <resourceGroupName> -VM $vm https://learn.microsoft.com/en-us/azure/virtual-desktop/apply-windows-license

Topics

#Azure Virtual Desktop#PowerShell#VM Licensing#Session Host Management

Community Discussion

No community discussion yet for this question.

Full AZ-140 PracticeBrowse All AZ-140 Questions