How to restore Azure VM in offline mode

DistinctMediocrity 1 Reputation point
2021-01-12T22:52:12.523+00:00

I'm using Azure Recovery Services Vault to backup a VM nightly. I need to restore one of the backups to a "new vm" to test recovery process. Last time I attempted to do this, when the restore was completed it powered on the VM with the same computer name in AD as the existing VM and hijacked the DNS.

How can I restore the backup to a new VM and change the computer name before it powers on and hijacks the DNS? Something similar to restore a backup in vmware, you just restore it "offline" and console in and update any settings that will conflict.

Azure Backup
Azure Backup
An Azure backup service that provides built-in management at scale.
1,496 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Andreas Baumgarten 123.6K Reputation points MVP Volunteer Moderator
    2021-01-12T23:18:42.267+00:00

    Restoring a VM in Azure with renaming the computer name (inside OS) isn't possible as far as I know.

    But for testing the restore process it's possible to use a different Vnet which is should not be peered with the "productive" Vnet.
    This way the restored VM will not hijack the DNS record.
    Maybe this helps: https://learn.microsoft.com/en-us/azure/backup/backup-azure-arm-restore-vms#create-a-vm

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten

    0 comments No comments

  2. SadiqhAhmed-MSFT 49,331 Reputation points Microsoft Employee Moderator
    2021-01-13T09:31:47.307+00:00

    Hello @DistinctMediocrity
    Welcome to Microsoft Q&A community platform.

    Regarding your question: We usually recommend to restore to an ‘offline’ VNET which can’t reach the production VNET, DNS, & AD. This way the restored VM can be brought online without conflicts. If you need the VM to be domain connected for testing, you could rename it in the ‘offline’ network and then move it over to the production network.

    ----------------------------------------------------------------------------------------------------------------------

    If the response helped, do "Accept Answer" and up-vote it


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.