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: -
How do I access my website outside the VM?
I also would like to setup my DNS name.
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.
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.
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.
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.
There are a couple of questions
- 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: -
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With