AZ-140 · Question #92
You need to configure a host pool to automatically assign users to Virtual Machines. Complete the following PowerShell cmdlet to meet the goal. _______________ -ResourceGroupName <resourcegroupname> -
The correct answer is A. Update-AzWvdHostPool. To modify an existing Azure Virtual Desktop host pool's configuration, such as setting the PersonalDesktopAssignmentType to Automatic, the Update-AzWvdHostPool PowerShell cmdlet is used.
Question
You need to configure a host pool to automatically assign users to Virtual Machines. Complete the following PowerShell cmdlet to meet the goal. _______________ -ResourceGroupName <resourcegroupname> -Name <hostpoolname> - PersonalDesktopAssignmentType Automatic
Options
- AUpdate-AzWvdHostPool
- BNew-AzRoleAssignment
- CNew-AzWvdHostPool
- DUpdate-AzRoleAssignment
How the community answered
(29 responses)- A90% (26)
- B3% (1)
- C7% (2)
Why each option
To modify an existing Azure Virtual Desktop host pool's configuration, such as setting the PersonalDesktopAssignmentType to Automatic, the Update-AzWvdHostPool PowerShell cmdlet is used.
The `Update-AzWvdHostPool` cmdlet is used to modify the properties of an existing Azure Virtual Desktop host pool, including setting the `PersonalDesktopAssignmentType` to `Automatic` for personal desktop assignments.
`New-AzRoleAssignment` is used to create a new Azure role assignment, which is unrelated to configuring host pool properties.
`New-AzWvdHostPool` is used to create a new Azure Virtual Desktop host pool, not to modify an existing one.
`Update-AzRoleAssignment` is used to update an existing Azure role assignment, which is unrelated to configuring host pool properties.
Concept tested: PowerShell for AVD host pool configuration
Source: https://learn.microsoft.com/en-us/powershell/module/az.desktopvirtualization/update-azwvdhostpool
Topics
Community Discussion
No community discussion yet for this question.