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.
Click on the arrows to vote for the correct answer
A. B. C. D.Correct Answer: A
The following cmdlet helps in configuring a host pool to automatically assign users to Virtual Machines:
Update-AzWvdHostPool -ResourceGroupName &lt;resourcegroupname&gt; -Name &lt;hostpoolname&gt; -PersonalDesktopAssignmentType Automatic.
Option A is correct.
Update-AzWvdHostPool is the right cmdlet to configure a host pool to automatically assign users to Virtual Machines.
Option B is incorrect.
New-AzRoleAssignment is used to assign a user to the personal desktop host pool.
Option C is incorrect.
New-AzWvdHostPool is not the right command to meet the desired goal.
Option D is incorrect.
Update-AzRoleAssignment won't help in configuring a host pool to automatically assign users to Virtual Machines:
The correct PowerShell cmdlet to configure a host pool to automatically assign users to Virtual Machines is option A, which is "Update-AzWvdHostPool".
The cmdlet needs to be completed with the following parameters:
Therefore, the complete PowerShell cmdlet to configure a host pool to automatically assign users to Virtual Machines is:
Update-AzWvdHostPool -ResourceGroupName <resourcegroupname> -Name <hostpoolname> -PersonalDesktopAssignmentType Automatic
Option B, "New-AzRoleAssignment", is used to create a new role assignment for a user or group in Azure, and is not related to host pool configuration.
Option C, "New-AzWvdHostPool", is used to create a new host pool in Azure Virtual Desktop, but does not include the parameter to configure automatic user assignment.
Option D, "Update-AzRoleAssignment", is used to update an existing role assignment in Azure, and is not related to host pool configuration.