Quantcast
Viewing all articles
Browse latest Browse all 370

Azure Backup – Recover VM from Crash/ Accidental delete

Backup plays a crucial role in infrastructure management. Backup could be anything like flat files, Operating system files, database files and application files, etc. Backup also needs to be consistent to recovery the respective object failures. This article will walk you through how to recover Azure VM (Windows/Linux) from failure or accidental VM delete. VM should be protected in azure native backup for recovery.

Crashed VM !!!

Image may be NSFW.
Clik here to view.
VM crashed - Need to recover - Azure
VM crashed – Need to recover – Azure

Crashed VM is Protected ! Let’s restore it!!!

1. UAvm1 is crashed and not booting. Navigate to backup tab and click on Restore VM button.

Image may be NSFW.
Clik here to view.
UAvm1 is protected by Azure native backup
UAvm1 is protected by Azure native backup

2. It starts the wizard and prompts to select the restore point. Click on “Select”

Image may be NSFW.
Clik here to view.
Select restore point - Virtual machine
Select restore point – Virtual machine

3. Select any one of the listed recovery point. Restore point should be created prior to the VM crash.

Image may be NSFW.
Clik here to view.
Select the restore point - from Period
Select the restore point – from Period

4. Restore the VM by replacing existing VM disks. These options only work if the VM is exited in the portal. You must provide additional storage account for staging purpose.

Image may be NSFW.
Clik here to view.
Replacing existing VM disks
Replacing existing VM disks

5. Follow the azure notifications. Once the job is triggered click on the job link.

Image may be NSFW.
Clik here to view.
Azure Notifications
Azure Notifications

6. If you followed the job link, you will get the screen below. You could see that even the backup job triggered. Azure Backup takes a snapshot of the existing VM before replacing the disk and stores it in the staging location which you specified.

Image may be NSFW.
Clik here to view.
Restore Job in progress - Azure VM
Restore Job in progress – Azure VM

7. Here is the sub tasks for the restore.

Image may be NSFW.
Clik here to view.
Restore Job in progress - Sub Tasks
Restore Job in progress – Sub Tasks

8. Once the restore job is completed, you are good to start the VM. Backup job might take some and we no need to wait for that.

Image may be NSFW.
Clik here to view.
Restore Job Completed - Azure VM
Restore Job Completed – Azure VM

9. Go ahead and start the VM.

CentOS Linux 7 (Core)
Kernel 3.10.0-862.11.6.el7.x86_64 on an x86_64
myvm login: azureuser
Password:
Last login: Mon Jun 1 07:47:10 on ttyS0
[azureuser@myvm ~]$ date
Mon Jun 1 10:43:04 UTC 2020
[azureuser@myvm ~]$ uptime
10:43:06 up 3:02, 1 user, load average: 0.14, 0.06, 0.06
[azureuser@myvm ~]$

If VM deleted by mistake? How to recover?

1.The following image shows that VM and all the a VM OS disk has been deleted.

Image may be NSFW.
Clik here to view.
VM deleted
VM deleted

2. Navigate to recover service vaults and select the backup items.

Image may be NSFW.
Clik here to view.
Recovery Services Vaults
Recovery Services Vaults

3. Select Azure virtual machine tab.

Image may be NSFW.
Clik here to view.
Azure Virtual Machines - Backup item
Azure Virtual Machines – Backup item

4. Here is the only difference when you compare with overwriting the existing VM disk. (Refer step: 4 – Scroll up and check it )

Image may be NSFW.
Clik here to view.
Restore virtual machine - by Creating new VM
Restore virtual machine – by Creating new VM

5. Rest of restore follows same as previous restore.

Hope this article in informative to you.

The post Azure Backup – Recover VM from Crash/ Accidental delete appeared first on UnixArena.


Viewing all articles
Browse latest Browse all 370

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>