Add a Custom Domain to Azure Website

1. In Azure Portal > webapp > Custom Domains > Add hostname

2. Copy the External IP Address for use in DNS Provider later.

3. After entering the new Hostname > Validate > Note that in the Domain Verification area, Domain ownership shows an error, requiring that ‘A’ records and TXT records need to be added for the new Hostname. This needs to be done in the DNS provider for the domain.

4. In DNS provider ( We’re using EasyDNS.com in this example) > Domain > Edit ‘A’ Records

i. For a website with the root name of the custom domain: i.e. alvarnet.com or www.alvarnet.com

In DNS Provider, change the IP address of the @, *, and www ‘A’ Records to the new IP address provided by new Azure Web App (saved from step 2 above).

ii. For a website with a different name other than the root, add a CName record for the new website Alvarnet domain name to point to http://{sitename.alvarnet.com}.azurewebsites.net

5. Azure portal > webapp > Custom Domains > Hostname > add Hostname > Validate again — successful > Add hostname

With selecting ‘Add hostname’ after the successful validation, the new custom domain will be added to the list of “ Hostnames Assigned to Site “. Repeat process above to add ‘www.alvarnet.com' hostname.

8. Test connections to new custom domain sites.

Further Reading:

Map a custom domain name to an Azure app

Step-By-Step: Enabling Custom Domain Names in Azure via PowerShell

Originally published at https://arlanblogs.alvarnet.com on Oct 18, 2016.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store