Posts

Showing posts from August, 2015

Azure WebJobs: ServiceBusTrigger

Image
Challenge is to build a WebJob that listens or monitors a queue in the Microsoft Azure Service Bus within a certain namespace and pick of each message that is send there by a message producer and process it. The WebJob acts as a message consumer of the messages on the queue. Below a high level diagram of a scenario that will be explained in this post and how I faced the challenge. You can build WebJobs inside Visual Studio by installing the WebJobs SDK . Once you have installed the SDK you have template available to build a WebJob in C# or Visual Basic. You can select this template specify a name for the WebJob and click Ok . You will see that a program class will be created. And a Functions.cs . By default a method will be created for you to monitor or listen to an Azure Storage Queue, not Service Bus Queue! To have method that will be triggered/executed when a message is written to an Azure Service Bus Queue you will need to have ServiceBusTrigger. This not availab