Publishing Azure Worker Role Using The Publish Wizard

In this article, I will be explaining how to publish an Azure Worker Role project to Azure using the Wizard mode.

The project base used in this example can be found here.

What is the Azure Worker Role?

The WorkerRole element describes a role that is useful for generalized development and may perform background processing for a web role. A service may contain zero or more worker roles. Read more here.

There are two main ways to publish your project.

  1. You may set up everything at the Azure portal, and download and import your profile into Visual Studio. Check it out here.
  2. Use the Visual Studio Wizard to create and configure your cloud service, create your publish profile, and start publishing without needing anything else other than using Visual Studio. This process is explained here:

Visual Studio 2017 Professional with all features included is used here.

Let's go through the process, step by step.

  1. Right-click in the Worker Role Project, and click publish.
    Worker Role
  2. Select your Azure subscription to be used.
    Microsoft Azure Publish Sign In
  3. If you do not have a cloud service created, you must create it.
    Create Cloud Service And Storage Account-.jpg
  4. Read more about their prices here.

If you already have your cloud service created, just select it.

Microsoft Azure Publish Settings-.jpg

Choose your diagnostics preferences.

Diagnostics Settings-

Read more about diagnostics here.

Review your settings and click publish.

Microsoft Azure Publish Summary-

You may follow the publishing process through the Microsoft Azure Activity Log window.

Microsoft Azure Activity Log Window

If you check the Azure portal, you may see that your worker role is up and running.

Portal

Congratulations, you have successfully published your Azure Worker Role using Visual Studio Publish Wizard.