Closed tmmjelde closed 1 month ago
Thank you for your reporting. Tagging and routing to the team member best able to assist.
@tmmjelde We are looking into it and get back to you.
We updated our latest Powershell release to change from DateTime string objects to custom objects. Please upgrade to latest stable powershell release.
Description
This is an example of a "working" command: New-AzWvdScalingPlan
-ResourceGroupName ResourceGroupName
-Name Name-Location 'westeurope'
-HostPoolType 'Pooled'-TimeZone 'W. Europe Standard Time'
-Schedule @( @{ 'name' = 'Weekends'; 'daysOfWeek' = @('Saturday', 'Sunday'); 'rampUpStartTime' = '1900-01-01T06:30:00Z'; 'rampUpLoadBalancingAlgorithm' = 'BreadthFirst'; 'rampUpMinimumHostsPct' = 10; 'rampUpCapacityThresholdPct' = 80; 'peakStartTime' = '1900-01-01T09:00:00Z'; 'peakLoadBalancingAlgorithm' = 'DepthFirst'; 'RampDownStartTime' = '1900-01-01T18:00:00Z'; 'rampDownLoadBalancingAlgorithm' = 'DepthFirst'; 'rampDownMinimumHostsPct' = 10; 'rampDownCapacityThresholdPct' = 80; 'rampDownForceLogoffUser' = $false; 'rampDownWaitTimeMinute' = 30; 'rampDownNotificationMessage' = 'You will be logged off in 30 min. Make sure to save your work.'; 'rampDownStopHostsWhen' = 'ZeroSessions'; 'offPeakStartTime' = '1900-01-01T20:00:00Z'; 'offPeakLoadBalancingAlgorithm' = 'DepthFirst'; } )Creation "works" just fine. No errors in Powershell. However, go into the Azure portal and review the schedule. It will tell you the format is wrong for the following: rampUpStartTime, peakStartTime, RampDownStartTime, offPeakStartTime
These require HH:mm format. As such, a good example would be this:
New-AzWvdScalingPlan
-ResourceGroupName ResourceGroupName
-Name Name-Location 'westeurope'
-HostPoolType 'Pooled'-TimeZone 'W. Europe Standard Time'
-Schedule @( @{ 'name' = 'Weekends'; 'daysOfWeek' = @('Saturday', 'Sunday'); 'rampUpStartTime' = '06:30'; 'rampUpLoadBalancingAlgorithm' = 'BreadthFirst'; 'rampUpMinimumHostsPct' = 10; 'rampUpCapacityThresholdPct' = 80; 'peakStartTime' = '09:00'; 'peakLoadBalancingAlgorithm' = 'DepthFirst'; 'RampDownStartTime' = '18:00'; 'rampDownLoadBalancingAlgorithm' = 'DepthFirst'; 'rampDownMinimumHostsPct' = 10; 'rampDownCapacityThresholdPct' = 80; 'rampDownForceLogoffUser' = $false; 'rampDownWaitTimeMinute' = 30; 'rampDownNotificationMessage' = 'You will be logged off in 30 min. Make sure to save your work.'; 'rampDownStopHostsWhen' = 'ZeroSessions'; 'offPeakStartTime' = '20:00'; 'offPeakLoadBalancingAlgorithm' = 'DepthFirst'; } )But this fails in Powershell.
Please change the powershell requirements to support HH:mm format, as the Azure portal specifies is required.
Also, this parameter is mislabeled: rampDownWaitTimeMinute should be rampDownWaitTimeMinutes. Check the ARM template to verify this.
Issue script & Debug output
Environment data
Module versions
Error output
No response