My colleague Andreas and me was preparing demos for our Azure Automation – Advanced runbook design session at Experts Live EU

More info on the session here

Use thís runbook to support automatic synchronization from visual studio git repositories! (See the session recording for WHY!)

It is based on the script provided by MSFT at

https://github.com/azureautomation/runbooks/blob/master/Utility/ARM/Sync-VSTS.ps1

We will make sure to submit a pull request to get the enchanced code implemented in that version.

This version add’s support for multiple branches and pull requests, while the original runbook only supports synchronizing direct commits.

To setup the solution, follow the guide described here:

https://docs.microsoft.com/en-us/azure/automation/automation-scenario-source-control-integration-with-vsts

Good luck!