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/autoscale-create-assign-scaling-plan.md
+23-2Lines changed: 23 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,10 @@ To use scaling plans, make sure you follow these guidelines:
35
35
> Hibernation is currently in PREVIEW.
36
36
> 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.
37
37
- 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
+
38
42
39
43
## Assign the Desktop Virtualization Power On Off Contributor role with the Azure portal
40
44
@@ -120,9 +124,11 @@ Now that you've assigned the *Desktop Virtualization Power On Off Contributor* r
120
124
121
125
> [!IMPORTANT]
122
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
+
123
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
+
124
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.
125
-
> - You can also configure the 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), go to **Local Computer Policy** > **Computer Configuration** > **Administrative Templates** > **Windows Components** > **Remote Desktop Services** > **Remote Desktop Session Host** > **Session Time Limits** > **Set time limit for disconnected sessions**.
131
+
126
132
127
133
- Likewise, **Off-peak hours** works the same way as **Peak hours**:
128
134
@@ -314,9 +320,24 @@ Here's how to create a scaling plan using the Az.DesktopVirtualization PowerShel
314
320
315
321
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.
316
322
323
+
---
317
324
325
+
## Configure a time limit policy using Microsoft Intune
326
+
327
+
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).
328
+
329
+
To configure the policy using Intune, follow these steps:
330
+
331
+
1. Sign in to the [Microsoft Intune admin center](https://intune.microsoft.com/).
332
+
2. Select **Devices** and **Configuration**. Then, select **Create** and **New policy**.
333
+
3. In **Profile type**, select **Settings catalog** and then **Create**. This will take you to the **Create profile** page.
334
+
4. On the **Basics** tab, enter a name for your policy. Select **Next**.
335
+
5. On the **Configuration settings** tab, select **Add settings**.
336
+
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**.
337
+
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**.
338
+
8. On the **Assignments** tab, select the group containing the computers providing a remote session you want to configure, then select Next.
339
+
9. On the **Review + create** tab, review the settings, then select **Create**.
0 commit comments