Issue with Policy Enforcement on Storage Account Encryption

Daniel Omonemu 20 Reputation points
2025-04-21T22:43:20.0733333+00:00

User's image

hello!
I have an issue with the policy titled "Storage account encryption scopes should use customer-managed keys to encrypt data at rest" that I have enabled with "DENY" effect on my management group scope. Despite this policy being enabled, I am still able to create storage accounts that use Microsoft-managed keys for encryption at rest.

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
996 questions
0 comments No comments
{count} votes

Accepted answer
  1. Silvia Wibowo 5,871 Reputation points Microsoft Employee Moderator
    2025-04-22T05:32:58.77+00:00

    Hi @Daniel Omonemu , I understand you have enabled built-in Azure Policy "Storage account encryption scopes should use customer-managed keys to encrypt data at rest" with "Deny" effect. You question why storage accounts can still use MMK (Microsoft-Managed Key).

    Storage account encryption scopes need to be created for your storage account. It is different from the key that is scoped to the entire storage account. When you define an encryption scope, you specify a key that may be scoped to a container or an individual blob. When the encryption scope is applied to a blob, the blob is encrypted with that key.

    It's possible to have storage account with MMK as the key for the entire storage account, and then you define an encryption scope using CMK (Customer-Managed Key). The policy only enforces the CMK for encryption scope. It does not enforce CMK for the entire storage account.

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

    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.