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 DevOps Automation A couple of weeks ago the rename / rebranding of Visual Studio Team Services to Azure DevOps was announced. The rebranding is a great step forward int...
AKS (Kubernetes) and no connection could be made because the target machine acti... A client of my had an error while connecting to different resources within their Kubernetes cluster in Azure (AKS). Kubectl error On the kubectl com...
Kubernetes (AKS) attached to Azure Storage (Files) Kubernetes (AKS) can be used for many situations. For a client we needed to make files available trough a Kubernetes Pod. The files needed to be share...
Resource Group deployment via ARM templates When deploying an Azure Resource Manager (ARM) template you have to create a resource group within Azure. To deploy a template via script your script ...
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 ...

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.