nerdexam
Microsoft

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.

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

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)
  • A
    90% (26)
  • B
    3% (1)
  • C
    7% (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.

AUpdate-AzWvdHostPoolCorrect

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.

BNew-AzRoleAssignment

`New-AzRoleAssignment` is used to create a new Azure role assignment, which is unrelated to configuring host pool properties.

CNew-AzWvdHostPool

`New-AzWvdHostPool` is used to create a new Azure Virtual Desktop host pool, not to modify an existing one.

DUpdate-AzRoleAssignment

`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

#Azure Virtual Desktop#Host Pools#PowerShell#Desktop Assignment

Community Discussion

No community discussion yet for this question.

Full AZ-140 Practice