Skip to content

Commit f059db8

Browse files
authored
Merge pull request #189601 from SGSneha/24Feb-AddImage-restructure-HRW
added image and restructured info
2 parents fdbe017 + b064794 commit f059db8

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

articles/automation/automation-hrw-run-runbooks.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,20 @@ To finish preparing the Run As account:
231231
> In case of unrestricted access, a user with VM Contributor rights or having permissions to run commands against the hybrid worker machine can use the Automation Account Run As certificate from the hybrid worker machine, using other sources like Azure cmdlets which could potentially allow a malicious user access as a subscription contributor. This could jeopardize the security of your Azure environment. </br> </br>
232232
> We recommend that you divide the tasks within the team and grant the required permissions/access to users as per their job. Do not provide unrestricted permissions to the machine hosting the hybrid runbook worker role.
233233
234+
## Start a runbook on a Hybrid Runbook Worker
235+
236+
[Start a runbook in Azure Automation](start-runbooks.md) describes different methods for starting a runbook. Starting a runbook on a Hybrid Runbook Worker uses a **Run on** option that allows you to specify the name of a Hybrid Runbook Worker group. When a group is specified, one of the workers in that group retrieves and runs the runbook. If your runbook does not specify this option, Azure Automation runs the runbook as usual.
237+
238+
When you start a runbook in the Azure portal, you're presented with the **Run on** option for which you can select **Azure** or **Hybrid Worker**. Select **Hybrid Worker**, to choose the Hybrid Runbook Worker group from a dropdown.
239+
240+
:::image type="content" source="./media/automation-hrw-run-runbooks/start-runbook-hrw-inline.png" alt-text="Screenshot showing how to select the Hybrid Runbook Worker group." lightbox="./media/automation-hrw-run-runbooks/start-runbook-hrw-expanded.png":::
241+
242+
243+
When starting a runbook using PowerShell, use the `RunOn` parameter with the [Start-AzAutomationRunbook](/powershell/module/Az.Automation/Start-AzAutomationRunbook) cmdlet. The following example uses Windows PowerShell to start a runbook named **Test-Runbook** on a Hybrid Runbook Worker group named MyHybridGroup.
244+
245+
```azurepowershell-interactive
246+
Start-AzAutomationRunbook -AutomationAccountName "MyAutomationAccount" -Name "Test-Runbook" -RunOn "MyHybridGroup"
247+
```
234248

235249
## Work with signed runbooks on a Windows Hybrid Runbook Worker
236250

@@ -364,17 +378,7 @@ The signed runbook is called **\<runbook name>.asc**.
364378

365379
You can now upload the signed runbook to Azure Automation and execute it like a regular runbook.
366380

367-
## Start a runbook on a Hybrid Runbook Worker
368-
369-
[Start a runbook in Azure Automation](start-runbooks.md) describes different methods for starting a runbook. Starting a runbook on a Hybrid Runbook Worker uses a **Run on** option that allows you to specify the name of a Hybrid Runbook Worker group. When a group is specified, one of the workers in that group retrieves and runs the runbook. If your runbook does not specify this option, Azure Automation runs the runbook as usual.
370-
371-
When you start a runbook in the Azure portal, you're presented with the **Run on** option for which you can select **Azure** or **Hybrid Worker**. If you select **Hybrid Worker**, you can choose the Hybrid Runbook Worker group from a dropdown.
372381

373-
When starting a runbook using PowerShell, use the `RunOn` parameter with the [Start-AzAutomationRunbook](/powershell/module/Az.Automation/Start-AzAutomationRunbook) cmdlet. The following example uses Windows PowerShell to start a runbook named **Test-Runbook** on a Hybrid Runbook Worker group named MyHybridGroup.
374-
375-
```azurepowershell-interactive
376-
Start-AzAutomationRunbook -AutomationAccountName "MyAutomationAccount" -Name "Test-Runbook" -RunOn "MyHybridGroup"
377-
```
378382
## Logging
379383

380384
To help troubleshoot issues with your runbooks running on a hybrid runbook worker, logs are stored locally in the following location:
127 KB
Loading
127 KB
Loading

0 commit comments

Comments
 (0)