One of the cool ways to use Azure Automation Hybrid Workers is to schedule them to do SFTP transfers. Here is how:
Follow the steps in Moving To Azure Automation to create an Azure Automation account linked to Github.
- Ensure an Azure Files share is mounted as the service account user
- Ensure that each of your hybrid workers have a static public IP
- Also make sure all third party vendors that you want to SFTP files to have this IP whitelisted as many will require this.
Next, create a Logic App with a recurrence trigger that starts the action Create Job
Lastly, just create a
.ps1file in the
/runbooksdirectory of your Azure Automation repo that: