Microsoft Azure Virtual Desktop | Configure Host Pool for Automatic User Assignment

Configure Host Pool for Automatic User Assignment

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.

Answers

Explanations

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 &amp;lt;resourcegroupname&amp;gt; -Name &amp;lt;hostpoolname&amp;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:

  • ResourceGroupName: the name of the resource group where the host pool is located.
  • Name: the name of the host pool to be configured.
  • PersonalDesktopAssignmentType: this parameter specifies the type of personal desktop assignment. In this case, it should be set to "Automatic".

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.