Question

Difficulty: MediumAzure Virtual Machine Recovery and Restore

An administrator manages an Azure virtual machine named vm-db-02 that runs Ubuntu Server. The virtual machine has one OS disk and one data disk, both configured as managed disks. The virtual machine is backed up daily to a Recovery Services vault named rsv-db-02.

A database configuration error corrupts the OS disk. The data disk contains critical transaction logs written after the last backup was taken, and these logs must be preserved.

You need to restore the virtual machine's OS disk to the state of the last backup while ensuring that the current data on the data disk is not modified or lost.

Which restore option should you select in the Recovery Services vault?

  1. A
    Replace existing
  2. B
    Create new
  3. Restore disksAnswer
  4. D
    File Recovery

Answer

Select the option to restore disks from the Recovery Services vault, then swap the OS disk of the virtual machine.
The correct restore option is to restore disks. This option recovers the VM's disks as templates and VHD files to a storage account. You can then swap the OS disk of the existing VM with the restored OS disk, leaving the current data disk (and the critical transaction logs written after the backup) fully intact and attached to the VM.

Step-by-Step Solution

1
Analyze the recovery requirements and constraints.
The OS disk is corrupted and must be restored to the last backup state, but the current data disk contains post-backup modifications that must be preserved.
Choosing a restore method that recreates or replaces the entire VM (such as replacing the existing VM or creating a new one) would restore the data disk to the backup time, losing all data written after the backup.
2
Select the Restore Disks option in the Recovery Services vault restore blade.
The OS disk file from the backup is restored to a designated Azure Storage account.
Restoring disks allows you to recover individual disk files without altering the active virtual machine configuration or overwriting active disks.
3
Swap the corrupted OS disk with the restored OS disk.
The virtual machine's OS disk is updated to the healthy backup state, while the existing data disk remains attached and unmodified.
This target swap operation repairs the operating system configuration while preserving the critical transaction logs written to the data disk after the backup.

Key Concept

Azure Virtual Machine Restore Options
Rate this question