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/set-up-scaling-script.md
+17-11Lines changed: 17 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,12 +19,18 @@ The scaling tool provides a low-cost automation option for customers who want to
19
19
20
20
You can use the scaling tool to:
21
21
22
-
- Schedule VMs to start and stop based on Peak and Off-Peak business hours.
22
+
- Schedule VMs to start and stop based on peak and off-peak business hours.
23
23
- Scale out VMs based on number of sessions per CPU core.
24
24
- Scale in VMs during Off-Peak hours, leaving the minimum number of session host VMs running.
25
25
26
26
The scaling tool uses a combination of an Azure Automation account, a PowerShell runbook, a webhook, and the Azure Logic App to function. When the tool runs, Azure Logic App calls a webhook to start the Azure Automation runbook. The runbook then creates a job.
27
27
28
+
Peak and off-peak hours are defined as:
29
+
30
+
| Peak | Off-peak |
31
+
|--|--|
32
+
| The time when *maximum* user session concurrency is expected to be reached. | The time when *minimum* user session concurrency is expected to be reached. |
33
+
28
34
During peak usage time, the job checks the current number of sessions and the VM capacity of the current running session host for each host pool. It uses this information to calculate if the running session host VMs can support existing sessions based on the *SessionThresholdPerCPU* parameter defined for the **CreateOrUpdateAzLogicApp.ps1** file. If the session host VMs can't support existing sessions, the job starts additional session host VMs in the host pool.
29
35
30
36
>[!NOTE]
@@ -63,10 +69,10 @@ Before you start setting up the scaling tool, make sure you have the following t
63
69
64
70
The machine you use to deploy the tool must have:
65
71
66
-
-Windows PowerShell 5.1 or later
67
-
- The Microsoft Az PowerShell module
72
+
- PowerShell 5.1 or later
73
+
- The [Azure Az PowerShell module](/powershell/azure/new-azureps-module-az)
68
74
69
-
If you have everything ready, then let's get started.
75
+
If you have everything ready, let's get started.
70
76
71
77
## Create or update an Azure Automation account
72
78
@@ -75,7 +81,7 @@ If you have everything ready, then let's get started.
75
81
76
82
First, you'll need an Azure Automation account to run the PowerShell runbook. The process this section describes is valid even if you have an existing Azure Automation account that you want to use to set up the PowerShell runbook. Here's how to set it up:
77
83
78
-
1. Open Windows PowerShell.
84
+
1. Open PowerShell.
79
85
80
86
2. Run the following cmdlet to sign in to your Azure account.
81
87
@@ -152,7 +158,7 @@ To create a Run As account in your Azure Automation account:
152
158
153
159
Finally, you'll need to create the Azure Logic App and set up an execution schedule for your new scaling tool. First, download and import the [Desktop Virtualization PowerShell module](powershell-module.md) to use in your PowerShell session if you haven't already.
154
160
155
-
1. Open Windows PowerShell.
161
+
1. Open PowerShell.
156
162
157
163
2. Run the following cmdlet to sign in to your Azure account.
158
164
@@ -288,15 +294,15 @@ When you report an issue, you'll need to provide the following information to he
288
294
289
295
If you decided to use Log Analytics, you can view all the log data in a custom log named **WVDTenantScale_CL** under **Custom Logs** in the **Logs** view of your Log Analytics Workspace. We've listed some sample queries you might find helpful.
290
296
291
-
- To see all logs for a host pool, enter the following query
297
+
- To see all logs for a host pool, enter the following query:
- To view any errors and warnings, enter the following query
325
+
- To view any errors and warnings, enter the following query:
320
326
321
327
```Kusto
322
328
WVDTenantScale_CL
@@ -326,4 +332,4 @@ If you decided to use Log Analytics, you can view all the log data in a custom l
326
332
327
333
## Report issues
328
334
329
-
Issue reports for the scaling tool are currently being handled by Microsoft Support. When you make an issue report, make sure to follow the instructions in [Reporting issues](#reporting-issues). If you have feedback about the tool or want to request new features, open a GitHub issue labeled "4-WVD-scaling-tool" on the [RDS GitHub page](https://github.com/Azure/RDS-Templates/issues?q=is%3Aissue+is%3Aopen+label%3A4-WVD-scaling-tool).
335
+
Issue reports for the scaling tool are currently being handled by Microsoft Support. When you make an issue report, make sure to follow the instructions in [Reporting issues](#reporting-issues). If you have feedback about the tool or want to request new features, open a GitHub issue labeled *4-WVD-scaling-tool* on the [RDS GitHub page](https://github.com/Azure/RDS-Templates/issues?q=is%3Aissue+is%3Aopen+label%3A4-WVD-scaling-tool).
0 commit comments