Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Get-AzAutomationScheduledRunbook.md #18059

Merged
merged 5 commits into from
May 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
SnehaSudhirG marked this conversation as resolved.
Show resolved Hide resolved
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