Skip to content

Commit 528eef4

Browse files
committed
Scaling updates
1 parent 1e00d83 commit 528eef4

File tree

2 files changed

+22
-16
lines changed

2 files changed

+22
-16
lines changed

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

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ To learn how to assign the *Desktop Virtualization Power On Off Contributor* rol
8787
::: zone pivot="power-management"
8888
### [Azure portal](#tab/portal)
8989

90-
Now that you've assigned the *Desktop Virtualization Power On Off Contributor* role to the service principal on your subscriptions, you can create a scaling plan. To create a scaling plan using the portal:
90+
Now that you assigned the *Desktop Virtualization Power On Off Contributor* role to the service principal on your subscriptions, you can create a scaling plan. To create a scaling plan using the portal:
9191

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

@@ -101,7 +101,7 @@ Now that you've assigned the *Desktop Virtualization Power On Off Contributor* r
101101
|--|--|
102102
| Subscription | Select the subscription you want to create the host pool in from the drop-down list. |
103103
| Resource group | Select an existing resource group or select **Create new** and enter a name. |
104-
| Scaling plan name | Enter a name for the scaling plan. Optionally, you can also add a "friendly" name that will be displayed to your users and a description for your plan. |
104+
| Scaling plan name | Enter a name for the scaling plan. Optionally, you can also add a "friendly" name that is displayed to your users and a description for your plan. |
105105
| Location | Select the Azure region where you want to create your scaling plan. |
106106
| Time zone | Select the time zone you'll use with your plan. |
107107
| Host pool type | Select the type of host pool that you want your scaling plan to apply to. |
@@ -133,7 +133,7 @@ Now that you've assigned the *Desktop Virtualization Power On Off Contributor* r
133133
| Parameter | Value/Description |
134134
|--|--|
135135
| Start time | Select a time from the drop-down menu to start preparing VMs for peak business hours. |
136-
| Load balancing algorithm | We recommend selecting **breadth-first algorithm**. Breadth-first load balancing will distribute users across existing VMs to keep access times fast. The load balancing preference you select here will override the one you selected for your original host pool settings. |
136+
| Load balancing algorithm | We recommend selecting **breadth-first algorithm**. Breadth-first load balancing distributes users across existing VMs to keep access times fast. The load balancing preference you select here overrides the one you selected for your original host pool settings. |
137137
| Minimum percentage of hosts | Enter the percentage of session hosts you want to always remain on in this phase. If the percentage you enter isn't a whole number, it's rounded up to the nearest whole number. For example, in a host pool of seven session hosts, if you set the minimum percentage of hosts during ramp-up hours to **10%**, one VM will always stay on during ramp-up hours, and it won't be turned off by autoscale. |
138138
|Capacity threshold | Enter the percentage of available host pool capacity that will trigger a scaling action to take place. For example, if two session hosts in the host pool with a max session limit of 20 are turned on, the available host pool capacity is 40. If you set the capacity threshold to **75%** and the session hosts have more than 30 user sessions, autoscale will turn on a third session host. This will then change the available host pool capacity from 40 to 60. |
139139

@@ -169,6 +169,9 @@ Now that you've assigned the *Desktop Virtualization Power On Off Contributor* r
169169
- Start time, which is also the end of the ramp-down period.
170170
- Load-balancing algorithm. We recommend choosing **depth-first** to gradually reduce the number of session hosts based on sessions on each VM.
171171
- Just like peak hours, you can't configure the capacity threshold here. Instead, the value you entered in **Ramp-down** carries over.
172+
173+
> [!IMPORTANT]
174+
> If you have any days unselected in your schedule, the last off-peak parameters on the selected days will be carried over for the unselected days until the next ramp-up phase. For example, if you only have one schedule for Monday to Friday, then your configuration for the Friday off-peak phase will be carried over until the Monday ramp-up phase.
172175
173176
#### Personal host pools
174177

@@ -201,13 +204,16 @@ Now that you've assigned the *Desktop Virtualization Power On Off Contributor* r
201204
| Start VM on Connect | Select whether you want Start VM on Connect to be enabled during that phase. |
202205
|Disconnect settings | For **When disconnected for (min)**, specify the number of minutes a user session has to be disconnected before performing a specific action. This number can be anywhere between 0 and 360. <br /><br />For **Perform**, specify what action the service should take after a user session has been disconnected for the specified time. The options are to either deallocate (shut down) the VMs, hibernate the personal desktop, or do nothing. |
203206
| Sign out settings | For **When logged off for (min)**, specify the number of minutes a user session has to be logged off before performing a specific action. This number can be anywhere between 0 and 360. <br /><br />For **Perform**, specify what action the service should take after a user session has been logged off for the specified time. The options are to either deallocate (shut down) the VMs, hibernate the personal desktop, or do nothing. |
207+
208+
> [!IMPORTANT]
209+
> If you have any days unselected in your schedule, the last off-peak parameters on the selected days will be carried over for the unselected days until the next ramp-up phase. For example, if you only have one schedule for Monday to Friday, then your configuration for the Friday off-peak phase will be carried over until the Monday ramp-up phase.
204210
205211
---
206212

207213
1. Select **Next** to take you to the **Host pool assignments** tab. Select the check box next to each host pool you want to include. If you don't want to enable autoscale, unselect all check boxes. You can always return to this setting later and change it. You can only assign the scaling plan to host pools that match the host pool type specified in the plan.
208214

209215
> [!NOTE]
210-
> - When you create or update a scaling plan that's already assigned to host pools, its changes will be applied immediately.
216+
> - When you create or update a scaling plan that's already assigned to host pools, its changes are applied immediately.
211217
212218
1. After that, you'll need to enter **tags**. Tags are name and value pairs that categorize resources for consolidated billing. You can apply the same tag to multiple resources and resource groups. To learn more about tagging resources, see [Use tags to organize your Azure resources](../azure-resource-manager/management/tag-resources.md).
213219

@@ -337,7 +343,7 @@ Here's how to create a scaling plan using the Az.DesktopVirtualization PowerShel
337343
```
338344

339345

340-
You have now created a new scaling plan, one or more schedules, assigned it to your pooled or personal host pool(s), and enabled autoscale.
346+
You have now created a new scaling plan, one or more schedules, assigned it to your pooled or personal host pools, and enabled autoscale.
341347

342348
---
343349
::: zone-end
@@ -393,7 +399,7 @@ During the preview, you can only create a scaling plan for dynamic autoscaling u
393399
| Parameter | Value/Description |
394400
|--|--|
395401
| Start time | Select a time from the drop-down menu to start preparing VMs for peak business hours. |
396-
| Load balancing algorithm | We recommend selecting **breadth-first algorithm**. Breadth-first load balancing will distribute users across existing VMs to keep access times fast. The load balancing preference you select here will override the one you selected for your original host pool settings. |
402+
| Load balancing algorithm | We recommend selecting **breadth-first algorithm**. Breadth-first load balancing distributes users across existing VMs to keep access times fast. The load balancing preference you select here overrides the one you selected for your original host pool settings. |
397403
| Capacity threshold | Enter the percentage of available host pool capacity that will trigger a scaling action to take place. For example, if capacity threshold is specified as 60% and your total host pool capacity is 100 sessions, autoscale will turn on additional session hosts once the host pool exceeds a load of 60 sessions. |
398404

399405
You can modify the virtual machine limit parameters that you filled out in the **General** tab. We recommend having higher **Minimum percentage of active hosts (%)** and **Minimum host pool size** in the ramp-up phase, which will be carried over to the peak phase.
@@ -408,9 +414,9 @@ During the preview, you can only create a scaling plan for dynamic autoscaling u
408414
| Load balancing algorithm | Select breadth-first or depth-first load balancing. Breadth-first load balancing distributes new user sessions across all available session hosts in the host pool. Depth-first load balancing distributes new sessions to any available session host with the highest number of connections that hasn't reached its session limit yet. <br /><br />For more information about load-balancing types, see [Configure the Azure Virtual Desktop load-balancing method](configure-host-pool-load-balancing.md). |
409415

410416
> [!NOTE]
411-
> You can't change the capacity threshold here. Instead, the setting you entered in **Ramp-up** will carry over to this setting.
417+
> You can't change the capacity threshold here. Instead, the setting you entered in **Ramp-up** carries over to this setting.
412418
413-
1. In the **Ramp-down** tab, you'll enter values into similar fields to **Ramp-up**, but this time it will be for when your host pool usage drops off. This will include the following fields:
419+
1. In the **Ramp-down** tab, enter values into similar fields to **Ramp-up**, but this time it will be for when your host pool usage drops off. This includes the following fields:
414420

415421
- Start time
416422
- Load-balancing algorithm
@@ -431,12 +437,15 @@ During the preview, you can only create a scaling plan for dynamic autoscaling u
431437

432438
- Start time, which is also the end of the ramp-down period.
433439
- Load-balancing algorithm. We recommend choosing **depth-first** to gradually reduce the number of session hosts based on sessions on each VM.
434-
- Just like peak hours, you can't configure the capacity threshold here. Instead, the value you entered in **Ramp-down** will carry over.
440+
- Just like peak hours, you can't configure the capacity threshold here. Instead, the value you entered in **Ramp-down** carries over.
441+
442+
> [!IMPORTANT]
443+
> If you have any days unselected in your schedule, the last off-peak parameters on the selected days will be carried over for the unselected days until the next ramp-up phase. For example, if you only have one schedule for Monday to Friday, then your configuration for the Friday off-peak phase will be carried over until the Monday ramp-up phase.
435444
436445
1. Select **Next** to take you to the **Host pool assignments** tab. Select the check box next to each host pool you want to include. If you don't want to enable autoscale, unselect all check boxes. You can always return to this setting later and change it. You can only assign the dynamic scaling plan to pooled host pools with session host configuration.
437446

438447
> [!NOTE]
439-
> - When you create or update a scaling plan that's already assigned to host pools, its changes will be applied immediately.
448+
> - When you create or update a scaling plan that's already assigned to host pools, its changes are applied immediately.
440449
441450
1. After that, you'll need to enter **tags**. Tags are name and value pairs that categorize resources for consolidated billing. You can apply the same tag to multiple resources and resource groups. To learn more about tagging resources, see [Use tags to organize your Azure resources](../azure-resource-manager/management/tag-resources.md).
442451

@@ -445,15 +454,12 @@ During the preview, you can only create a scaling plan for dynamic autoscaling u
445454
446455
1. Once you're done, go to the **Review + create** tab and select **Create** to create and assign your scaling plan to the host pools you selected.
447456

448-
> [!IMPORTANT]
449-
> Currently when you deploy session hosts in the Azure portal using session host configuration, by default it doesn't automatically delete the NIC and/or disk when deleting the VM. To change the default setting, see [Delete a VM and attached resources](/azure/virtual-machines/delete#force-delete-for-vms). Scaling honors the setting therefore NIC and disks for the VMs created manually in the portal won't be automatically deleted. This default setting will be changed so that NIC and disk for the VMs created by the scaling service will be automatically deleted together with the VMs.
450-
451457
::: zone-end
452458

453459
::: zone pivot="power-management"
454460
## Configure a time limit policy
455461

456-
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.
462+
You can configure a time limit policy that signs 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.
457463

458464
# [Microsoft Intune](#tab/intune)
459465

@@ -635,7 +641,7 @@ To edit an existing scaling plan using the Azure portal:
635641
636642
## Next steps
637643
638-
Now that you've created your scaling plan, here are some things you can do:
644+
Now that you created your scaling plan, here are some things you can do:
639645
640646
- [Monitor Autoscale operations with Insights](autoscale-diagnostics.md)
641647

articles/virtual-desktop/autoscale-scenarios.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ If autoscale turned off a session host, the available host pool capacity would b
190190

191191
Once autoscale turns off one of the session hosts without user sessions, there are four available session hosts left. The host pool maximum session limit is still five, so the available host pool capacity is 20. Since there are five user sessions, the used host pool capacity is 25%, which is still below the capacity threshold.
192192

193-
However, if another user signs out and heads out for lunch, there are now four user sessions spread across the four session hosts in the host pool. Since the maximum session limit is still five, the available host pool capacity is 20, and the used host pool capacity is 20%. Turning off another session host would leave three session hosts and an available host pool capacity of 15, which would cause the used host pool capacity to jump up to around 27%. Even though 27% is below the capacity threshold, there are no session hosts with zero user sessions on it. Autoscale will select the session host with the least number of user sessions, put it in drain mode, and wait for all user sessions to sign out before turning it off. If at any point the used host pool capacity gets to a point where autoscale can no longer turn off the session host, it will take the session host out of drain mode.
193+
However, if another user signs out and heads out for lunch, there are now four user sessions spread across the four session hosts in the host pool. Since the maximum session limit is still five, the available host pool capacity is 20, and the used host pool capacity is 20%. Turning off another session host would leave three session hosts and an available host pool capacity of 15, which would cause the used host pool capacity to jump up to around 27%. Even though 27% is below the capacity threshold, there are no session hosts with zero user sessions on it.
194194

195195
The following animation is a visual recap of what we just went over in Scenario 2.
196196

0 commit comments

Comments
 (0)