Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Azure VM Website setup

I have a Windows Azure Virtual Machine. I am able to view my ASP.Net website on the virtual machine (localhost URL). When I ping my Windows Azure Virtual Machine IP I get timeout error.

My domain name is registered with an ISP but I would like to use that domain on my VM website.

Is it possible?

I actually want to know: -

  1. How do I access my website outside the VM?

  2. I also would like to setup my DNS name.

like image 783
Krivahn Doss Avatar asked Jun 17 '12 19:06

Krivahn Doss


People also ask

Can you host a website on Azure Virtual Machine?

If your web hosting requirements aren't directly supported by the Azure Web app platform, you can leverage virtual machines to customize and control every aspect of the web server.

Can I build a website on Microsoft Azure?

Azure App Service enables you to build and host web applications in the programming language of your choice without managing infrastructure. Learn how to create a website through the hosted web app platform in Azure App Service.

Can you host a website on a VM?

However, many businesses need greater control of the web server hosting their sites when they move to Azure. Such businesses can leverage Azure virtual machines (VM) to host their websites and web apps.

How do I host a website with Microsoft Azure?

Configure static website hostingOpen the Azure portal in your web browser. Locate your storage account and display the account overview. Select Static website to display the configuration page for static websites. Select Enabled to enable static website hosting for the storage account.


1 Answers

There are a couple of questions

  1. How do I access my web site outside the VM?

If you create a real Virtual Machine, based on Windows Server (I guess, since your site is ASP.NET), then you need to redirect traffic on port 80 to that machine. By default when you create VM only RDP is redirected to your VM, nothing else. You can achieve that in the ENDPOINTS tab of your VM settings:

In your Windows Azure portal: -

  1. Select the VM
  2. Click on ENDPOINTS
  3. Add ENDPOINT
  4. Type some name for the ENDPOINT, put 80 for public and private port

enter image description here


2. I also would like to setup my DNS name.

I would normally use CNAME to point my www.mydomain.com to the myvmname.cloudapp.net, like with normal Cloud Service development.

However, if you really need to just run your ASP.NET website, I strongly recommend to try using the regular Cloud Service approach (with a WebRole) instead.

UPDATE

CNAME: http://en.wikipedia.org/wiki/CNAME_record

I usually add a CNAME record for www.mydomain.com that points to mydeployment.cloudapp.net

You can use it from your domain registrar control panel.

like image 186
3 revs, 2 users 73% Avatar answered Sep 23 '22 20:09

3 revs, 2 users 73%