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
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
Community Discussion
No community discussion yet for this question.