AZ-140 · Question #183
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 t
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
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
How the community answered
(63 responses)- A81% (51)
- B3% (2)
- C2% (1)
- D5% (3)
- E10% (6)
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
Community Discussion
No community discussion yet for this question.