How to Use a Custom Domain Name with an Azure Website

You’ve created an Azure website (or maybe a few):

azure-websites

and now you want to use one of your own custom domain names instead of the one supplied by Azure (<name>.azurewebsites.net). How do you go about doing this?

First thing you need to do is to switch to Shared Web Hosting if  you’re not already on it.  I started out on the Free plan, so I had to switch!  Select the website you want to convert to a custom domain name:

azure-website-home

Choose SCALE from the menu and you’ll see this:

azuzre-scale

Select SHARED and finally SAVE:

azure-scale-shared

Azure will double check to make sure you want to switch from Free to Shared.  Choose YES:

azure-scale-verify

Choose CONFIGURE:

azure-get-ip

Scroll down to domain names and select manage domains:

azure-manage-domains

Make a note of the IP address:

azure-custom-note-ip

 

Now you’ll need to go to your domain name host (mine is Namecheap.com) and find out where the host records are located.  For Namecheap, they are called “All Host Records”:

namecheap-all-host-records

You will need to configure the following information for the host records:

namecheap-add-host-records

Save your changes and wait for the new host records to be propagated throughout the internet.  This can take a while, but should be no more than 24 hours.

Go back to Azure and enter in your custom domain name and as long as everything works out, you should now be able to go to your custom domain!

azure-add-domain-name

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">