Pointing domain names to an Azure web app

This weekend I finally got round to moving my websites on to Azure, that was super easy (thanks to FTP, yay!). But then I had to set up my domains to point to the azure web apps – which I guess was also pretty easy. Until I realised lilstech.com didn’t work, but www.lilstech.com worked.

Well it’s not like anyone uses ‘www.’ anymore, which is crazy now that I think about it; but I still want my website to be accessible to both… user groups? (#wwwWars)

So I figured it out! Maybe I’m just bad at this, but I now know how to make sure I’m referencing both example.com and www.example.com to my Azure web app; so here’s how I did it, in case you have this problem too 🙂


Edit the CNAME ‘www‘ and make it point to ‘youazurewebsite.azurewebsites.net

NB: the CNAME for www should already exist, if it doesn’t – make one


Add a new CNAME ‘awverify.www.yourdomain.com‘ and point it to ‘awverify.youazurewebsite.azurewebsites.net

Okay so that should sort out the www.yoursite.com part, then to get the yoursite.com part working…


Edit the A record for ‘@‘ and point it at your web apps IP address *


The last step is to add both versions of your domain URLs to Azure *:


This is found in the ‘Your Web App -> Configure -> Domain names -> Manage Domains’ part of the azure portal