Deploying WebJobs from Visual Studio

In the previous part of this chapter, you saw how to create a simple WebJob and publish it from Azure Portal. Sometimes you would prefer not to leave your IDE and use it for deployments too. Fortunately, Visual Studio is integrated with Azure and makes such actions a piece of cake. Before, we started to create a brand new Console Application as we did in the beginning—this will be our starting point. You can add any code you would like to—I will use the one from the previous exercises, which will display the current date and time. Once you are satisfied with the provided functionality, right-click on your project icon.

From the context menu, click on Publish as Azure WebJob...:

You will see a new screen, ...

Get Hands-On Azure for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.