Introduction

This article will help you in configuring a custom domain name for a website you have on Microsoft Azure.


Prerequisites

 First of all lets talk about prerequisites for this brief tutorial.

  • Domain from any domain provider
  • Microsoft Azure subscription (Not free one)
  • Access to both portals.

Configuring Azure Website

So, you are ready now for configuration of your custom domain. First of all open Microsoft Azure portal when you have deployed your web. 

Click on your website in tab "Websites", now click on "Scale" and check the option of "Shared" there.

now, go to your "dashboard" option after saving it.

hopefully you would be able to see option for managing the domain.


Managing Domain

 

Before you manage your domains go to your portal. Login there and open your domain manager.

click on "Edit Zone" in case of Godaddy.com , else find option where you can add CNAMEs and manage A Records.

Wow, here you see portal opened now you got to do do few things.

1) Go to your Microsoft Azure "dashboard" and click on manage domains. 2) At bottom you will find an IP the would be shared for managing A RECORD. 3) Copy that IP 4) Open your domain portal. 5) Add a A Record "@" and point it to the IP you have copied. and click on "save zone".

Great, so you are ready to do more. For pointing the traffic you need to add few CNAMES that are 2 for a web that is deployed on Microsoft Azure.

1) Find option for adding CNAME records. 2) Add a new CNAME "

   awverify.<domain> [pointing ] awverify.<website name>.azurewebsites.net

3) Add another CNAME 

  awverify.www.<domain> [pointing ] awverify.<website name>.azurewebsites.net

4) You will have to point your www CNAME record to "@".

5) Save the zone file. You will have such result.


Checking CNAME Propagation

To check that either you  CNAME records are properly propagated I would suggest you a link where you can check this.

http://www.digwebinterface.com/

In above diagram you see that , awverify points to awverify.mydomain. (CNAME)

check for both,

   1) awverify.www.<domain>     2) awverify.<domain>


Adding your Custom Domain

When you are done, go back to Microsoft Azure portal, Dashboard --->  Manage Domains 

add your domain name there , you will find screen as follow,

You will see a green check, that notify that your domain is valid to be attached here.

Click on big check, and you are done. So, this was an easy and simpler way to configure a custom domain name for a website deployed on Microsoft Azure. Hope you enjoyed it.


Note

You may find a red sign instead of a green checkbox, that would happen if there is something wrong at CNAME or A records of CNAMEs haven't properly propagated.