Azure – way to delete an Azure cloud service (web role) and leave a DNS CName record in it’s place

azurecname-recorddomain-name-system

We currently have two cloud services (web roles) running in Azure. They correspond to the version 1 release of our product and the version 2 release. The dns names that got assigned by Azure are something like:

ver1app.cloudapp.net and ver2app.cloudapp.net.

For version 2, we have a proper DNS CNAME record that points to ver2app.cloudapp.net. All new customers are using the custom domain name and getting to ver2app.

Unfortunately, we have legacy users in the field that are hardcoded to the url ver1app.cloudapp.net. This is a custom IOT type device that doesn't follow http redirects so I can't do something simple like Url Rewrite.

My goal is to completely retire the ver1app so I don't have to keep maintaining it. I think a clean solution to our problem would be if we could delete ver1app.cloudapp.net but leave a CNAME that pointed to ver2app.cloudapp.net. I don't see a way to do this with Microsoft owning the cloudapp.net domain. Is there a way? Is there a different way to accomplish this that I haven't thought of?

Best Answer

Would an IIS rewrite rule help? This link talks about CDN but it shows rewrites. You might ask on SO if you need help with the rewrite rule. See also http://weblogs.asp.net/owscott/rewrite-vs-redirect-what-s-the-difference

Related Topic