You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To directly assign a user to a session host in the Azure portal:
116
+
## Unassign a personal desktop
84
117
85
-
1. Sign in to the [Azure portal](https://portal.azure.com).
86
-
2. Enter **Azure Virtual Desktop** into the search bar.
87
-
3. Under **Services**, select **Azure Virtual Desktop**.
88
-
4. At the Azure Virtual Desktop page, go the menu on the left side of the window and select **Host pools**.
89
-
5. Select the host pool you want to assign users to.
90
-
6. Next, go to the menu on the left side of the window and select **Application groups**.
91
-
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.
92
-
8. Select **+ Add**, then select the users or user groups you want to assign to this application group.
93
-
9. Select **Assign VM** in the Information bar to assign a session host to a user.
94
-
10. Select the session host you want to assign to the user, then select **Assign**. You can also select **Assignment** > **Assign user**.
95
-
11. Select the user you want to assign the session host to from the list of available users.
96
-
12. When you're done, select **Select**.
97
-
98
-
## Unassign a personal desktop using the Azure portal
118
+
#### [Azure portal](#tab/azure)
99
119
100
120
To unassign a personal desktop in the Azure portal:
101
121
102
122
1. Sign in to the [Azure portal](https://portal.azure.com).
103
-
2. Enter **Azure Virtual Desktop** into the search bar.
104
-
3. Under **Services**, select **Azure Virtual Desktop**.
105
-
4. At the Azure Virtual Desktop page, go the menu on the left side of the window and select **Host pools**.
106
-
5. Select the host pool you want to modify user assignment for.
107
-
6. Next, go to the menu on the left side of the window and select **Session hosts**.
108
-
7. 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**.
123
+
124
+
1. Enter **Azure Virtual Desktop** into the search bar.
125
+
126
+
1. Under **Services**, select **Azure Virtual Desktop**.
127
+
128
+
1. At the Azure Virtual Desktop page, go the menu on the left side of the window and select **Host pools**.
129
+
130
+
1. Select the host pool you want to modify user assignment for.
131
+
132
+
1. Next, go to the menu on the left side of the window and select **Session hosts**.
133
+
134
+
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**.
109
135
110
136
> [!div class="mx-imgBorder"]
111
137
> 
112
-
138
+
113
139
> [!div class="mx-imgBorder"]
114
140
> 
115
141
116
-
8. Select **Unassign** when prompted with the warning.
142
+
1. Select **Unassign** when prompted with the warning.
117
143
118
-
##Unassign a personal desktop using PowerShell
144
+
#### [PowerShell](#tab/powershell)
119
145
120
146
To unassign a personal desktop in PowerShell, run the following command:
121
147
@@ -130,28 +156,38 @@ $unassignDesktopParams = @{
130
156
}
131
157
Invoke-AzRestMethod @unassignDesktopParams
132
158
```
159
+
---
133
160
134
-
## Reassign a personal desktop using the Azure portal
161
+
## Reassign a personal desktop
162
+
163
+
#### [Azure portal](#tab/azure)
135
164
136
165
To reassign a personal desktop in the Azure portal:
166
+
137
167
1. Sign in to the [Azure portal](https://portal.azure.com).
138
-
2. Enter **Azure Virtual Desktop** into the search bar.
139
-
3. Under **Services**, select **Azure Virtual Desktop**.
140
-
4. At the Azure Virtual Desktop page, go the menu on the left side of the window and select **Host pools**.
141
-
5. Select the host pool you want to modify user assignment for.
142
-
6. Next, go to the menu on the left side of the window and select **Session hosts**.
143
-
7. 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**.
168
+
169
+
1. Enter **Azure Virtual Desktop** into the search bar.
170
+
171
+
1. Under **Services**, select **Azure Virtual Desktop**.
172
+
173
+
1. At the Azure Virtual Desktop page, go the menu on the left side of the window and select **Host pools**.
174
+
1. Select the host pool you want to modify user assignment for.
175
+
176
+
1. Next, go to the menu on the left side of the window and select **Session hosts**.
177
+
178
+
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**.
144
179
145
180
> [!div class="mx-imgBorder"]
146
181
> 
147
182
148
183
> [!div class="mx-imgBorder"]
149
184
> 
150
185
151
-
8. Select the user you want to assign the session host to from the list of available users.
152
-
9. When you're done, select **Select**.
186
+
1. Select the user you want to assign the session host to from the list of available users.
153
187
154
-
## Reassign a personal desktop using PowerShell
188
+
1. When you're done, select **Select**.
189
+
190
+
#### [PowerShell](#tab/powershell)
155
191
156
192
Before you start, first define the `$reassignUserUpn` variable by running the following command:
157
193
@@ -172,6 +208,7 @@ $reassignDesktopParams = @{
172
208
}
173
209
Invoke-AzRestMethod @reassignDesktopParams
174
210
```
211
+
---
175
212
176
213
## Give session hosts in a personal host pool a friendly name
0 commit comments