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
![]() |
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).
And that fixed the problem.