Ensure that Azure Automation accounts have have public access disabled.
Disabling public network access ensures that network traffic between the machines on the VNet and the Automation account traverses over the a private link, eliminating exposure from the public internet.
Modify automation account and disable public access.