Azure WebJobs (app service)
In this short and sweet blog, we’ll be covering the tip of the WebJobs iceberg. If you merely want to understand what they are then you’re in the right place!
What are WebJobs?
Azure WebJobs simply allow you to run background tasks on your websites and services hosted within the Microsoft Cloud. Microsoft have integrated tasks previously executed on IIS deployments, typically via PowerShell, into Azure in a SaaS-style arrangement.
What are WebJobs used for?
Some common examples of situations that warrant the use of WebJobs include image processing; If you have a website to which users can upload images you could schedule a WebJob to ensure that the images are in an efficient format. Other tasks include log management (File parsing) and aggregation tasks (most prevalent from RSS feeds).
You can run WebJobs in three ways;
- On Demand
If using the ‘On Demand’ method, this is a manually triggered start as opposed to ‘Continuously’ that as described, runs in the background constantly. Be aware that if using the ‘Scheduled’ run type it requires using the Azure Scheduler which is a separate (and billable) component.
WebJobs can be scheduled using one of the three options previously listed and then can execute scripts in any of the following languages (not just PowerShell);
Whichever format you choose your scripts must be uploaded to Azure in a zip folder (.zip) format.
For a lot more detail on Azure WebJobs follow this link;