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
Copy file name to clipboardExpand all lines: articles/virtual-desktop/configure-host-pool-personal-desktop-assignment-type.md
+31-20Lines changed: 31 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Azure Virtual Desktop personal desktop assignment type - Azure
3
3
description: How to configure automatic or direct assignment for an Azure Virtual Desktop personal desktop host pool.
4
4
author: Heidilohr
5
5
ms.topic: how-to
6
-
ms.date: 03/03/2023
6
+
ms.date: 03/14/2023
7
7
ms.author: helohr
8
8
ms.custom: devx-track-azurepowershell
9
9
manager: femila
@@ -95,27 +95,31 @@ To directly assign a user to a session host in the Azure portal:
95
95
11. Select the user you want to assign the session host to from the list of available users.
96
96
12. When you're done, select **Select**.
97
97
98
-
## Unassign a personal desktop using the Azure portal
98
+
## Unassign a personal desktop
99
+
100
+
To unassign a personal desktop:
101
+
102
+
#### [Azure portal](#tab/azure)
99
103
100
104
To unassign a personal desktop in the Azure portal:
101
105
102
106
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**.
107
+
1. Enter **Azure Virtual Desktop** into the search bar.
108
+
1. Under **Services**, select **Azure Virtual Desktop**.
109
+
1. At the Azure Virtual Desktop page, go the menu on the left side of the window and select **Host pools**.
110
+
1. Select the host pool you want to modify user assignment for.
111
+
1. Next, go to the menu on the left side of the window and select **Session hosts**.
112
+
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
113
110
114
> [!div class="mx-imgBorder"]
111
115
> 
112
116
113
117
> [!div class="mx-imgBorder"]
114
118
> 
115
119
116
-
8. Select **Unassign** when prompted with the warning.
120
+
1. Select **Unassign** when prompted with the warning.
117
121
118
-
##Unassign a personal desktop using PowerShell
122
+
#### [PowerShell](#tab/powershell)
119
123
120
124
To unassign a personal desktop in PowerShell, run the following command:
121
125
@@ -130,28 +134,34 @@ $unassignDesktopParams = @{
130
134
}
131
135
Invoke-AzRestMethod @unassignDesktopParams
132
136
```
137
+
---
138
+
139
+
## Reassign a personal desktop
133
140
134
-
## Reassign a personal desktop using the Azure portal
141
+
To reassign a personal desktop:
142
+
143
+
#### [Azure portal](#tab/azure)
135
144
136
145
To reassign a personal desktop in the Azure portal:
146
+
137
147
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**.
148
+
1. Enter **Azure Virtual Desktop** into the search bar.
149
+
1. Under **Services**, select **Azure Virtual Desktop**.
150
+
1. At the Azure Virtual Desktop page, go the menu on the left side of the window and select **Host pools**.
151
+
1. Select the host pool you want to modify user assignment for.
152
+
1. Next, go to the menu on the left side of the window and select **Session hosts**.
153
+
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
154
145
155
> [!div class="mx-imgBorder"]
146
156
> 
147
157
148
158
> [!div class="mx-imgBorder"]
149
159
> 
150
160
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**.
161
+
1. Select the user you want to assign the session host to from the list of available users.
162
+
1. When you're done, select **Select**.
153
163
154
-
##Reassign a personal desktop using PowerShell
164
+
#### [Azure portal](#tab/powershell)
155
165
156
166
Before you start, first define the `$reassignUserUpn` variable by running the following command:
157
167
@@ -172,6 +182,7 @@ $reassignDesktopParams = @{
172
182
}
173
183
Invoke-AzRestMethod @reassignDesktopParams
174
184
```
185
+
---
175
186
176
187
## Give session hosts in a personal host pool a friendly name
0 commit comments