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
+49-20Lines changed: 49 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,14 +31,13 @@ To use scaling plans, make sure you follow these guidelines:
31
31
32
32
- You must grant Azure Virtual Desktop access to manage the power state of your session host VMs. You must have the `Microsoft.Authorization/roleAssignments/write` permission on your subscriptions in order to assign the role-based access control (RBAC) role for the Azure Virtual Desktop service principal on those subscriptions. This is part of **User Access Administrator** and **Owner** built in roles.
33
33
34
-
- If you want to use personal desktop autoscale with hibernation, you'll need to enable the hibernation feature for VMs in your personal host pool. FSLogix and app attach currently don't support hibernate. Don't enable hibernate if you're using FSLogix or app attach for your personal host pools. For the full list of prerequisites for hibernation, see [Prerequisites to use hibernation](/azure/virtual-machines/hibernate-resume).
34
+
- If you want to use personal desktop autoscale with hibernation, you'll need to enable the hibernation feature for VMs in your personal host pool. FSLogix and app attach currently don't support hibernate. Don't enable hibernate if you're using FSLogix or app attach for your personal host pools. For more information on using hibernation, including how hibernaiton works, limitations, and prerequisites, see [Hibernation for Azure virtual machines](/azure/virtual-machines/hibernate-resume).
35
35
36
36
- 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.
37
37
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
+
- If you are [configuring a time limit policy](#configure-a-time-limit-policy), you will need:
39
+
- For Intune: a Microsoft Entra ID account that is assigned the Policy and Profile manager built-in RBAC role and a group containing the devices you want to configure.
40
+
- For Group Policy: a domain account that has permission to create or edit Group Policy objects and a security group or organizational unit (OU) containing the devices you want to configure.
42
41
43
42
## Assign the Desktop Virtualization Power On Off Contributor role with the Azure portal
44
43
@@ -129,8 +128,7 @@ Now that you've assigned the *Desktop Virtualization Power On Off Contributor* r
129
128
>
130
129
> - 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
130
>
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
-
131
+
> - 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](#configure-a-time-limit-policy).
134
132
135
133
- Likewise, **Off-peak hours** works the same way as **Peak hours**:
136
134
@@ -321,28 +319,59 @@ Here's how to create a scaling plan using the Az.DesktopVirtualization PowerShel
321
319
322
320
---
323
321
324
-
## Configure a time limit policy using Microsoft Intune
322
+
## Configure a time limit policy
323
+
324
+
You can configure a time limit policy that will sign out all disconnected users once a set time is reached to reduce the [used host pool capacity](autoscale-glossary.md#used-host-pool-capacity) using Microsoft Intune or Group Policy. Select the relevant tab for your scenario.
325
+
326
+
# [Microsoft Intune](#tab/intune)
327
+
328
+
To configure a time limit policy using Intune:
329
+
330
+
1. Sign in to the [Microsoft Intune admin center](https://endpoint.microsoft.com/).
331
+
332
+
1.[Create or edit a configuration profile](/mem/intune/configuration/administrative-templates-windows) for **Windows 10 and later** devices, with the **Session Time Limits** profile type.
333
+
334
+
1. In the settings picker, browse to **Administrative templates** > **Windows Components** > **Remote Desktop Services** > **Remote Desktop Session Host** > **Session Time Limits**.
335
+
336
+
1. Check the box for **Set time limit for disconnected sessions**, then close the settings picker.
337
+
338
+
1. Expand the **Administrative templates** category, then toggle the switch for **Set time limit for disconnected sessions** to **Enabled**, then select a time value from the drop-down list.
339
+
340
+
1. Select **Next**.
325
341
326
-
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).
342
+
1.*Optional*: On the **Scope tags** tab, select a scope tag to filter the profile. For more information about scope tags, see [Use role-based access control (RBAC) and scope tags for distributed IT](/mem/intune/fundamentals/scope-tags).
327
343
328
-
To configure the policy using Intune, follow these steps:
344
+
1. On the **Assignments** tab, select the group containing the computers providing a remote session you want to configure, then select **Next**.
329
345
330
-
1. Sign in to the [Microsoft Intune admin center](https://intune.microsoft.com/).
331
-
2. Select **Devices** and **Configuration**. Then, select **Create** and **New policy**.
332
-
3. In **Profile type**, select **Settings catalog** and then **Create**. This will take you to the **Create profile** page.
333
-
4. On the **Basics** tab, enter a name for your policy. Select **Next**.
334
-
5. On the **Configuration settings** tab, select **Add settings**.
335
-
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**.
336
-
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**.
337
-
8. On the **Assignments** tab, select the group containing the computers providing a remote session you want to configure, then select Next.
338
-
9. On the **Review + create** tab, review the settings, then select **Create**.
346
+
1. On the **Review + create** tab, review the settings, then select **Create**.
339
347
348
+
1. Once the policy applies to the computers providing a remote session, restart them for the settings to take effect.
349
+
350
+
# [Group Policy](#tab/group-policy)
351
+
352
+
To configure a time limit policy using Group Policy:
353
+
354
+
1. Open the **Group Policy Management** console on device you use to manage the Active Directory domain.
355
+
356
+
1. Create or edit a policy that targets the computers providing a remote session you want to configure.
0 commit comments