Problem with configuring CMK encryption of a storage Account with a user-assigned identity

new User 20 Reputation points
2023-05-07T20:27:27.74+00:00

Hi,

I have an issue with the creation of an encrypted storage account using a CMK and a user-assigned identity. the steps that I have done are:

  • create an azure key vault
  • create a key
  • create a user-assigned managed identity
  • add a role assignement to the key vault, to allow the managed identity to read the keys of the key vault
  • configure the storage account encryption tab by indicating that the encryption is customer-managed Key, tke created key vault, the key and the managed identity.

and I get this Error Message.

any help??

the last one is this:Screenshot 2023-05-07 at 20.03.35

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
Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,529 questions
Microsoft Security Microsoft Identity Manager
0 comments No comments
{count} votes

Accepted answer
  1. Akshay-MSFT 17,951 Reputation points Microsoft Employee Moderator
    2023-05-10T06:32:44.3133333+00:00

    @new User ,

    Thank you for posting your query on Microsoft Q&A, from above error ""The operation failed because of authentication issue on Key Vault" seems like we need to validate the following:

    • You must create the user-assigned identity before you configure customer-managed keys.
    • The user-assigned managed identity must have permissions to access the key in the key vault. Assign the Key Vault Crypto Service Encryption User role to the user-assigned managed identity with key vault scope to grant these permissions.
    • Firewall setting of the Key Vault.

    Please do let me know if above conditions validated or if you have any queries in the comments section.

    Thanks,

    Akshay Kaushik

    Please "Accept the answer" (Yes), and share your feedback if the suggestion answers you’re your query. This will help us and others in the community as well.


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.