Azure Storage Encryption

This document provides a comprehensive overview of how Azure Storage encrypts your data at rest and in transit.

Key Takeaway: Azure Storage automatically encrypts all data stored in Azure Storage accounts. You can configure additional encryption settings to meet specific compliance and security requirements.

Data Encryption at Rest

Azure Storage automatically encrypts all data written to its services, including blobs, files, queues, and tables. This encryption is done using AES-256, one of the strongest block ciphers available. This means your data is encrypted by default without any action required from you.

Storage Service Encryption (SSE)

Storage Service Encryption (SSE) is the primary mechanism for encrypting data at rest in Azure Storage. It has two main flavors:

Encryption Scope

Data is encrypted at the storage account level. This means all data within a storage account, regardless of the service (blobs, files, queues, tables), is protected by SSE.

Data Encryption in Transit

Azure Storage also encrypts data while it's in transit over the public internet. This is typically achieved using:

Enabling Encryption

Storage Service Encryption (SSE)

As mentioned, SSE with Microsoft-Managed Keys is enabled by default for all new and existing storage accounts. You do not need to take any action to enable it.

To enable SSE with Customer-Managed Keys:

  1. Create or select an existing Azure Key Vault.
  2. Create or import your encryption key into Key Vault.
  3. Configure your storage account to use the key from Key Vault.

You can manage these settings via the Azure portal, Azure PowerShell, or Azure CLI.

Enforcing Encryption in Transit

You can enforce the use of HTTPS for all requests to your storage account. This setting is available in the storage account's configuration.


# Example using Azure CLI to enforce HTTPS
az storage account update --name  --resource-group  --https-only true
            

Key Management

Microsoft-Managed Keys

When using SSE-MMK, Microsoft handles the entire lifecycle of the encryption keys, including generation, storage, rotation, and deletion. This provides a seamless and secure experience.

Customer-Managed Keys

With SSE-CMK, you are responsible for:

This offers greater control and transparency over your encryption keys, which is often required for regulatory compliance.

Compliance and Security

Azure Storage encryption helps you meet various compliance requirements, including:

By encrypting data at rest and in transit, you reduce the risk of unauthorized access and data breaches.

Next Steps