Skip to content

Commit b68594f

Browse files
committed
Resolving formatting issues and mistaken deletion.
1 parent 703fb04 commit b68594f

File tree

1 file changed

+26
-21
lines changed

1 file changed

+26
-21
lines changed

articles/virtual-desktop/configure-host-pool-personal-desktop-assignment-type.md

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Azure Virtual Desktop personal desktop assignment type - Azure
33
description: How to configure automatic or direct assignment for an Azure Virtual Desktop personal desktop host pool.
44
author: Heidilohr
55
ms.topic: how-to
6-
ms.date: 04/13/2023
6+
ms.date: 04/18/2023
77
ms.author: helohr
88
ms.custom: devx-track-azurepowershell
99
manager: femila
@@ -62,8 +62,6 @@ New-AzRoleAssignment -SignInName <userupn> -RoleDefinitionName "Desktop Virtuali
6262

6363
Unlike automatic assignment, when you use direct assignment, you must assign the user to both the personal desktop host pool and a specific session host before they can connect to their personal desktop. If the user is only assigned to a host pool without a session host assignment, they won't be able to access resources and will see an error message that says, "No resources available."
6464

65-
66-
6765
To configure a host pool to require direct assignment of users to session hosts, run the following PowerShell cmdlet:
6866

6967
```powershell
@@ -83,16 +81,27 @@ New-AzRoleAssignment -SignInName <userupn> -RoleDefinitionName "Desktop Virtuali
8381
To directly assign a user to a session host in the Azure portal:
8482

8583
1. Sign in to the [Azure portal](https://portal.azure.com).
84+
8685
1. Enter **Azure Virtual Desktop** into the search bar.
86+
8787
1. Under **Services**, select **Azure Virtual Desktop**.
88+
8889
1. At the Azure Virtual Desktop page, go the menu on the left side of the window and select **Host pools**.
90+
8991
1. Select the host pool you want to assign users to.
92+
9093
1. Next, go to the menu on the left side of the window and select **Application groups**.
94+
9195
1. Select the name of the app group you want to assign users to, then select **Assignments** in the menu on the left side of the window.
96+
9297
1. Select **+ Add**, then select the users or user groups you want to assign to this app group.
93-
1. Select **Assign VM** in the Information bar to assign a session host to a user.
98+
99+
1. Select **Assign VM** in the Information bar to assign a session host to a user.
100+
94101
1. Select the session host you want to assign to the user, then select **Assign**. You can also select **Assignment** > **Assign user**.
102+
95103
1. Select the user you want to assign the session host to from the list of available users.
104+
96105
1. When you're done, select **Select**.
97106

98107
#### [PowerShell](#tab/powershell)
@@ -106,35 +115,27 @@ Update-AzWvdSessionHost -HostPoolName $hostPoolName -Name $sessionHostName -Reso
106115

107116
## Unassign a personal desktop
108117

109-
1. Sign in to the [Azure portal](https://portal.azure.com).
110-
2. Enter **Azure Virtual Desktop** into the search bar.
111-
3. Under **Services**, select **Azure Virtual Desktop**.
112-
4. At the Azure Virtual Desktop page, go the menu on the left side of the window and select **Host pools**.
113-
5. Select the host pool you want to assign users to.
114-
6. Next, go to the menu on the left side of the window and select **Application groups**.
115-
7. Select the name of the application group you want to assign users to, then select **Assignments** in the menu on the left side of the window.
116-
8. Select **+ Add**, then select the users or user groups you want to assign to this application group.
117-
9. Select **Assign VM** in the Information bar to assign a session host to a user.
118-
10. Select the session host you want to assign to the user, then select **Assign**. You can also select **Assignment** > **Assign user**.
119-
11. Select the user you want to assign the session host to from the list of available users.
120-
12. When you're done, select **Select**.
121-
To unassign a personal desktop:
122-
123118
#### [Azure portal](#tab/azure)
124119

125120
To unassign a personal desktop in the Azure portal:
126121

127122
1. Sign in to the [Azure portal](https://portal.azure.com).
123+
128124
1. Enter **Azure Virtual Desktop** into the search bar.
125+
129126
1. Under **Services**, select **Azure Virtual Desktop**.
127+
130128
1. At the Azure Virtual Desktop page, go the menu on the left side of the window and select **Host pools**.
129+
131130
1. Select the host pool you want to modify user assignment for.
131+
132132
1. Next, go to the menu on the left side of the window and select **Session hosts**.
133+
133134
1. Select the checkbox next to the session host you want to unassign a user from, select the ellipses at the end of the row, and then select **Unassign user**. You can also select **Assignment** > **Unassign user**.
134135

135136
> [!div class="mx-imgBorder"]
136137
> ![A screenshot of the unassign user menu option from the ellipses menu for unassigning a personal desktop.](media/unassign.png)
137-
138+
138139
> [!div class="mx-imgBorder"]
139140
> ![A screenshot of the unassign user menu option from the assignment menu for unassigning a personal desktop.](media/unassign-2.png)
140141
@@ -159,18 +160,21 @@ Invoke-AzRestMethod @unassignDesktopParams
159160

160161
## Reassign a personal desktop
161162

162-
To reassign a personal desktop:
163-
164163
#### [Azure portal](#tab/azure)
165164

166165
To reassign a personal desktop in the Azure portal:
167166

168167
1. Sign in to the [Azure portal](https://portal.azure.com).
168+
169169
1. Enter **Azure Virtual Desktop** into the search bar.
170+
170171
1. Under **Services**, select **Azure Virtual Desktop**.
172+
171173
1. At the Azure Virtual Desktop page, go the menu on the left side of the window and select **Host pools**.
172174
1. Select the host pool you want to modify user assignment for.
175+
173176
1. Next, go to the menu on the left side of the window and select **Session hosts**.
177+
174178
1. Select the checkbox next to the session host you want to reassign to a different user, select the ellipses at the end of the row, and then select **Assign to a different user**. You can also select **Assignment** > **Assign to a different user**.
175179

176180
> [!div class="mx-imgBorder"]
@@ -180,6 +184,7 @@ To reassign a personal desktop in the Azure portal:
180184
> ![A screenshot of the assign to a different user menu option from the assignment menu for reassigning a personal desktop.](media/reassign.png)
181185
182186
1. Select the user you want to assign the session host to from the list of available users.
187+
183188
1. When you're done, select **Select**.
184189

185190
#### [PowerShell](#tab/powershell)

0 commit comments

Comments
 (0)