Skip to content

Commit 8428e4a

Browse files
authored
Merge pull request #196125 from dknappettmsft/avd-automation-autoscale-same-time
AVD added notes to highlight incompatibility between autoscale and sc…
2 parents 8016d0c + e21f955 commit 8428e4a

File tree

2 files changed

+19
-16
lines changed

2 files changed

+19
-16
lines changed

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The autoscale feature (preview) lets you scale your Azure Virtual Desktop deploy
2525
> - Autoscale doesn't support Azure Virtual Desktop for Azure Stack HCI
2626
> - Autoscale doesn't support scaling of ephemeral disks.
2727
> - Autoscale doesn't support scaling of generalized VMs.
28-
28+
> - You can't use the autoscale feature and [scale session hosts using Azure Automation](set-up-scaling-script.md) on the same host pool. You must use one or the other.
2929
3030
For best results, we recommend using autoscale with VMs you deployed with Azure Virtual Desktop Azure Resource Manager templates or first-party tools from Microsoft.
3131

@@ -103,20 +103,20 @@ To create and assign the custom role to your subscription with the Azure portal:
103103

104104
4. On the **Permissions** tab, add the following permissions to the subscription you're assigning the role to:
105105

106-
```azcopy
107-
"Microsoft.Insights/eventtypes/values/read"
108-
"Microsoft.Compute/virtualMachines/deallocate/action"
109-
"Microsoft.Compute/virtualMachines/restart/action"
110-
"Microsoft.Compute/virtualMachines/powerOff/action"
111-
"Microsoft.Compute/virtualMachines/start/action"
112-
"Microsoft.Compute/virtualMachines/read"
113-
"Microsoft.DesktopVirtualization/hostpools/read"
114-
"Microsoft.DesktopVirtualization/hostpools/write"
115-
"Microsoft.DesktopVirtualization/hostpools/sessionhosts/read"
116-
"Microsoft.DesktopVirtualization/hostpools/sessionhosts/write"
117-
"Microsoft.DesktopVirtualization/hostpools/sessionhosts/usersessions/delete"
118-
"Microsoft.DesktopVirtualization/hostpools/sessionhosts/usersessions/read"
119-
"Microsoft.DesktopVirtualization/hostpools/sessionhosts/usersessions/sendMessage/action"
106+
```
107+
"Microsoft.Insights/eventtypes/values/read"
108+
"Microsoft.Compute/virtualMachines/deallocate/action"
109+
"Microsoft.Compute/virtualMachines/restart/action"
110+
"Microsoft.Compute/virtualMachines/powerOff/action"
111+
"Microsoft.Compute/virtualMachines/start/action"
112+
"Microsoft.Compute/virtualMachines/read"
113+
"Microsoft.DesktopVirtualization/hostpools/read"
114+
"Microsoft.DesktopVirtualization/hostpools/write"
115+
"Microsoft.DesktopVirtualization/hostpools/sessionhosts/read"
116+
"Microsoft.DesktopVirtualization/hostpools/sessionhosts/write"
117+
"Microsoft.DesktopVirtualization/hostpools/sessionhosts/usersessions/delete"
118+
"Microsoft.DesktopVirtualization/hostpools/sessionhosts/usersessions/read"
119+
"Microsoft.DesktopVirtualization/hostpools/sessionhosts/usersessions/sendMessage/action"
120120
```
121121
122122
5. When you're finished, select **Ok**.

articles/virtual-desktop/set-up-scaling-script.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ You can reduce your total Azure Virtual Desktop deployment cost by scaling your
1313

1414
In this article, you'll learn about the scaling tool built with the Azure Automation account and Azure Logic App that automatically scales session host VMs in your Azure Virtual Desktop environment. To learn how to use the scaling tool, skip ahead to [Prerequisites](#prerequisites).
1515

16+
> [!NOTE]
17+
> You can't scale session hosts using Azure Automation and use the [autoscale feature](autoscale-scaling-plan.md) on the same host pool. You must use one or the other.
18+
1619
## How the scaling tool works
1720

1821
The scaling tool provides a low-cost automation option for customers who want to optimize their session host VM costs.
@@ -21,7 +24,7 @@ You can use the scaling tool to:
2124

2225
- Schedule VMs to start and stop based on peak and off-peak business hours.
2326
- Scale out VMs based on number of sessions per CPU core.
24-
- Scale in VMs during Off-Peak hours, leaving the minimum number of session host VMs running.
27+
- Scale in VMs during off-peak hours, leaving the minimum number of session host VMs running.
2528

2629
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.
2730

0 commit comments

Comments
 (0)