Skip to content

Commit 68d3b01

Browse files
Merge pull request #272642 from sipastak/avd-autoscale-update
Update autoscale note
2 parents 6807f01 + 7e307e4 commit 68d3b01

File tree

1 file changed

+29
-4
lines changed

1 file changed

+29
-4
lines changed

articles/virtual-desktop/autoscale-create-assign-scaling-plan.md

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Create and assign an autoscale scaling plan for Azure Virtual Desktop
33
description: How to create and assign an autoscale scaling plan to optimize deployment costs.
44
author: Heidilohr
55
ms.topic: how-to
6-
ms.date: 04/11/2024
6+
ms.date: 04/18/2024
77
ms.author: helohr
88
manager: femila
99
ms.custom: references_regions, devx-track-azurepowershell
@@ -35,6 +35,10 @@ To use scaling plans, make sure you follow these guidelines:
3535
> Hibernation is currently in PREVIEW.
3636
> See the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
3737
- If you are using PowerShell to create and assign your scaling plan, you will need module [Az.DesktopVirtualization](https://www.powershellgallery.com/packages/Az.DesktopVirtualization/) version 4.2.0 or later.
38+
- If you are [configuring a time limit policy using Microsoft Intune](#configure-a-time-limit-policy-using-microsoft-intune), you will need:
39+
- A Microsoft Entra ID account that is assigned the Policy and Profile manager built-in RBAC role.
40+
- A group containing the devices you want to configure.
41+
3842

3943
## Assign the Desktop Virtualization Power On Off Contributor role with the Azure portal
4044

@@ -119,8 +123,14 @@ Now that you've assigned the *Desktop Virtualization Power On Off Contributor* r
119123
- Force logoff users
120124

121125
> [!IMPORTANT]
122-
> - If you've enabled autoscale to force users to sign out during ramp-down, the feature will choose the session host with the lowest number of user sessions to shut down. Autoscale will put the session host in drain mode, send all active user sessions a notification telling them they'll be signed out, and then sign out all users after the specified wait time is over. After autoscale signs out all user sessions, it then deallocates the VM. If you haven't enabled forced sign out during ramp-down, session hosts with no active or disconnected sessions will be deallocated.
123-
> - During ramp-down, autoscale will only shut down VMs if all existing user sessions in the host pool can be consolidated to fewer VMs without exceeding the capacity threshold.
126+
> - If you've enabled autoscale to force users to sign out during ramp-down, the feature will choose the session host with the lowest number of user sessions (active and disconnected) to shut down. Autoscale will put the session host in drain mode, send those user sessions a notification telling them they'll be signed out, and then sign out those users after the specified wait time is over. After autoscale signs out those user sessions, it then deallocates the VM.
127+
>
128+
> - If you haven't enabled forced sign out during ramp-down, you then need to choose whether you want to shut down ‘VMs have no active or disconnected sessions’ or ‘VMs have no active sessions’ during ramp-down.
129+
>
130+
> - Whether you’ve enabled autoscale to force users to sign out during ramp-down or not, the [capacity threshold](autoscale-glossary.md#capacity-threshold) and the [minimum percentage of hosts](autoscale-glossary.md#minimum-percentage-of-hosts) are still respected, autoscale will only shut down VMs if all existing user sessions (active and disconnected) in the host pool can be consolidated to fewer VMs without exceeding the capacity threshold.
131+
>
132+
> - You can also configure a time limit policy that will apply to all phases to sign out all disconnected users to reduce the [used host pool capacity](autoscale-glossary.md#used-host-pool-capacity). For more information, see [Configure a time limit policy using Microsoft Intune](#configure-a-time-limit-policy-using-microsoft-intune).
133+
124134

125135
- Likewise, **Off-peak hours** works the same way as **Peak hours**:
126136

@@ -312,9 +322,24 @@ Here's how to create a scaling plan using the Az.DesktopVirtualization PowerShel
312322

313323
You have now created a new scaling plan, 1 or more schedules, assigned it to your pooled or personal host pool(s), and enabled autoscale.
314324

325+
---
315326

327+
## Configure a time limit policy using Microsoft Intune
328+
329+
You can configure a time limit policy that will sign out all disconnected users to reduce the [used host pool capacity](autoscale-glossary.md#used-host-pool-capacity).
330+
331+
To configure the policy using Intune, follow these steps:
332+
333+
1. Sign in to the [Microsoft Intune admin center](https://intune.microsoft.com/).
334+
2. Select **Devices** and **Configuration**. Then, select **Create** and **New policy**.
335+
3. In **Profile type**, select **Settings catalog** and then **Create**. This will take you to the **Create profile** page.
336+
4. On the **Basics** tab, enter a name for your policy. Select **Next**.
337+
5. On the **Configuration settings** tab, select **Add settings**.
338+
6. In the **Settings picker** pane, select **Administrative Templates** > **Windows Components** > **Remote Desktop Services** > **Remote Desktop Session Host** > **Session Time Limits**. Then select the checkbox for **Set time limit for disconnected sessions**.
339+
7. The settings to enable the time limit will appear in the **Configuration settings** tab. Select your desired time limit in the drop-down menu for **End a disconnected session (Device)** and change the toggle to **Enabled** for **Set time limit for disconnected sessions**.
340+
8. On the **Assignments** tab, select the group containing the computers providing a remote session you want to configure, then select Next.
341+
9. On the **Review + create** tab, review the settings, then select **Create**.
316342

317-
---
318343

319344
## Edit an existing scaling plan
320345

0 commit comments

Comments
 (0)