Another feature of Azure App Services is WebJobs. With WebJobs, you can run scripts or programs as background processes on Azure App Service web apps, APIs, and mobile apps, without any additional costs. Some scenarios that would be suitable for WebJobs are long-running tasks, such as for sending emails and file maintenance, such as aggregating or cleaning up log files, queue processing, RSS aggregation and image processing, and other CPU-intensive work. You can upload and run executable files such as the following:
- .ps1 (using PowerShell)
- .cmd, .bat, and .exe (using Windows CMD)
- .sh (using Bash)
- .py (using Python)
- .php (using PHP)
- .js (using Node.js)
- .jar (using Java)
There are two different types of WebJobs:
- Continuous: This starts immediately after creating the WebJob. The work inside the WebJob is run inside an endless loop to keep the job from ending. By default, continuous WebJobs run on all the instances that the web app runs; however, you can configure...