Skip to content

Commit c11537e

Browse files
update new-azautoscaleprofile to accept rule as empty list (#13586)
Co-authored-by: Dingmeng Xue <[email protected]>
1 parent 1b71552 commit c11537e

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
* Added new cmdlets to support creating diagnostic settings more flexible:
2324
* `Get-AzDiagnosticSettingCategory`
2425
* `New-AzDiagnosticSetting`

0 commit comments

Comments
 (0)