Hello , Welcome to MS Q&A
Azure Automation Hybrid Runbook Worker requires internet access to communicate with Azure Automation services. If all internet access is denied on a VM, the Hybrid Runbook Worker will not be able to function properly, as it needs to connect to various Azure endpoints.
However, if you attach the Automation service tag to the Network Security Group (NSG) and allow outbound traffic, it will enable the necessary communication with Azure Automation services. This setup will allow the Hybrid Runbook Worker to function correctly even if other internet access is restricted.
References:
- Automation Hybrid Runbook Worker overview
- Runbook execution in Azure Automation
- Deploy an extension-based Windows or Linux User Hybrid Runbook Worker in Azure Automation
Please let us know if any question
Kindly accept answer if it helps
Thanks
Deepanshu