Setting Up Domain on Azure

I recently just setup this blog on Microsoft Azure. Getting Ghost (my blog) engine up and running was the easy part. To get setup there was a template from the gallery. Yes, Ok, Yes, I agree and we're rolling.

I'm still working on how to get Ghost upgraded to the newest version (I'll write another post once I figure that part out).

Setup WebSite in Azure

To setup a domain you first need to create the website in azure and get it running.

To use custom domains, choose a "web hosting plan mode" of "Shared" or higher. Custom domains cannot be used in the free offering.

Configure DNS

DNS or Domain Name System is what relates a website address to an IP Address.

The Domain Name System (DNS) is a hierarchical distributed naming system for computers, services, or any resource connected to the Internet or a private network. It associates information from domain names with each of the assigned entities. Most prominently, it translates easily memorized domain names to the numerical IP addresses needed for locating computer services and devices worldwide. --wikipedia

Azure wants to authorize that you own the domain. To do that Azure says:

...create a CNAME resource record with your DNS provider that points from either www.yourdomain.com to stevesloka.azurewebsites.net, or from awverify.www.yourdomain.com to awverify.stevesloka.azurewebsites.net.

Ok cool so I go out and setup my A Records and CNAMEs BUT, there's a problem. According to the spec, you cannot create CName's for "naked" domains which makes sense.

The trick is that Azure wants to handle the IP's internally, so we basically just point our site to the azure DNS name (e.g. stevesloka.azurewebsites.net) and we're good to go.

Also, make sure you set your A Records to "none". This was the magic that make everything work.

Welcome to Ghost

I'm live! Nice.