Score:-1

How to migrate Azure server including IIS sites with the same name, different DNS

at flag

We currently have a Classic VM whose IP is directed by the DNS subdomains app.mydomain.com and api.mydomain.com. The IIS server has configured the sites app.mydomain.com and api.mydomain.com. Any user in the internet can visit both sites.

The goal is to migrate to another VM, basically creating a replica, creating two DNS subdomains app2.mydomain.com and api2.mydomain.com pointing to the new VM's IP address. As a result, visiting https://app2.mydomain.com should result in the same exact experience but be served from the new VM. Once all is tested, we would just redirect the DNS of app.mydomain.com to the new machine.

This is in theory because the IIS sites in the new VM are still called app.mydomain.com and api.mydomain.com, which will probably conflict with the domain name (app2, api2).

Are there any best practices for migrating VMs this way? There is no database involved (there is, but on a different server)

Lex Li avatar
vn flag
Please learn that "domain names" and "DNS" are different things so you shouldn't wrongly type "DNS" everywhere. I don't see any conflict from your current migration plan, except that by switching records in DNS the traffic will simultaneously land on both VMs for a while due to propagation delay but that's unavoidable. If you have any concern, set up a third VM and migrate app2 and api2 there to test your theory.
Score:1
ng flag

IIS supports multiple host headers, so you can just add your new name to the sites on your old server alongside the existing one. The host headers in IIS have no impact on DNS and the DNS entry for the old name will still point to the old server.

daniel p avatar
at flag
That is exactly the concept I needed. Thanks, Sam.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.