Code snippets etc

Custom domain names and multiple Azure web apps

We recently re-built this website to run Umbraco and the articulate blog. Our original website was basic MVC. Now we have the best of both worlds - custom data-driven pages and a CMS replete with blog.

Both the old and new sites are hosted on Azure. Decomissioning the old and activating the new was not as straightforward as you might imagine. Turns out there's a trick to re-pointing your domain name to a second Azure web app. It's not enough to simply edit the DNS records with your provider to point at the new azure web app. You also have have to disassociate the old azure web app from the custom domain: azure portal / web app / settings / custom domains. Then you'll be able to repeat with the second azure web app.

by Ian Osborn