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/drain-mode.md
+25-5Lines changed: 25 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,15 +6,19 @@ author: Heidilohr
6
6
7
7
ms.service: virtual-desktop
8
8
ms.topic: how-to
9
-
ms.date: 04/14/2021
9
+
ms.date: 02/09/2024
10
10
ms.author: helohr
11
11
---
12
12
13
13
# Use drain mode to isolate session hosts and apply patches
14
14
15
15
Drain mode isolates a session host when you want to apply patches and do maintenance without disrupting user sessions. When isolated, the session host won't accept new user sessions. Any new connections will be redirected to the next available session host. Existing connections in the session host will keep working until the user signs out or the administrator ends the session. When the session host is in drain mode, admins can also remotely connect to the server without going through the Azure Virtual Desktop service. You can apply this setting to both pooled and personal desktops.
16
16
17
-
## Set drain mode using the Azure portal
17
+
## Enable drain mode
18
+
19
+
Here's how to enable drain mode using the Azure portal and PowerShell.
20
+
21
+
### [Portal](#tab/portal)
18
22
19
23
To turn on drain mode in the Azure portal:
20
24
@@ -26,25 +30,41 @@ To turn on drain mode in the Azure portal:
26
30
27
31
4. To turn off drain mode, select the host pools that have drain mode turned on, then select **Turn drain mode off**.
28
32
29
-
##Set drain mode using PowerShell
33
+
### [PowerShell](#tab/powershell)
30
34
31
35
You can set drain mode in PowerShell with the *AllowNewSessions* parameter, which is part of the [Update-AzWvdSessionhost](/powershell/module/az.desktopvirtualization/update-azwvdsessionhost) command.
>You'll need to run this command for every session host you're applying the setting to.
47
65
66
+
---
67
+
48
68
## Next steps
49
69
50
70
If you want to learn more about the Azure portal for Azure Virtual Desktop, check out [our tutorials](create-host-pools-azure-marketplace.md). If you're already familiar with the basics, check out some of the other features you can use with the Azure portal, such as [MSIX app attach](app-attach-azure-portal.md) and [Azure Advisor](../advisor/advisor-overview.md).
0 commit comments