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
Change the section "5. Run the following PowerShell script to create the Azure Logic app and execution schedule."
Added more automation and added Gridviews instead of manual input from the user
This should reduce errors
$wvdHostpool = Get-RdsHostPool -TenantName $wvdTenant.TenantName | Out-GridView -PassThru -Title "Select the host pool you'd like to scale"
185
+
$hostPoolName = $wvdHostpool.HostPoolName
172
186
173
-
$aadTenantId = Read-Host -Prompt "Enter your Azure AD tenant ID"
174
-
175
-
$subscriptionId = Read-Host -Prompt "Enter your Azure Subscription ID"
176
-
177
-
$tenantName = Read-Host -Prompt "Enter the name of your WVD tenant"
178
-
179
-
$hostPoolName = Read-Host -Prompt "Enter the name of the host pool you'd like to scale"
180
-
181
187
$recurrenceInterval = Read-Host -Prompt "Enter how often you'd like the job to run in minutes, e.g. '15'"
182
-
183
188
$beginPeakTime = Read-Host -Prompt "Enter the start time for peak hours in local time, e.g. 9:00"
184
-
185
189
$endPeakTime = Read-Host -Prompt "Enter the end time for peak hours in local time, e.g. 18:00"
186
-
187
190
$timeDifference = Read-Host -Prompt "Enter the time difference between local time and UTC in hours, e.g. +5:30"
188
-
189
191
$sessionThresholdPerCPU = Read-Host -Prompt "Enter the maximum number of sessions per CPU that will be used as a threshold to determine when new session host VMs need to be started during peak hours"
190
-
191
192
$minimumNumberOfRdsh = Read-Host -Prompt "Enter the minimum number of session host VMs to keep running during off-peak hours"
192
-
193
193
$limitSecondsToForceLogOffUser = Read-Host -Prompt "Enter the number of seconds to wait before automatically signing out users. If set to 0, users will be signed out immediately"
194
-
195
194
$logOffMessageTitle = Read-Host -Prompt "Enter the title of the message sent to the user before they are forced to sign out"
196
-
197
195
$logOffMessageBody = Read-Host -Prompt "Enter the body of the message sent to the user before they are forced to sign out"
198
-
199
-
$location = Read-Host -Prompt "Enter the name of the Azure region where you will be creating the logic app"
200
-
201
-
$connectionAssetName = Read-Host -Prompt "Enter the name of the Azure RunAs connection asset"
0 commit comments