Skip to content

Commit 5dbeacd

Browse files
Update Get-AzAutomationScheduledRunbook.md (#18059)
* 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]>
1 parent b2d4601 commit 5dbeacd

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/Automation/Automation/help/Get-AzAutomationScheduledRunbook.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,23 @@ Get-AzAutomationScheduledRunbook -AutomationAccountName "Contoso17" -ResourceGro
7171

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

74+
### Example 4: Get Parameters given to a Scheduled Runbook
75+
76+
The output of below command provides JobScheduleId associated with the runbook Runbk01.
77+
78+
```powershell
79+
Get-AzAutomationScheduledRunbook -AutomationAccountName "Contoso17" -ResourceGroupName "ResourceGroup01" -RunbookName "Runbk01"
80+
```
81+
82+
### Example 5: Use the JobScheduleId obtained above to get parameters of the scheduled runbook Runbk01.
83+
84+
```powershell
85+
$x = Get-AzAutomationScheduledRunbook -AutomationAccountName "Contoso17" -ResourceGroupName "ResourceGroup01" -JobScheduleId “2b1d7738-093d-4ff7-b87b-e4b2321319e5”
86+
$x.Parameters
87+
```
88+
89+
This method is currently not supported for jobs created with complex parameters (for example - array) through Azure portal.
90+
7491
## PARAMETERS
7592

7693
### -AutomationAccountName

0 commit comments

Comments
 (0)