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
@@ -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
@@ -119,8 +123,14 @@ Now that you've assigned the *Desktop Virtualization Power On Off Contributor* r
119
123
- Force logoff users
120
124
121
125
> [!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
+
124
134
125
135
- Likewise, **Off-peak hours** works the same way as **Peak hours**:
126
136
@@ -312,9 +322,24 @@ Here's how to create a scaling plan using the Az.DesktopVirtualization PowerShel
312
322
313
323
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.
314
324
325
+
---
315
326
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**.
0 commit comments