To troubleshoot the failure of your Azure Automation job, you can follow these steps:
- Check the Job Status: In the Azure Portal, navigate to the Azure Automation account and check the job status for any error messages or details that can provide insight into why the job failed.
- Review the Microsoft-SMA Event Logs: On the virtual machine where the Hybrid Runbook Worker is installed, check the Microsoft-SMA event logs. These logs can provide information about job execution and any errors encountered during the process.
- Verify Hybrid Worker Health: Ensure that the Hybrid Runbook Worker is healthy and giving a heartbeat. You can monitor the
HybridWorkerPingmetric to check for connectivity issues. - Run the Troubleshooter Tool: Use the troubleshooter tool available on the VM to generate an output file that can help identify any issues with the Hybrid Runbook Worker setup. The tool can be found at:
- For Windows:
C:\Packages\Plugins\Microsoft.Azure.Automation.HybridWorker.HybridWorkerForWindows\*\bin\troubleshooter\TroubleShootWindowsExtension.ps1 - For Linux:
/var/lib/waagent/Microsoft.Azure.Automation.HybridWorker.HybridWorkerForLinux-*/Troubleshooter/LinuxTroubleshooter.py
- For Windows:
- Check Permissions: Ensure that the necessary permissions are set correctly for the folders and registry keys required by the Hybrid Runbook Worker, as insufficient permissions can lead to job failures.
By following these steps, you should be able to gather more information on why your job is failing and determine if it has started on the virtual machine.
References: