Key Vault Access for DB Encryption

Chun Hanssen 135 Reputation points
2025-11-12T03:28:44.66+00:00

Was trying to perform encryption in Always Encrypted for Azure SQL DB in SSMS but it failed during the generation of new column master key:

User's image

Which Principal should I grant the key vault access to?

User's image

SQL Server | Other
0 comments No comments
{count} votes

Answer accepted by question author
  1. Akhil Gajavelly 875 Reputation points Microsoft External Staff Moderator
    2025-11-12T06:15:04.09+00:00

    Hi @Chun Hanssen ,

    Grant Key Vault access to your Azure SQL Server’s managed identity (not your user account).

    Go to Azure SQL Server → Identity → System-assigned, copy the Object ID → then in Key Vault → Access policies → Add access policy, add that principal and give get, wrapKey, unwrapKey, sign permissions.

    Thanks,
    Akhil.


0 additional answers

Sort by: Most helpful

Your answer

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