You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: Troubleshoot Hybrid Runbook Worker Job Failures in Azure Automation
3
-
description: Describes some common issues that might occur when you run a runbook on Hybrid Runbook Worker.
3
+
description: Discusses some common issues that might occur when you run a runbook on Hybrid Runbook Worker.
4
4
ms.date: 06/13/2025
5
5
ms.reviewer: adoyle
6
6
ms.service: azure-automation
7
7
ms.custom: sap:Runbook not working as expected
8
8
---
9
9
10
-
# Hybrid runbook worker job isn't working as expected
10
+
# Hybrid Runbook Worker job isn't working as expected
11
11
12
-
This article provides guidance for troubleshooting and resolving issues with Hybrid Runbook Workers in Azure Automation.
12
+
This article provides guidance for troubleshooting and resolving issues that affect Hybrid Runbook Worker in Azure Automation.
13
13
14
14
> [!NOTE]
15
-
> Azure Automation enables recovery of runbooks deleted in the last 29 days. For more information, see [Restore deleted runbook](/azure/automation/manage-runbooks#restore-deleted-runbook).
15
+
> Azure Automation enables the recovery of runbooks that are deleted in the past 29 days. For more information, see [Restore deleted runbook](/azure/automation/manage-runbooks#restore-deleted-runbook).
16
16
17
17
## Troubleshoot connectivity issues
18
18
19
-
Connectivity problems are a common cause of issues with Hybrid Runbook Workers. Use the [Test Cloud Connectivity tool](/azure/azure-monitor/agents/agent-windows-troubleshoot?tabs=UpdateMMA#connectivity-issues) to verify that your environment is correctly configured.
19
+
Connectivity problems are a common cause of issues that affect runbooks. Use the [Test Cloud Connectivity tool](/azure/azure-monitor/agents/agent-windows-troubleshoot?tabs=UpdateMMA#connectivity-issues) to verify that your environment is correctly configured.
20
20
21
21
## General troubleshooting
22
22
23
23
|**Issue**|**Resolution**|
24
24
|----------|----------------|
25
-
| Runbooks behave differently on a Hybrid Worker than in Azure Automation. | See [Runbook permissions](/azure/automation/automation-hrw-run-runbooks#runbook-permissions) for information on authentication differences. |
26
-
| Error: No certificate was found. | Follow the [No Certificate Found](/azure/automation/troubleshoot/hybrid-runbook-worker#no-cert-found) section in the troubleshooting guide. |
25
+
| Runbooks behave differently on a hybrid worker than in Azure Automation. | See [Runbook permissions](/azure/automation/automation-hrw-run-runbooks#runbook-permissions) for information about authentication differences. |
26
+
| Error: No certificate was found. | Follow the "[No Certificate Found](/azure/automation/troubleshoot/hybrid-runbook-worker#no-cert-found)" section in the troubleshooting guide. |
27
27
| You need to troubleshoot a custom runbook. | See [Troubleshoot runbook issues](/azure/automation/troubleshoot/runbooks). |
28
28
| You need to check job status. | Review [job details and statuses](/azure/automation/automation-runbook-execution#job-statuses). |
29
-
| Hybrid worker doesn't run jobs or is unresponsive. | Troubleshoot using [Hybrid Runbook Worker diagnostics](/azure/automation/troubleshoot/hybrid-runbook-worker). |
30
-
| Runbooks suddenly stopped working. |Ensure you've[migrated to managed identity](/azure/automation/migrate-run-as-accounts-managed-identity?tabs=sa-managed-identity#cert-renewal) and that webhooks haven't expired. |
29
+
| Hybrid worker doesn't run jobs or is unresponsive. | Troubleshoot by using [Hybrid Runbook Worker diagnostics](/azure/automation/troubleshoot/hybrid-runbook-worker). |
30
+
| Runbooks suddenly stop working. |Make sure that you [migrated to managed identity](/azure/automation/migrate-run-as-accounts-managed-identity?tabs=sa-managed-identity#cert-renewal) and that webhooks aren't expired. |
31
31
| Need help with passing parameters into a webhook. | See [Start a runbook from a webhook](/azure/automation/automation-webhooks#parameters-used-when-the-webhook-starts-a-runbook). |
32
32
| You want to use both `Az` and `AzureRM` modules in runbook. | This scenario isn't supported. Use only [Az modules in runbooks](/azure/automation/automation-update-azure-modules). |
33
33
| Can't start or schedule a runbook. | Verify that the runbook is in a [published state](/azure/automation/manage-runbooks#publish-a-runbook). |
34
-
| Runbook is suspended or failed unexpectedly. | Review [job statuses](/azure/automation/automation-runbook-execution#job-statuses). Add logging to the runbook using [output streams](/azure/automation/automation-runbook-output-and-messages#working-with-message-streams). If the job fails three times, check [Automation limits](/azure/azure-resource-manager/management/azure-subscription-service-limits#automation-limits) and consider using a [Hybrid Worker](/azure/automation/automation-hybrid-runbook-worker). |
34
+
| Runbook is suspended or failed unexpectedly. | Review [job statuses](/azure/automation/automation-runbook-execution#job-statuses). Add logging to the runbook by using [output streams](/azure/automation/automation-runbook-output-and-messages#working-with-message-streams). If the job fails three times, check [the automation limits](/azure/azure-resource-manager/management/azure-subscription-service-limits#automation-limits) and consider using a [Hybrid Worker](/azure/automation/automation-hybrid-runbook-worker). |
35
35
36
36
37
37
### Windows Hybrid Runbook Worker issues
@@ -49,19 +49,19 @@ Connectivity problems are a common cause of issues with Hybrid Runbook Workers.
49
49
|-----------|----------------|
50
50
| Unexpected password prompt appears when using `sudo`. | See [Linux runbook worker prompts for password](/azure/automation/troubleshoot/hybrid-runbook-worker#prompt-for-password). |
51
51
| Log file shows "The specified class does not exist." | See [Class does not exist error](/azure/automation/troubleshoot/hybrid-runbook-worker#class-does-not-exist). |
52
-
| Linux job is stuck in **Running** state | 1. Switch to `sudo` permissions: `sudo su`<br>2. Check to make sure that `hwd` service is running: `systemctl status hwd.service`<br>3. Open the following file in Hybrid Worker: `vi /lib/systemd/system/hwd.service`<br>4. Update the setting from `CPUQuota=25%` to `CPUQuota=` to make the usage unrestricted as shown in the following example: <br><br>`[Unit]`<br>`Description=HW Service`<br>`After=network.target`<br>`[Service]`<br>`Type=simple`<br>`ExecStart=/usr/bin/python3 .../automationWorkerStarterScript.py`<br>`TimeoutStartSec=5`<br>`Restart=always`<br>`RestartSec=10s`<br>`TimeoutStopSec=600`<br>`CPUQuota=`<br>`KillMode=process`<br>`[Install]`<br>`WantedBy=multi-user.target`<br><br> 5. Restart `hwd` service: <br>`systemctl daemon-reload` <br> `systemctl restart hwd.service`<br>|
52
+
| Linux job is stuck in **Running** state | 1. Switch to `sudo` permissions: `sudo su`<br>2. Make sure that the `hwd` service is running: `systemctl status hwd.service`<br>3. Open the following file in Hybrid Worker: `vi /lib/systemd/system/hwd.service`<br>4. Update the setting from `CPUQuota=25%` to `CPUQuota=` to make the usage unrestricted, as shown in the following example: <br><br>`[Unit]`<br>`Description=HW Service`<br>`After=network.target`<br>`[Service]`<br>`Type=simple`<br>`ExecStart=/usr/bin/python3 .../automationWorkerStarterScript.py`<br>`TimeoutStartSec=5`<br>`Restart=always`<br>`RestartSec=10s`<br>`TimeoutStopSec=600`<br>`CPUQuota=`<br>`KillMode=process`<br>`[Install]`<br>`WantedBy=multi-user.target`<br><br> 5. Restart the`hwd` service: <br>`systemctl daemon-reload` <br> `systemctl restart hwd.service`<br>|
53
53
54
54
## Other error messages
55
55
56
56
|**Error**|**Resolution**|
57
57
|-----------|----------------|
58
-
| "The subscription cannot be found" | This usually means the runbook isn't using a managed identity. Follow steps in [Unable to find subscription](/azure/automation/troubleshoot/runbooks#unable-to-find-subscription). |
58
+
| "The subscription cannot be found" | This usually means that the runbook isn't using a managed identity. Follow the steps in [Unable to find subscription](/azure/automation/troubleshoot/runbooks#unable-to-find-subscription). |
59
59
| "Strong authentication enrollment is required." | See [Authentication to Azure failed due to MFA](/azure/automation/troubleshoot/runbooks#auth-failed-mfa). |
60
-
| "No permission" or similar error |Ensure the [Managed Identity has proper permissions](/azure/role-based-access-control/role-assignments-portal). |
60
+
| "No permission" or similar error |Make sure that the [managed identity has appropriate permissions](/azure/role-based-access-control/role-assignments-portal). |
0 commit comments