Error saving passphrase to Azure key vault for DPM 2025

Michael 71 Reputation points
2025-01-16T15:42:10.97+00:00

When attempting to add the passphrase to an Azure Key Vault, the error "Managed Identity is not configured for the Recovery Services Vault" is issued. I followed the instructions listed here for RBAC https://learn.microsoft.com/en-us/azure/backup/save-backup-passphrase-securely-in-azure-key-vault?tabs=azure-portal. The Status in the System assigned page of the Identity of the RSV is set to On. If I view the "Azure role assignments" on the page, the Key Vault is listed with the role of "Key Vault Secrets Officer".

What could cause this error as I've seemed to follow all the steps those in the troubleshooting section? Thanks.

Azure Backup
Azure Backup
An Azure backup service that provides built-in management at scale.
1,348 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pranay Reddy Madireddy 1,575 Reputation points Microsoft Vendor
    2025-01-17T10:12:53.3666667+00:00

    Hi Michael
    I have successfully replicated the issue. It appears that the problem may be related to the managed identity scope and the permissions you've configured. The attached screenshot outlines the step-by-step procedure I implemented in my test environment, where the issue was reproducible but was functioning correctly

    Please double-check the configuration and follow the steps below to resolve the issue
    Navigate to your Recovery Services vault in the Azure portal.

    1. In the left-hand menu, select Identity under the Settings section.
    2. Turn on the System assigned managed identity and click Save.

    Note down the Object ID of the managed identity
    User's image

    https://learn.microsoft.com/en-us/azure/backup/save-backup-passphrase-securely-in-azure-key-vault?tabs=azure-portal#enable-permissions-using-role-based-access-permission-model-for-key-vault
    User's image

    User's image

    User's image

    User's image

    User's image

    User's image

    User's image

    User's image

    User's image

    https://learn.microsoft.com/en-us/azure/backup/install-mars-agent#install-and-register-the-agent
    User's image

    User's image

    Note: The RG of Recovery service vault and the RG of key vault is in different not the name in the lab I tested
    If you have any further queries, do let us know.


    If the answer is helpful, please and "Upvote it".

    1 person found this answer 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.