Skip to content

Commit e5da677

Browse files
2 parents dad48ec + 759cf6e commit e5da677

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ServiceManagement/Automation/Commands.Automation/Cmdlet/GetAzureAutomationScheduledRunbook.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ public class GetAzureAutomationScheduledRunbook : AzureAutomationBaseCmdlet
4545
/// <summary>
4646
/// Gets or sets the runbook name of the job.
4747
/// </summary>
48-
[Parameter(ParameterSetName = AutomationCmdletParameterSets.ByScheduleName, Mandatory = true, HelpMessage = "The schedule name of the job schedule.")]
49-
[Parameter(ParameterSetName = AutomationCmdletParameterSets.ByRunbookNameAndScheduleName, Mandatory = true, HelpMessage = "The schedule name of the job schedule.")]
48+
[Parameter(ParameterSetName = AutomationCmdletParameterSets.ByScheduleName, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The schedule name of the job schedule.")]
49+
[Parameter(ParameterSetName = AutomationCmdletParameterSets.ByRunbookNameAndScheduleName, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The schedule name of the job schedule.")]
5050
public string ScheduleName { get; set; }
5151

5252
/// <summary>

0 commit comments

Comments
 (0)