Sunil bisht
Sunil bisht

Reputation: 1

How we can increase the instances of Role in Windows Azure?

I working with one Service bus application, I would like to know that how would we create worker role programmatically?

Upvotes: 0

Views: 418

Answers (1)

Gaurav Mantri
Gaurav Mantri

Reputation: 136176

Do you mean deploying your worker role programmatically or increasing the instance count of already running worker role programmatically? For both, you would need to make use Windows Azure Service Management API. For the 1st one, you would invoke Create Deployment (http://msdn.microsoft.com/en-us/library/windowsazure/ee460813) while for the 2nd one, you would need to update the instance count in your role's configuration file (*.cscfg) and invoke Change Deployment Configuration (http://msdn.microsoft.com/en-us/library/windowsazure/ee460809).

Upvotes: 1

Related Questions