Skip to content

Commit 7470bd2

Browse files
Merge pull request #287161 from dknappettmsft/patch-3
Update autoscale-create-assign-scaling-plan.md
2 parents 8291dca + 47cd11c commit 7470bd2

File tree

1 file changed

+49
-20
lines changed

1 file changed

+49
-20
lines changed

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

Lines changed: 49 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,13 @@ To use scaling plans, make sure you follow these guidelines:
3131

3232
- 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.
3333

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).
3535

3636
- 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.
3737

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.
4241

4342
## Assign the Desktop Virtualization Power On Off Contributor role with the Azure portal
4443

@@ -129,8 +128,7 @@ Now that you've assigned the *Desktop Virtualization Power On Off Contributor* r
129128
>
130129
> - 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.
131130
>
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).
134132
135133
- Likewise, **Off-peak hours** works the same way as **Peak hours**:
136134

@@ -321,28 +319,59 @@ Here's how to create a scaling plan using the Az.DesktopVirtualization PowerShel
321319

322320
---
323321

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

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).
327343

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

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

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.
357+
358+
1. Navigate to **Computer Configuration** > **Policies** > **Administrative Templates** > **Windows Components** > **Remote Desktop Services** > **Remote Desktop Session Host** > **Session Time Limits**.
359+
360+
1. Double-click the policy setting **Set time limit for disconnected sessions** to open it.
361+
362+
1. Select **Enabled**, select a time value from the drop-down list, then select **OK**.
363+
364+
1. Ensure the policy is applied to the computers providing a remote session, then restart them for the settings to take effect.
365+
366+
---
340367

341368
## Edit an existing scaling plan
342369

370+
Select the relevant tab for your scenario.
371+
343372
### [Portal](#tab/portal)
344373

345-
To edit an existing scaling plan:
374+
To edit an existing scaling plan using the Azure portal:
346375

347376
1. Sign in to the [Azure portal](https://portal.azure.com).
348377

0 commit comments

Comments
 (0)