Azure Automation: Run tasks on Azure Virtual Machines – without opening ports
This post explains how to use an Azure Automation runbook to push a script or scriptblock to an Azure VM using the Custom Script extension component of the Azure VM Agent.