Troubleshoot VM extension-based Hybrid Runbook Worker issues in Automation
This article provides information on troubleshooting and resolving issues with Azure Automation extension-based Hybrid Runbook Workers. For troubleshooting agent-based workers, see Troubleshoot agent-based Hybrid Runbook Worker issues in Automation. For general information, see Hybrid Runbook Worker overview.
General checklist
To help troubleshoot issues with extension-based Hybrid Runbook Workers:
Check the OS is supported and the prerequisites have been met. See Prerequisites.
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.
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.- For windows: you can find the settings file at
C:\Packages\Plugins\Microsoft.Azure.Automation.HybridWorker.HybridWorkerForWindows\<version>\RuntimeSettings. - For Linux: you can find the settings file at
/var/lib/waagent/Microsoft.Azure.Automation.HybridWorker.HybridWorkerForLinux/.
- For windows: you can find the settings file at
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.
Run the troubleshooter tool on the VM and it will generate an output file. Open the output file and verify the errors identified by the troubleshooter tool.
- For windows: you can find the troubleshooter at
C:\Packages\Plugins\Microsoft.Azure.Automation.HybridWorker.HybridWorkerForWindows\<version>\bin\troubleshooter\TroubleShootWindowsExtension.ps1. - For Linux: you can find the troubleshooter at
/var/lib/waagent/Microsoft.Azure.Automation.HybridWorker.HybridWorkerForLinux/troubleshootLinuxExtension.py.
- For windows: you can find the troubleshooter at
For Linux machines, the Hybrid worker extension creates a
hweautomationuser and starts the Hybrid worker under the user. Check whether the userhweautomationis set up with the correct permissions. If your runbook is trying to access any local resources, ensure that thehweautomationhas the correct permissions to the local resources.Check whether the hybrid worker process is running.
- For Windows: check the
Hybrid Worker Serviceservice. - For Linux: check the
hwd.service.
- For Windows: check the
Run the log collector tool and review the collected logs.
- For Windows: the logs are located at
C:\HybridWorkerExtensionLogs. The tool is atC:\Packages\Plugins\Microsoft.Azure.Automation.HybridWorker.HybridWorkerForWindows\<version>\bin\troubleshooter\PullLogs.ps1. The extension log isHybridWorkerExtensionHandler.log. The worker log isSME.log. - For Linux: the logs are located at
/home/nxautomation/run. The tool is at/var/lib/waagent/Microsoft.Azure.Automation.HybridWorker.HybridWorkerForLinux/logcollector.py. The worker log isworker.log. The extension registration log isregister_log. The extension startup log isstartup_log. The extension log isextension_out.
- For Windows: the logs are located at
Next steps
If you don't see your problem here or you can't resolve your issue, try one of the following channels for more support:
- Get answers from Azure experts through Azure Forums.
- Connect with @AzureSupport, the official Microsoft Azure account for improving customer experience. Azure Support connects the Azure community to answers, support, and experts.
- File an Azure support incident. Go to the Azure support site, and select Get Support.
Povratne informacije
Pošalјite i prikažite povratne informacije za