In November 2010, with SDK 1.3, Microsoft introduced the ability to deploy multiple web applications in a single Windows Azure web role. This is a great cost savings benefit since you don’t need a new role – essentially a virtual machine – for each web application you want to deploy.
Creating a web role that contains multiple web sites is pretty easy. Essentially, you need to add multiple <Site> elements to your web role’s ServiceDefinition.csdef file. Each <Site> element would include a physicalDirectory element that references the location of the web site to be included.
For additional detailed information on creating a web role with multiple web sites, I suggest following the guidance provided at these excellent resources:
- MSDN – http://msdn.microsoft.com/en-us/library/windowsazure/gg433110.aspx
- Wade Wegner’s blog post – http://www.wadewegner.com/2011/02/running-multiple-websites-in-a-windows-azure-web-role/
- ElastaCloud Blog post – http://blog.elastacloud.com/2011/01/11/azure-running-multiple-web-sites-in-a-single-webrole/
The above resources provide a great starting point. However, there is a once piece of what I think…
View original post 713 more words