Skip to content

Commit d391658

Browse files
Merge pull request #226211 from dknappettmsft/avd-personal-host-pool-unassignment
AVD personal host pool assignment removed PowerShell sections
2 parents bf65610 + f0c61c5 commit d391658

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

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

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -86,18 +86,6 @@ To directly assign a user to a session host in the Azure portal:
8686

8787
## How to unassign a personal desktop
8888

89-
To unassign a personal desktop, run the following PowerShell cmdlet:
90-
91-
```powershell
92-
Update-AzWvdSessionHost -HostPoolName <hostpoolname> -Name <sessionhostname> -ResourceGroupName <resourcegroupname> -AssignedUser "" -Force
93-
```
94-
95-
>[!IMPORTANT]
96-
> - Azure Virtual Desktop will not delete any VHD or profile data for unassigned personal desktops.
97-
> - You must include the _-Force_ parameter when running the PowerShell cmdlet to unassign a personal desktop. If you don't include the _-Force_ parameter, you'll receive an error message.
98-
> - There must be no existing user sessions on the session host when you unassign the user from the personal desktop. If there's an existing user session on the session host while you're unassigning it, you won't be able to unassign the personal desktop successfully.
99-
> - If the session host has no user assignment, nothing will happen when you run this cmdlet.
100-
10189
To unassign a personal desktop in the Azure portal:
10290
1. Sign in to the [Azure portal](https://portal.azure.com).
10391
2. Enter **Azure Virtual Desktop** into the search bar.
@@ -117,19 +105,6 @@ To unassign a personal desktop in the Azure portal:
117105

118106
## How to reassign a personal desktop
119107

120-
To reassign a personal desktop, run the following PowerShell cmdlet:
121-
122-
```powershell
123-
Update-AzWvdSessionHost -HostPoolName <hostpoolname> -Name <sessionhostname> -ResourceGroupName <resourcegroupname> -AssignedUser <userupn> -Force
124-
```
125-
126-
>[!IMPORTANT]
127-
> - Azure Virtual Desktop will not delete any VHD or profile data for reassigned personal desktops.
128-
> - You must include the _-Force_ parameter when running the PowerShell cmdlet to reassign a personal desktop. If you don't include the _-Force_ parameter, you'll receive an error message.
129-
> - There must be no existing user sessions on the session host when you reassign a personal desktop. If there's an existing user session on the session host while you're reassigning it, you won't be able to reassign the personal desktop successfully.
130-
> - If the user principal name (UPN) you enter for the _-AssignedUser_ parameter is the same as the UPN currently assigned to the personal desktop, the cmdlet won't do anything.
131-
> - If the session host currently has no user assignment, the personal desktop will be assigned to the provided UPN.
132-
133108
To reassign a personal desktop in the Azure portal:
134109
1. Sign in to the [Azure portal](https://portal.azure.com).
135110
2. Enter **Azure Virtual Desktop** into the search bar.

0 commit comments

Comments
 (0)