I have a VM running on Azure running a web server, only internal connections are allowed and I'm using a private IP. Can connect to it from my local machine as intended.
Now I'm trying to connect to that web server from an Azure Automation Powershell runbook. But the server only returns a "Unable to connect" error message.
Everything is in the same resource group and I do not want to run the runbook on the VM itself, it should run as a serverless script. How do I connect/refer to the private IP? Do I need to setup some specific network rules as well for the VM in order to allow connections from Azure Automation?