Skip to content

Commit

Permalink
Update Get-AzAutomationScheduledRunbook.md (#18059)
Browse files Browse the repository at this point in the history
* Update Get-AzAutomationScheduledRunbook.md

Added example 4

* Update Get-AzAutomationScheduledRunbook.md

Feedback incorporated

* Update Get-AzAutomationScheduledRunbook.md

* Update Get-AzAutomationScheduledRunbook.md

* Update Get-AzAutomationScheduledRunbook.md

Co-authored-by: Yunchi Wang <[email protected]>
  • Loading branch information
SnehaSudhirG and wyunchi-ms authored May 16, 2022
1 parent b2d4601 commit 5dbeacd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/Automation/Automation/help/Get-AzAutomationScheduledRunbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,23 @@ Get-AzAutomationScheduledRunbook -AutomationAccountName "Contoso17" -ResourceGro

This command gets all scheduled runbooks for the schedule Schedule01 in the Azure Automation account named Contoso17.

### Example 4: Get Parameters given to a Scheduled Runbook

The output of below command provides JobScheduleId associated with the runbook Runbk01.

```powershell
Get-AzAutomationScheduledRunbook -AutomationAccountName "Contoso17" -ResourceGroupName "ResourceGroup01" -RunbookName "Runbk01"
```

### Example 5: Use the JobScheduleId obtained above to get parameters of the scheduled runbook Runbk01.

```powershell
$x = Get-AzAutomationScheduledRunbook -AutomationAccountName "Contoso17" -ResourceGroupName "ResourceGroup01" -JobScheduleId “2b1d7738-093d-4ff7-b87b-e4b2321319e5”
$x.Parameters
```

This method is currently not supported for jobs created with complex parameters (for example - array) through Azure portal.

## PARAMETERS

### -AutomationAccountName
Expand Down

0 comments on commit 5dbeacd

Please sign in to comment.