Running a Regularly Scheduled Task with Azure Functions
One of the more recent features of cloud computing is what’s called “serverless computing”. There are a number of different ways in which it is implemented, but for the most part it’s just a way to set up a code function to be able to run without needing to create an entire application and all it’s resources.
One of my favorite ways to utilize this feature in Azure apps is to use the functions to kick off nightly maintenance jobs. By using an external function to kick off the job, I am able to keep my Azure web apps set to not be “always on”. This helps keep my costs down, but still lets me kick off regularly scheduled tasks easily. And Azure functions can be written in any of several languages, including JavaScript and C#.