How to host website in the Windows Azure Virtual Machine

How to host website in the Windows Azure Virtual Machine

Well as you know Microsoft is now offering IaaS (Infrastructure as a service) services through the new Virtual Machine role.

It’s quite good and easy to get up and running with it but. In matter of minutes you can have your windows or linux virtual machine ready to be used. You can shut them off or backup their VHDs.

When I gave it a go to try it, the very first thing I wanted to do was to host a website on my VM. So once the VM was ready I remote deskoped in and added IIS and the other stuff. But when I tried to browse the site I got a 404 (page not found) error in the browser.

I spent some time figuring out what has gone wrong and finally came to know that by default there is

clip_image002

just one endpoint enabled for the VM and that’s used for remote desktop.

So bingo I had to log into my windows azure control panel and added a new endpoint for port 80 (http) and 443 (https).

clip_image004

clip_image006

clip_image008

And that fixed the problem.

Written by vahid

Saturday, September 15, 2012 at 10:30 PM

Leave a Reply