Getting started with azure-webjobs

Download azure-webjobs eBook

Remarks

Azure WebJobs provide an easy way to run scripts or programs as background processes in the context of an App Service web app, API app, or mobile app. You can upload and run an executable file such as:

These programs run as WebJobs on a schedule (cron) or continuously.

You can use the WebJobs SDK is to simplify the code you write for common tasks that a WebJob can perform, such as image processing, queue processing, RSS aggregation, file maintenance, and sending emails. The WebJobs SDK has built-in features for working with Azure Storage and Service Bus, for scheduling tasks and handling errors, and for many other common scenarios.

Versions

Azure WebJobs SDK

VersionRelease Date
2.0.0-beta12016-07-14
1.1.22016-04-22
1.1.12016-01-13
1.1.02015-11-19
1.1.0-rc12015-11-02
1.1.0-beta12015-09-16
1.1.0-alpha22015-08-12
1.1.0-alpha12015-07-10
1.0.12015-03-19
1.0.1-alpha12015-02-18
1.0.02014-10-17
1.0.0-rc12014-09-22
0.6.0-beta2014-09-13
0.5.0-beta2014-09-05
0.4.1-beta2014-08-30
0.4.0-beta2014-08-21

Creating a WebJob in the Azure Portal

  1. In the Web App blade of the Azure Portal, click All settings > WebJobs to show the WebJobs blade:

WebJobs blade

  1. Click Add. The Add WebJob dialog appears.

Add WebJob blade

  1. Under Name, provide a name for the WebJob. The name must start with a letter or a number and cannot contain any special characters other than "-" and "_".
  2. In the How to Run box, choose your preferred option Continuous or Triggered (the trigger can be using a cron schedule or a WebHook).
  3. In the File Upload box, click the folder icon and browse to the zip file that contains your script. The zip file should contain your executable (.exe .cmd .bat .sh .php .py .js) as well as any supporting files needed to run the program or script.
  4. Check Create to upload the script to your web app. The name you specified for the WebJob appears in the list on the WebJobs blade.

Stats

69 Contributors: 2
Saturday, July 30, 2016
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook