Publishing Azure Worker Role By Uploading Your Package

In this article, I will be explaining how to publish an Azure Worker Role by uploading your package to Azure portal.

The project base used in this example can be found here,
What is 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. 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.
  2. You may set up everything at the Azure portal and import your package generated through Visual Studio. It will be explained here.
Why would I select this type of publishing?

In case you had any problem with the Visual Studio Publish Wizard Option, you can manually upload your project. This option will avoid problems like Authentication/Authorization with Azure, among others. Common problems reported by the community,
  • Bugs with the publish profile
  • Publish profile not displaying
  • Package access denied when publishing
  • Failure to authenticate with the proxy
  • You do not find your service
First, let's generate the package,

Right click on your worker role project, and select package,


Select your configurations,


After successfully creating your package, a new window will prompt with your package,


Now, we have already finished the first part and the second (and last) one is to upload it at Azure Portal,

Open your cloud service and click on the upload button,

cloud service

Fill the form with your data and upload the previous 2 files in here,

Fill the form  

And here we have our Worker Role up and running,

Worker Role up

Congratulations, you have successfully published your Azure Worker Role by uploading your package!