- Create an ASP.NET WebApp
- At project node, Add “New Azure WebJob Project”
- Choose project type: Continuous/OnDemand/Schedule
- A JobHost.RunAndBlock(); in void Main().
- A method for [QueueTrigger/BlobTrigger(queuename)] to dequeue message from queue
- On Demand/Schedule:
- A JobHost.Call(methodname, value) in void Main().
- A method for [Queue/Blog(queuename)] to enqueue message to the queue
- Publish WebApp and/or WebJob projects to Azure. And you will find the WebJob deployed under the WebApp App_Data folder
- Configuration: Add Azure Storage Connection String to Live Azure Web Site.
- Debug Contiuous WebJob: In Server Explorer, goto your WebJob and make sure it is started.
- Run OnDemand WebJob to send message to the queue which will in turn trigger any breakpoints in the continuous WebJob.