Skip to content

Commit

Permalink
format the help markdown file of Az.Automation (#18415)
Browse files Browse the repository at this point in the history
* format the help markdown file of Az.Automation

* format the help markdown file of Az.Automation

* Update Get-AzAutomationSourceControlSyncJobOutput.md

Co-authored-by: Ziyue Zheng <v-ziyzhe@microsoft.com>
  • Loading branch information
CaptainFanZzz and ziyuezh576 authored Jun 22, 2022
1 parent ef7d983 commit 13d4fdc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ This command gets the output of source control sync job with id 08d6d266-27b6-46
```powershell
Get-AzAutomationSourceControlSyncJobOutput -ResourceGroupName "rg1" `
-AutomationAccountName "devAccount" `
-Name "VSTSNative"
-Id "08d6d266-27b6-463c-beea-bc48a67ace15" `
-SourceControlName "VSTSNative" `
-JobId "08d6d266-27b6-463c-beea-bc48a67ace15" `
-Stream Output | ForEach-Object {$_.summary}
```
```output
Expand Down Expand Up @@ -60,6 +60,9 @@ File is not a runbook:
File size exceeds 1Mb:
- RunbookD_GreatherThan1MB.ps1
Invalid runbook name:
- RunbookZ_ĈĦŕĬŞ.ps1
```

## PARAMETERS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ $schedule = New-AzAutomationSchedule -ResourceGroupName "mygroup" `
New-AzAutomationSoftwareUpdateConfiguration -ResourceGroupName "mygroup" `
-AutomationAccountName "myaccount" `
-Schedule $schedule `
-Windows `
-Windows `
-AzureQuery $AzureQueries `
-IncludedUpdateClassification Critical `
-Duration $duration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The runbook starts based on the schedule you specify using the *ScheduleName* pa

### Example 1: Associate a runbook with a schedule
```powershell
Register-AzAutomationScheduledRunbook -AutomationAccountName "Contoso17" -Name "Runbk01" -ScheduleName "Sched01" -ResourceGroupName "ResourceGroup01"
Register-AzAutomationScheduledRunbook -AutomationAccountName "Contoso17" -RunbookName "Runbk01" -ScheduleName "Sched01" -ResourceGroupName "ResourceGroup01"
```

This command associates the runbook named Runbk01 with the schedule named Sched01 in the Azure Automation account named Contoso17.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ The schedule no longer starts the runbook.

### Example 1: Remove the association between a runbook and a schedule
```powershell
Unregister-AzAutomationScheduledRunbook -AutomationAccountName "Contoso17" -Name "Runbk01" -ResourceGroupName "ResourceGroup01" -ScheduleName "Runbk01Sched"
Unregister-AzAutomationScheduledRunbook -AutomationAccountName "Contoso17" -RunbookName "Runbk01" -ResourceGroupName "ResourceGroup01" -ScheduleName "Runbk01Sched"
```

This command removes the association between the runbook named Runbk01 and the schedule named Runbk01Sched.
Expand Down

0 comments on commit 13d4fdc

Please sign in to comment.