From 2ff9b4f9905f23419ab62027695d4cb84fbee9e5 Mon Sep 17 00:00:00 2001 From: Flynn Date: Tue, 7 Jun 2022 11:50:38 +0800 Subject: [PATCH 1/3] format the help markdown file of Az.Automation --- .../help/Get-AzAutomationSourceControlSyncJobOutput.md | 4 ++-- .../help/New-AzAutomationUpdateManagementAzureQuery.md | 9 ++------- .../help/Register-AzAutomationScheduledRunbook.md | 2 +- .../help/Unregister-AzAutomationScheduledRunbook.md | 2 +- 4 files changed, 6 insertions(+), 11 deletions(-) diff --git a/src/Automation/Automation/help/Get-AzAutomationSourceControlSyncJobOutput.md b/src/Automation/Automation/help/Get-AzAutomationSourceControlSyncJobOutput.md index 4f40a65e5b5c..654d4680d6c1 100644 --- a/src/Automation/Automation/help/Get-AzAutomationSourceControlSyncJobOutput.md +++ b/src/Automation/Automation/help/Get-AzAutomationSourceControlSyncJobOutput.md @@ -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 diff --git a/src/Automation/Automation/help/New-AzAutomationUpdateManagementAzureQuery.md b/src/Automation/Automation/help/New-AzAutomationUpdateManagementAzureQuery.md index 602695209055..297cb864eeae 100644 --- a/src/Automation/Automation/help/New-AzAutomationUpdateManagementAzureQuery.md +++ b/src/Automation/Automation/help/New-AzAutomationUpdateManagementAzureQuery.md @@ -50,13 +50,8 @@ $schedule = New-AzAutomationSchedule -ResourceGroupName "mygroup" ` -WeekInterval 1 ` -ForUpdateConfiguration -New-AzAutomationSoftwareUpdateConfiguration -ResourceGroupName "mygroup" ` - -AutomationAccountName "myaccount" ` - -Schedule $schedule ` - -Windows ` - -AzureQuery $AzureQueries ` - -IncludedUpdateClassification Critical ` - -Duration $duration +New-AzAutomationSoftwareUpdateConfiguration -ResourceGroupName "mygroup" -AutomationAccountName "myaccount" -Schedule $schedule -Windows -AzureQuery $AzureQueries ` + -IncludedUpdateClassification Critical -Duration $duration ``` ```output UpdateConfiguration : Microsoft.Azure.Commands.Automation.Model.UpdateManagement.UpdateConfiguration diff --git a/src/Automation/Automation/help/Register-AzAutomationScheduledRunbook.md b/src/Automation/Automation/help/Register-AzAutomationScheduledRunbook.md index 9cff8ebe7040..4334328c575a 100644 --- a/src/Automation/Automation/help/Register-AzAutomationScheduledRunbook.md +++ b/src/Automation/Automation/help/Register-AzAutomationScheduledRunbook.md @@ -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. diff --git a/src/Automation/Automation/help/Unregister-AzAutomationScheduledRunbook.md b/src/Automation/Automation/help/Unregister-AzAutomationScheduledRunbook.md index 2d92e8d80d64..0467d9aab0b5 100644 --- a/src/Automation/Automation/help/Unregister-AzAutomationScheduledRunbook.md +++ b/src/Automation/Automation/help/Unregister-AzAutomationScheduledRunbook.md @@ -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. From 134773eede20283e77447ba671a1c31d5a752a42 Mon Sep 17 00:00:00 2001 From: Ziyue Zheng Date: Thu, 9 Jun 2022 22:00:34 +0800 Subject: [PATCH 2/3] format the help markdown file of Az.Automation --- .../help/Get-AzAutomationSourceControlSyncJobOutput.md | 5 ++++- .../help/New-AzAutomationUpdateManagementAzureQuery.md | 9 +++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/Automation/Automation/help/Get-AzAutomationSourceControlSyncJobOutput.md b/src/Automation/Automation/help/Get-AzAutomationSourceControlSyncJobOutput.md index 654d4680d6c1..c50044a96a2e 100644 --- a/src/Automation/Automation/help/Get-AzAutomationSourceControlSyncJobOutput.md +++ b/src/Automation/Automation/help/Get-AzAutomationSourceControlSyncJobOutput.md @@ -30,7 +30,7 @@ This command gets the output of source control sync job with id 08d6d266-27b6-46 ```powershell Get-AzAutomationSourceControlSyncJobOutput -ResourceGroupName "rg1" ` -AutomationAccountName "devAccount" ` - -SourceControlName "VSTSNative" ` + -Name "VSTSNative" ` -JobId "08d6d266-27b6-463c-beea-bc48a67ace15" ` -Stream Output | ForEach-Object {$_.summary} ``` @@ -60,6 +60,9 @@ File is not a runbook: File size exceeds 1Mb: - RunbookD_GreatherThan1MB.ps1 + +Invalid runbook name: + - RunbookZ_ĈĦŕĬŞ.ps1 ``` ## PARAMETERS diff --git a/src/Automation/Automation/help/New-AzAutomationUpdateManagementAzureQuery.md b/src/Automation/Automation/help/New-AzAutomationUpdateManagementAzureQuery.md index 297cb864eeae..172bd8941bff 100644 --- a/src/Automation/Automation/help/New-AzAutomationUpdateManagementAzureQuery.md +++ b/src/Automation/Automation/help/New-AzAutomationUpdateManagementAzureQuery.md @@ -50,8 +50,13 @@ $schedule = New-AzAutomationSchedule -ResourceGroupName "mygroup" ` -WeekInterval 1 ` -ForUpdateConfiguration -New-AzAutomationSoftwareUpdateConfiguration -ResourceGroupName "mygroup" -AutomationAccountName "myaccount" -Schedule $schedule -Windows -AzureQuery $AzureQueries ` - -IncludedUpdateClassification Critical -Duration $duration +New-AzAutomationSoftwareUpdateConfiguration -ResourceGroupName "mygroup" ` + -AutomationAccountName "myaccount" ` + -Schedule $schedule ` + -Windows ` + -AzureQuery $AzureQueries ` + -IncludedUpdateClassification Critical ` + -Duration $duration ``` ```output UpdateConfiguration : Microsoft.Azure.Commands.Automation.Model.UpdateManagement.UpdateConfiguration From bf5f98c792b7dd8e409cba7bad4083c632234516 Mon Sep 17 00:00:00 2001 From: Ziyue Zheng Date: Thu, 9 Jun 2022 22:03:32 +0800 Subject: [PATCH 3/3] Update Get-AzAutomationSourceControlSyncJobOutput.md --- .../help/Get-AzAutomationSourceControlSyncJobOutput.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Automation/Automation/help/Get-AzAutomationSourceControlSyncJobOutput.md b/src/Automation/Automation/help/Get-AzAutomationSourceControlSyncJobOutput.md index c50044a96a2e..da14699a9d3e 100644 --- a/src/Automation/Automation/help/Get-AzAutomationSourceControlSyncJobOutput.md +++ b/src/Automation/Automation/help/Get-AzAutomationSourceControlSyncJobOutput.md @@ -30,7 +30,7 @@ This command gets the output of source control sync job with id 08d6d266-27b6-46 ```powershell Get-AzAutomationSourceControlSyncJobOutput -ResourceGroupName "rg1" ` -AutomationAccountName "devAccount" ` - -Name "VSTSNative" ` + -SourceControlName "VSTSNative" ` -JobId "08d6d266-27b6-463c-beea-bc48a67ace15" ` -Stream Output | ForEach-Object {$_.summary} ```