Skip to content

Commit 59d0634

Browse files
Added validate set for plan
1 parent 9c48ff8 commit 59d0634

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationAccount.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ public IAutomationClient AutomationClient
7575
/// Gets or sets the plan.
7676
/// </summary>
7777
[Parameter( Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The plan of the automation account")]
78+
[ValidateSet("Free", "Basic", IgnoreCase = true)]
7879
public string Plan { get; set; }
7980

8081
/// <summary>

src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationAccount.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public IAutomationClient AutomationClient
6969
/// Gets or sets the plan.
7070
/// </summary>
7171
[Parameter( Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The plan of the automation account")]
72+
[ValidateSet("Free", "Basic", IgnoreCase = true)]
7273
public string Plan { get; set; }
7374

7475
/// <summary>

0 commit comments

Comments
 (0)