Skip to content

Commit 356adce

Browse files
committed
Learn Editor: Update extension-based-hybrid-runbook-worker.md
1 parent b076199 commit 356adce

File tree

1 file changed

+59
-18
lines changed

1 file changed

+59
-18
lines changed

articles/automation/troubleshoot/extension-based-hybrid-runbook-worker.md

Lines changed: 59 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,58 @@ To help troubleshoot issues with extension-based Hybrid Runbook Workers:
2020
- Check whether the system-assigned managed identity is enabled on the VM. Azure VMs and Arc enabled Azure Machines should be enabled with a system-assigned managed identity.
2121

2222
- Check whether the extension is enabled with the right settings. Setting file should have right `AutomationAccountURL`. Cross-check the URL with Automation account property - `AutomationHybridServiceUrl`. 
23-
- For windows: you can find the settings file at `C:\Packages\Plugins\Microsoft.Azure.Automation.HybridWorker.HybridWorkerForWindows\<version>\RuntimeSettings`.
24-
- For Linux: you can find the settings file at `/var/lib/waagent/Microsoft.Azure.Automation.HybridWorker.HybridWorkerForLinux/`.
23+
- For Windows, you can find the settings file here:
24+
> [!TIP]
25+
> Replace `*` in the below path with the specific version that is installed if you know it.
26+
```
27+
C:\Packages\Plugins\Microsoft.Azure.Automation.HybridWorker.HybridWorkerForWindows\*\RuntimeSettings
28+
```
29+
- For Linux, you can find the settings file here:
30+
```
31+
/var/lib/waagent/Microsoft.Azure.Automation.HybridWorker.HybridWorkerForLinux/
32+
```
2533
2634
- Check the error message shown in the Hybrid worker extension status/Detailed Status. It contains error message(s) and respective recommendation(s) to fix the issue.
2735
2836
- Run the troubleshooter tool on the VM and it generates an output file. Open the output file and verify the errors identified by the troubleshooter tool.
29-
- For windows: you can find the troubleshooter at `C:\Packages\Plugins\Microsoft.Azure.Automation.HybridWorker.HybridWorkerForWindows\<version>\bin\troubleshooter\TroubleShootWindowsExtension.ps1`
30-
- For Linux: you can find the troubleshooter at `/var/lib/waagent/Microsoft.Azure.Automation.HybridWorker.HybridWorkerForLinux-<version>/Troubleshooter/LinuxTroubleshooter.py`
37+
- For Windows, you can find the troubleshooter here:
38+
> [!TIP]
39+
> Replace `*` in the below path with the specific version that is installed if you know it.
40+
```
41+
C:\Packages\Plugins\Microsoft.Azure.Automation.HybridWorker.HybridWorkerForWindows\*\bin\troubleshooter\TroubleShootWindowsExtension.ps1
42+
```
43+
- For Linux, you can find the troubleshooter here:
44+
> [!TIP]
45+
> Replace `*` in the below path with the specific version that is installed if you know it.
46+
```
47+
/var/lib/waagent/Microsoft.Azure.Automation.HybridWorker.HybridWorkerForLinux-*/Troubleshooter/LinuxTroubleshooter.py
48+
```
3149
3250
- For Linux machines, the Hybrid worker extension creates a `hweautomation` user and starts the Hybrid worker under the user. Check whether the user `hweautomation` is set up with the correct permissions. If your runbook is trying to access any local resources, ensure that the `hweautomation` has the correct permissions to the local resources.
3351
3452
- Check whether the hybrid worker process is running.
35-
- For Windows: check the `Hybrid Worker Service` service.
36-
- For Linux: check the `hwd` service.
53+
- For Windows, check the `Hybrid Worker Service` (***HybridWorkerService***) service.
54+
- For Linux, check the `hwd` service.
3755
3856
- Collect logs:
39-
- For Windows: Run the log collector tool in </br>`C:\Packages\Plugins\Microsoft.Azure.Automation.HybridWorker.HybridWorkerForWindows\<version>\bin\troubleshooter\PullLogs.ps1` </br>
40-
Logs are in `C:\HybridWorkerExtensionLogs`.
41-
- For Linux: Logs are in folders </br>`/var/log/azure/Microsoft.Azure.Automation.HybridWorker.HybridWorkerForLinux` and `/home/hweautomation`.
57+
- For Windows, run the log collector tool located here:
58+
> [!TIP]
59+
> Replace `*` in the below path with the specific version that is installed if you know it.
60+
```
61+
C:\Packages\Plugins\Microsoft.Azure.Automation.HybridWorker.HybridWorkerForWindows\*\bin\troubleshooter\PullLogs.ps1
62+
```
63+
Logs will be located here:
64+
```
65+
C:\HybridWorkerExtensionLogs
66+
```
67+
- For Linux: Logs are in the following folders:
68+
```
69+
/var/log/azure/Microsoft.Azure.Automation.HybridWorker.HybridWorkerForLinux
70+
```
71+
and
72+
```
73+
/home/hweautomation
74+
```
4275
4376
4477
### Unable to update Az modules while using the Hybrid Worker
@@ -51,10 +84,16 @@ The Hybrid Runbook Worker jobs failed as it was unable to import Az modules.
5184
5285
As a workaround, you can follow these steps:
5386
54-
1. Go to the folder: `C:\Program Files\Microsoft Monitoring Agent\Agent\AzureAutomation\7.3.1722.0\HybridAgent`
87+
1. Navigate to the folder:
88+
> [!TIP]
89+
> Replace `*` in the below path with the specific version that is installed if you know it.
90+
```
91+
C:\Program Files\Microsoft Monitoring Agent\Agent\AzureAutomation\*\HybridAgent
92+
```
93+
5594
1. Edit the file with the name `Orchestrator.Sandbox.exe.config`
5695
57-
1. Add the following lines inside the `<assemblyBinding>` tags:
96+
1. Add the following lines inside the `<assemblyBinding>` tag:
5897
```xml
5998
<dependentAssembly>
6099
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
@@ -76,8 +115,8 @@ For Custom user on the Hybrid Runbook Worker, update the permissions in the foll
76115

77116
| Folder |Permissions |
78117
|--- | --- |
79-
| C:\ProgramData\AzureConnectedMachineAgent\Tokens | Read |
80-
| C:\Packages\Plugins\Microsoft.Azure.Automation.HybridWorker.HybridWorkerForWindows | Read and Execute |
118+
| `C:\ProgramData\AzureConnectedMachineAgent\Tokens` | Read |
119+
| `C:\Packages\Plugins\Microsoft.Azure.Automation.HybridWorker.HybridWorkerForWindows` | Read and Execute |
81120

82121

83122
### Scenario: Job failed to start as the Hybrid Worker wasn't available when the scheduled job started
@@ -90,7 +129,6 @@ Job fails to start on a Hybrid Worker, and you see the following error:
90129
#### Cause
91130
This error can occur due to the following reasons:
92131
- The machines don't exist anymore.
93-
94132
- The machine is turned off and is unreachable.
95133
- The machine has a network connectivity issue.
96134
- The Hybrid Runbook Worker extension has been uninstalled from the machine.
@@ -201,7 +239,7 @@ Follow the steps mentioned below to install Hybrid Worker extension again:
201239
202240
> [!TIP]
203241
> Replace `*` in the below command with the specific version that is installed if you know it.
204-
```powershell
242+
```powershell
205243
cd "C:\Packages\Plugins\Microsoft.Azure.Automation.HybridWorker.HybridWorkerForWindows\*"
206244
```
207245
1. **Install** the Hybrid Worker extension:
@@ -397,9 +435,12 @@ As a workaround, you can create a configuration file named `OrchestratorSandbox.
397435
</configuration>
398436
```
399437

400-
Place this file in the same folder as the executable file `OrchestratorSandbox.exe`. For example,
401-
402-
`%ProgramFiles%\Microsoft Monitoring Agent\Agent\AzureAutomation\7.3.702.0\HybridAgent`
438+
Place this file in the same folder as the executable file `OrchestratorSandbox.exe`. For example:
439+
> [!TIP]
440+
> Replace `*` in the below path with the specific version that is installed if you know it.
441+
```
442+
%ProgramFiles%\Microsoft Monitoring Agent\Agent\AzureAutomation\*\HybridAgent
443+
```
403444

404445

405446
### Scenario: Microsoft Azure VMs automatically dropped from a hybrid worker group

0 commit comments

Comments
 (0)