In the old days, scheduling a script was easy: you just created a scheduled task on your favorite Windows Server and made that run your PowerShell script exactly how and when you wanted. Granted, scripts often stopped working when the author left the company and we disabled their user account, scripts targeting SharePoint didn’t like to be launched from any other server, and there’s plenty of other challenges about. Along came the cloud and our toolbox expanded dramatically: Azure Automation, Azure DevOps and even Microsoft Flow offers some interesting possibilities to make stuff happen on a schedule or run when a certain condition is met. This session will provide you with a comprehensive overview of when to use what, their cost aspects and technical boundaries.
source