Skip to content

Commit fc7d07c

Browse files
Merge pull request #232458 from ericd-mst-github/patch-34
[Doc-a-thon] update automation-hrw-run-runbooks
2 parents 8250409 + 001d860 commit fc7d07c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ Jobs for Hybrid Runbook Workers run under the local **System** account.
4949
5050
**PowerShell 7.2**
5151

52-
To run PowerShell 7.2 runbooks on a Windows Hybrid Worker, install *PowerShell* on the Hybrid Worker. See [Installing PowerShell on Windows](https://learn.microsoft.com/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.3).
52+
To run PowerShell 7.2 runbooks on a Windows Hybrid Worker, install *PowerShell* on the Hybrid Worker. See [Installing PowerShell on Windows](/powershell/scripting/install/installing-powershell-on-windows).
5353

5454
After PowerShell 7.2 installation is complete, create an environment variable with Variable name as powershell_7_2_path and Variable value as location of the executable *PowerShell*. Restart the Hybrid Runbook Worker after environment variable is created successfully.
5555

5656
**PowerShell 7.1**
5757

58-
To run PowerShell 7.1 runbooks on a Windows Hybrid Worker, install *PowerShell* on the Hybrid Worker. See [Installing PowerShell on Windows](https://learn.microsoft.com/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.3).
58+
To run PowerShell 7.1 runbooks on a Windows Hybrid Worker, install *PowerShell* on the Hybrid Worker. See [Installing PowerShell on Windows](/powershell/scripting/install/installing-powershell-on-windows).
5959
Ensure to add the *PowerShell* file to the PATH environment variable and restart the Hybrid Runbook Worker after the installation.
6060

6161
**Python 3.10**
@@ -89,7 +89,7 @@ If the *Python* executable file is at the default location *C:\Python27\python.e
8989
9090
**PowerShell 7.1**
9191

92-
To run PowerShell 7.1 runbooks on a Windows Hybrid Worker, install *PowerShell* on the Hybrid Worker. See [Installing PowerShell on Windows](https://learn.microsoft.com/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.3).
92+
To run PowerShell 7.1 runbooks on a Windows Hybrid Worker, install *PowerShell* on the Hybrid Worker. See [Installing PowerShell on Windows](/powershell/scripting/install/installing-powershell-on-windows).
9393
Ensure to add the *PowerShell* file to the PATH environment variable and restart the Hybrid Runbook Worker after the installation.
9494

9595
**Python 3.8**
@@ -123,7 +123,7 @@ If the *Python* executable file is at the default location *C:\Python27\python.e
123123
124124
**PowerShell 7.2**
125125

126-
To run PowerShell 7.2 runbooks on a Linux Hybrid Worker, install *PowerShell* file on the Hybrid Worker. For more information, see [Installing PowerShell on Linux](https://learn.microsoft.com/powershell/scripting/install/installing-powershell-on-linux?view=powershell-7.3).
126+
To run PowerShell 7.2 runbooks on a Linux Hybrid Worker, install *PowerShell* file on the Hybrid Worker. For more information, see [Installing PowerShell on Linux](/powershell/scripting/install/installing-powershell-on-linux).
127127

128128
After PowerShell 7.2 installation is complete, create an environment variable with **Variable name** as *powershell_7_2_path* and **Variable value** as location of the executable *PowerShell* file. Restart the Hybrid Runbook Worker after an environment variable is created successfully.
129129

@@ -425,13 +425,13 @@ To create the GPG keyring and keypair, use the Hybrid Runbook Worker [nxautomati
425425
sudo su - nxautomation
426426
```
427427

428-
1. Once you are using **nxautomation**, generate the GPG keypair. GPG guides you through the steps. You must provide name, email address, expiration time, and passphrase. Then you wait until there is enough entropy on the machine for the key to be generated.
428+
1. Once you are using **nxautomation**, generate the GPG keypair as root. GPG guides you through the steps. You must provide name, email address, expiration time, and passphrase. Then you wait until there is enough entropy on the machine for the key to be generated.
429429

430430
```bash
431431
sudo gpg --generate-key
432432
```
433433

434-
1. Because the GPG directory was generated with sudo, you must change its owner to **nxautomation** using the following command.
434+
1. Because the GPG directory was generated with sudo, you must change its owner to **nxautomation** using the following command as root.
435435

436436
```bash
437437
sudo chown -R nxautomation ~/.gnupg
@@ -447,7 +447,7 @@ gpg_public_keyring_path = /home/nxautomation/run/.gnupg/pubring.kbx
447447

448448
### Verify that signature validation is on
449449

450-
If signature validation has been disabled on the machine, you must turn it on by running the following sudo command. Replace `<LogAnalyticsworkspaceId>` with your workspace ID.
450+
If signature validation has been disabled on the machine, you must turn it on by running the following command as root. Replace `<LogAnalyticsworkspaceId>` with your workspace ID.
451451

452452
```bash
453453
sudo python /opt/microsoft/omsconfig/modules/nxOMSAutomationWorker/DSCResources/MSFT_nxOMSAutomationWorkerResource/automationworker/scripts/require_runbook_signature.py --true <LogAnalyticsworkspaceId>

0 commit comments

Comments
 (0)