This blog post shows, how to restore Azure VM data from the recovery points stored in Azure Backup Recovery Services vaults.
Azure Backup provides a number of ways to restore a VM.
|Create a new VM||Quickly creates and gets a basic VM up and running from a restore point.
You can specify a name for the VM, select the resource group and virtual network (VNet) in which it will be placed, and specify a storage type.
|Restore disk||Restores a VM disk which can then be used to create a new VM.
Azure Backup provides a template to help you customize and create a VM.
This option copies VHDs to the storage account you specify. The restore job generates a template that you can download and use to specify custom VM settings, and create a VM.
– The storage account should be in the same location as the vault. Create a storage account if you don’t have one.
The storage account replication type is displayed. Zone redundant storage (ZRS) isn’t supported.
Alternatively, you can attach the disk to an existing VM, or create a new VM using PowerShell.
This option is useful if you want to customize the VM, add configuration settings that weren’t there at the time of backup, or add settings that must be configured using the template or PowerShell.
|Replace existing||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. The snapshot is stored in the staging location you specify. Existing disks connected to the VM are then replaced using the selected restore point. The snapshot that was taken is copied to the vault and retained in accordance with your specified retention policy.
Replace existing is supported for unencrypted managed VMs. It’s not supported for unmanaged disks, generalized VMs, or for VMs created using custom images.
If the restore point has more or less disks than the current VM, then the number of disks in the restore point will only reflect the VM configuration.
Log in to Azure
Log in to the Azure portal at https://portal.azure.com.
Click All services and in the Filter, type Recovery Services Vault, and then click Recovery Services Vault.
Select a restore point
In the vault associated with the VM you want to restore, click Backup items > Azure Virtual Machine.
Click a VM. By default, on the VM dashboard, recovery points from the last 30 days are displayed. You can display recovery points older than 30 days, or filter to find recovery points based on dates, time ranges, and different types of snapshot consistency.
To restore the VM, click Restore VM.
Select a restore point to use for the recovery.
Choose a VM restore configuration
In Restore configuration, select a restore option:
- Create new. Use this option if you want to create a new VM. You can create a VM with simple settings, or restore a disk and create a customized VM.
- Replace existing: Use this option if you want to replace disks on an existing VM.
Specify settings for your selected restore option.
Create new-Create a VM
As one of the restore options, you can create a VM quickly with basic settings from a restore point.
- In Restore configuration > Create new > Restore Type, select Create a virtual machine.
- In Virtual machine name, specify a VM which doesn’t exist in the subscription.
- In Resource group, select an existing resource group for the new VM, or create a new one with a globally unique name. If you assign a name that already exists, Azure assigns the group the same name as the VM.
- In Virtual network, select the VNet in which the VM will be placed. All VNets associated with the subscription are displayed. Select the subnet. The first subnet is selected by default.
- In Storage Location, specify the storage type for the VM.
- In Restore configuration, select OK
In Restore, click Restore to trigger the restore operation.
In Restore configuration, select OK. In Restore, click Restore to trigger the restore operation.