Skip to content

Commit cabe341

Browse files
committed
update new-azautoscaleprofile to accept rule as empty list
1 parent 7d16f93 commit cabe341

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Monitor/Monitor/Autoscale/NewAzureRmAutoscaleProfileCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public class NewAzureRmAutoscaleProfileCommand : MonitorCmdletBase
126126
[Parameter(ParameterSetName = AddAutoscaleProfileNoScheduleParamGroup, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The rules for the setting")]
127127
[Parameter(ParameterSetName = AddAutoscaleProfileFixDateParamGroup, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The rules for the setting")]
128128
[Parameter(ParameterSetName = AddAutoscaleProfileRecurrenceParamGroup, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The rules for the setting")]
129-
[ValidateNotNullOrEmpty]
129+
[ValidateNotNull]
130130
public List<Management.Monitor.Management.Models.ScaleRule> Rule { get; set; }
131131

132132
#endregion

src/Monitor/Monitor/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
-->
2020

2121
## Upcoming Release
22+
* Changed parameter `Rule` of `New-AzAutoscaleProfile` to accept empty list. [#12903]
2223

2324
## Version 2.2.0
2425
* Fixed the bug that warning message cannot be suppressed. [#12889]

0 commit comments

Comments
 (0)