Configure a custom domain name in Azure App Service via A Record

To point your custom web domain name (in my case, to Azure websites (Web Apps) using A record, there are a few steps that you'll need to follow precisely, both from your domain registrar (in my case, and within the Azure Portal itself. This article describes the steps clearly:

However, one thing rather confusing over here, is that the configuration didn't work exactly as it described. I'm using to continue where the article left off, for illustration purpose:

HostRecord TypeIP Address or URLBehavior
@A (address) for browsing the site via ""
wwwCNAME (alias)contoso.azurewebsites.netbrowsing the site via "" will actually display "Error 404 - Web app not found." error from Microsoft Azure
awverifyCNAME (alias)awverify.contoso.azurewebsites.netThis is the additional requirement from Azure Web Apps, as explained in the original article. 
To make the "" actually points to a working Web Apps site, we'll actually need to add another CNAME alias, as follows:

HostRecord TypeIP Address or URL
awverify.wwwCNAME (alias)
Then go back to the Azure Portal > {your web app} > Settings > Custom domains and SSL > Bring External Domains > Add "" under Domain names. You should now notice 2 host names assigned to your site in the "Custom domains and SSL" tab: "" and "".

23. December 2015
Technology (0)

Add comment