An administrator manages an Azure virtual machine named `VM-Finance01` that is backed up to a Recovery Services vault named `RSV-Prod`. Due to an application failure, the administrator needs to recover the virtual machine by restoring its managed disks. The administrator plans to restore the disks to an existing storage account named `safinancetarget`. The firewalls and virtual networks settings for `safinancetarget` are configured to restrict access to 'Enabled from selected networks and IP addresses'. When the administrator attempts to run the restore operation, the job fails with a permission error. Which combination of configurations is required to ensure that `RSV-Prod` can successfully restore the managed disks to `safinancetarget`?
- AConfigure the storage account firewall to allow access from the public IP address of the Recovery Services vault, and assign the Reader role to the vault's managed identity on the storage account.
- BUse the 'Replace existing' VM restore option to restore the disks directly to the original virtual machine, which bypasses the need for a destination storage account and avoids firewall checks.
- Enable the system-assigned managed identity of the Recovery Services vault, assign it the Storage Blob Data Contributor role on the storage account, and configure the storage account firewall to allow trusted Microsoft services.Answer
- DCreate a private endpoint for the Recovery Services vault in the virtual network of the storage account, and assign the Owner role to the virtual machine's system-assigned managed identity on the storage account.
Answer
Enable the system-assigned managed identity of the Recovery Services vault, assign it the Storage Blob Data Contributor role on the storage account, and configure the storage account firewall to allow trusted Microsoft services.
To restore managed disks from a Recovery Services vault to a firewalled storage account, the Azure Backup service must be able to write to the storage account. This requires enabling a managed identity on the vault, assigning it the Storage Blob Data Contributor role on the target storage account, and allowing trusted Microsoft services to bypass the storage account firewall.
Step-by-Step Solution
Key Concept
Restoring managed disks to a firewall-enabled storage account using the Recovery Services vault managed identity and trusted service bypass.