Azure CloudHaving spent two days trying to set up a custom URL for my Azure website, I'm sharing the configuration settings that worked for me. The existing documentation for this is seriously lacking when it comes to setting up CNAME and A record entries in our DNS admin.

After following the Microsoft documentation, I finally had my root URL working but got 404 error when trying to access my site using "www". Here's how I fixed that...

Assuming an Azure Website name is myazurewebsite and custom DNS is I have one A record:

1) Host IP: (IP taken from domain management in Azure Website)

And two CNAME records:

1) points to
2) points to

Then I have Azure Website configured with two domain names: