Not able to fetch key when creating disk encryption set

sns 9,246 Reputation points
2022-12-29T08:29:38.347+00:00

I have created azure key vault and then keys and added respective access policy resources and provided the access for that.
But keys I have crated is not showing up in the list when tried to disk encryption set. Please find below screenshots. Please suggest.

274737-image.png

274660-image.png

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,448 questions
0 comments No comments
{count} votes

Accepted answer
  1. JamesTran-MSFT 36,906 Reputation points Microsoft Employee Moderator
    2022-12-29T22:19:08.977+00:00

    @sns
    Thank you for your post!

    Error Message:
    Caller needs data action: 'Microsoft.KeyVault/vaults/keys/read' to perform action on resource: ....... /vaults/DataDiskKeyVault. For more information, please see: https://learn.microsoft.com/en-us/azure/key-vault/general/rbac-guide

    Since I wasn't able to reproduce your issue, and from your error message it looks like your Key Vault is using the Azure RBAC permissions model to grant user's access. You mentioned assigning the respective access policies within your initial post, but can you make sure that you have the correct RBAC (IAM) role, so you can use your Azure key vault with your disk encryption set.

    Add an Azure RBAC role
    Note: You'll need to add a Key Vault role with the "/keys/read" operation. For more info - Access policy templates to Azure roles mapping.

    1. From your Key Vault - DataDiskKeyVault, select Access Control (IAM).
    2. Select Role Assignments, ensure that your user has the correct role assigned.
    3. If not, select Add, Add Role Assignment.
    4. Search for Key Vault and select the appropriate role.

    274983-image.png

    If you want to use the Key Vault Access Policies, instead of Azure RBAC for your Key Vault, you can change your Access Configurations and assign your user the correct access policies.
    274889-image.png

    I hope this helps!

    If you have any other questions, please let me know.
    Thank you for your time and patience throughout this issue.

    ----------

    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.


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.