You deployed 10 session hosts via an ARM template and discovered Windows licenses were not applied. Which PowerShell cmdlet should you use to update the VM licenses?
Choose an answer
Tap an option to check your answer.
Correct answer: Update-AzVm.
Why this is the answer
The Update-AzVm cmdlet is used to modify properties of an existing Azure virtual machine, including its licensing information. Since the issue is with the Windows licenses on the session host VMs themselves, this cmdlet is the appropriate choice to update those VM-specific properties. The other cmdlets listed are for managing Azure Virtual Desktop (AVD) specific resources. Update-AzWvdDesktop modifies a desktop application group, Update-AzWvdHostPool updates a host pool's properties, Update-AzWvdWorkspace modifies a workspace, and Update-AzWvdSessionHost updates properties of a session host within AVD, but none of these directly manage the underlying VM's licensing.
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