Azure WebJobs made simple

The last couple of weeks I have been playing around with Office Mix. For those who don’t know Office Mix, Office Mix is a add-in for PowerPoint that is in preview to easily create and share interactive online videos.

With this add-in it is very easy to create a Video of your presentations and also insert screen recordings. For a first pilot I created a PowerPoint presentation called: “Azure WebJobs made simple”.

With Azure WebJobs you have options to run different background tasks. The WebJobs will be hosted on the same virtual machine as you Azure Web App.

The following file types can be used as a Azure WebJob:

  • .exe – .NET assemblies
  • .cmd, .bat, .exe (using windows cmd)
  • .sh (using bash)
  • .php (using php)
  • .py (using python)
  • .js (using node)

For this blog post and for the video I created a simple Console Application that executes the following code.

class Program {
    static void Main(string[] args) {

        Console.WriteLine("Starting Web Job Application");

        Stopwatch timer = new Stopwatch();


        for (int i = 0; i < 15; i++) {

        Console.WriteLine("Web Job Procession took: " + timer.Elapsed.Seconds + " seconds");

        Console.WriteLine("Finished Web Job Application");

    static void WriteInfo(int number) {
        Console.WriteLine("Working on item: " + number);

With the use of “Console.WriteLine” you can post message on the WebJob console. Within Azure there are two types of WebJobs.

  • Continuous: Actions are taken when for example a item is added in a Queue.
  • On demand: Actions run on demand.

Besides these two option you are also able to schedule WebJobs. This can be done by using the old portal or by publishing the WebJob with Visual Studio.

The following actions are displayed in the video:

  • What can run on Azure
  • Create a Azure Web App
  • Upload the Azure Web Job
  • The Web Job Management Portal
  • Schedule a Azure WebJob
  • Deploy via Visual Studio

Related Posts

Azure Managed Service Identity and Local Development Instead of storing user credentials of an external system in a configuration file, you should store them in the Azure Key Vault. Before MSI (Managed S...
The securitydata Azure resource group Most of the times companies have rules in place for managing their Azure environment. The main rules that should be in place are “Azure Policies” and ...
Point to Site VPN Client won’t install To connect an Azure App Service to a on-premise database you can make use of different solutions. Two of those solutions are: Hybrid Connection ...
Invoke Azure Function in your Visual Studio Team Services CI/CD pipeline A utility task is available for Visual Studio Team Services (VSTS) to invoke an http triggered Azure function. The ability to invoke a Function from y...
VSTS Extension for Azure Role Based Access Control Today I published an extension for Visual Studio Team Services (VSTS) that gives you the ability to add and remove role based access assignments in Az...
Listing Azure Services within a CSV file In some situations you will look into a current Azure Environment and the setup/governance of it and need to migrate or move resources around. The ...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.