Publishing a node.js service as a workerrole to azure


After following the guide here to download and install the Windows Azure Publishing Settings I followed the guide here to publish my node.js application to Azure.

When I use the publish command:

Publish-AzureServiceProject –ServiceName NodeHelloWorld –Location "East US" -Launch

I get the following error:

Publish-AzureServiceProject : You MUST specify a certificate. Call
Set-AzureSubscription and Select-AzureSubscription first. At line:1
+ Publish-AzureServiceProject
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Publish-AzureServiceProject], ArgumentException
+ FullyQualifiedErrorId : Microsoft.WindowsAzure.Management.CloudService.PublishAzureServiceProjectCommand

Searching online I couldn't find a solution or other people with a similar problem. Would appreciate your help. Thanks!

Problem courtesy of: Guy


Seems like the solution was in front of me all along.. I didn't need to use Set-AzureSubscription but I did need to use Select-AzureSubscription. What really surprised me is that the name of the subscription was very long and automatically set when I got my account.

In short: After the process above run the following command: Select-AzureSubscription

Solution courtesy of: Guy


There is currently no discussion for this recipe.

This recipe can be found in it's original form on Stack Over Flow.