Search code examples
azureazure-worker-rolesazure-cloud-services

Cloud service without web role


I want to deploy a cloud service with only worker role (without web role. Web role is deployed as Azure WebSite). Is it possible?

PS. Why I think about this solution - I need a website with ability to send emails. I put messages to queue in web and get these messages in worker role, which send emails. I tried to deploy both in cloud service, but web is much more comfortable to deploy as WebSite (much more quickly to deploy and ability to set connections strings for local and remote). So, I want to deploy a service only with worker role


Solution

  • Short answer: Yes.

    Longer answer: Absolutely. :) Have you tried it? Just create a new cloud service with only a worker role and deploy it.

    The chief difference between a web role and a worker role is that the web role will have IIS installed on it for web hosting. If you don't need IIS, why put it there? Just make a worker role and be done with it. :)