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)