A common task for a Systems Administrator is to migrate an older server to a newer server. I will list a few that I have done, but essentially all migrations follow these steps:
Spin up a new VM. Call it the same name as the old VM but append a “2” on the end of it.
Copy the data or program to the new VM and ensure it works correctly.
Rename the new original VM after you verified it’s safe to remove. Remove any DNS records or DHCP reservations going to the old VM. Also ensure that all the data off the old VM is safe to be gone e.g. Scheduled Tasks, Data, Local Users, ect.
Rename the new VM to the old VM’s hostname if necessary. DO NOT DO THIS FOR DOMAIN CONTROLLERS (DC’s)!