Skip to content

Commit ab21a68

Browse files
committed
time limit policy
1 parent 259b0ea commit ab21a68

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

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

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

@@ -120,9 +124,11 @@ Now that you've assigned the *Desktop Virtualization Power On Off Contributor* r
120124

121125
> [!IMPORTANT]
122126
> - 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+
123128
> - 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+
124130
> - 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+
126132

127133
- Likewise, **Off-peak hours** works the same way as **Peak hours**:
128134

@@ -314,9 +320,24 @@ Here's how to create a scaling plan using the Az.DesktopVirtualization PowerShel
314320

315321
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.
316322

323+
---
317324

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**.
318340

319-
---
320341

321342
## Edit an existing scaling plan
322343

0 commit comments

Comments
 (0)