Problem: Azure Backup with Disk Encryption and Key Vault Permissions (RBAC)

Maxime Callebaut 20 Reputation points
2024-12-27T13:24:36.29+00:00

I’m trying to back up a virtual machine with disk encryption (both OS and data disks) using Recovery Services Vault in Azure. The key used for disk encryption is stored in Azure Key Vault, and I'm using RBAC (Role-Based Access Control) for access management instead of Access Policies.

Steps Taken:

  • I’ve enabled the Managed Identity for the Recovery Services Vault. User's image
  • I’ve assigned the Managed Identity the following roles on the Key Vault (Key Vault Crypto User, Key Vault Reader) User's image

Despite this, I'm still encountering the following error when attempting to back up the VM:

"Azure Backup Service does not have sufficient permissions to Key Vault for Backup of Encrypted Virtual Machines."

What I’ve Tried:

  • I’ve ensured the Key Vault is correctly configured with RBAC.
  • I’ve verified that the Recovery Services Vault’s Managed Identity has the correct roles assigned.
  • I have checked that both the OS and data disks of the virtual machine are encrypted using Azure Disk Encryption.

User's image

Question:

What additional permissions or steps are required to ensure that Azure Backup has sufficient access to the Key Vault for backing up encrypted virtual machines? Are there other specific roles or key permissions that need to be granted?

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,350 questions
Azure Backup
Azure Backup
An Azure backup service that provides built-in management at scale.
1,334 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,219 questions
Azure Role-based access control
Azure Role-based access control
An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.
858 questions
{count} votes

Accepted answer
  1. Silvia Wibowo 4,846 Reputation points Microsoft Employee
    2024-12-30T00:51:20.4066667+00:00

    Hi @Maxime Callebaut , I understand that you've assigned RBAC roles to your Recovery Services Vault but your backup job still failed.

    Managed Identity of Recovery Services Vault needs to have appropriate RBAC roles for Azure Key Vault used to encrypt the data at the backup process. You mentioned that you've done this step.

    Additionally, as the VM is using ADE (Azure Disk Encryption), you need to assign Key Vault Administrator role to the Backup Management Service Microsoft Entra app. Please follow this guide: Back up ADE encrypted VMs with RBAC enabled key vaults.

    Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.