Azure VM restore from the azure backup if patches failed

Azure-learning 56 Reputation points
2022-11-09T05:47:10.017+00:00

I wanted to know what is the recommeneded way to restore a VM if any patches that we apply using update management failed and machine goes to stopped state or faced any issue.

We have recovery point from recovery service vault by azure backup.

is it recommended to replace just disk while restoring the vm or creating an new vm or replacing existing vm .

in realtime which option needs to be performed . I am aware that it is based on requirement but out these restoring option what is suggested one when any issue comes while patching in windows or linux vm.

and while restoring what all things will be preserved or what we need to generate again.(like user id, password, dns mapping , IP address attached )

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

1 answer

Sort by: Most helpful
  1. Luke Murray 10,526 Reputation points MVP
    2022-11-09T05:51:59.46+00:00

    If you have tried to deallocate the VM and start it back up, and the VM still isn't started, short of troubleshooting the VM remotely - the best thing would be to do a Replace existing

    https://learn.microsoft.com/en-us/azure/backup/backup-azure-arm-restore-vms?WT.mc_id=AZ-MVP-5004796#replace-existing-disks

    "You can restore a disk, and use it to replace a disk on the existing VM.

    The current VM must exist. If it's been deleted, this option can't be used.

    Azure Backup takes a snapshot of the existing VM before replacing the disk, and stores it in the staging location you specify. Existing disks connected to the VM are replaced with the selected restore point.

    The snapshot is copied to the vault, and retained in accordance with the retention policy.

    After the replace disk operation, the original disk is retained in the resource group. You can choose to manually delete the original disks if they aren't needed."

    You can restore the OS disk, the rest of the Azure resources will be untouched so you can start the VM per normal.

    • (like user id, password, dns mapping , IP address attached ) - will remain untouched, as they were in the state when the Backup ran.