PurviewDeep dive

Microsoft Purview encryption compared: Azure RMS, DKE, Customer Key and Message Encryption

What Azure Rights Management, BYOK, Double Key Encryption, Customer Key and Message Encryption each protect, how they work with labels, and what they mean for eDiscovery and Copilot.

Microsoft Purview gives you several kinds of encryption, and they solve different problems: some protect data at rest in Microsoft's datacenters, others travel with a document or email wherever it goes. In this post I'll compare Azure Rights Management (with Microsoft-managed keys or BYOK), Double Key Encryption, Customer Key and Message Encryption: what each protects, how each works with labels, what each means for eDiscovery and Copilot, and the operational cost.

How this guide is organized: How it works → The options side by side → How each option works with sensitivity labels → What each option means for eDiscovery and Copilot → Step-by-step → Verify → Tips & gotchasFlow diagram of the article's sections in reading order: 1. How it works. 2. The options side by side. 3. How each option works with sensitivity labels (4 parts: Azure Rights Management and BYOK; Double Key Encryption; Customer Key; Message Encryption). 4. What each option means for eDiscovery and Copilot. 5. Step-by-step. 6. Verify. 7. Tips & gotchas.1How it works2The options side byside3How each optionworks with sensitiv…4What each optionmeans for eDiscove…Azure RightsManagement and BYOKDouble Key EncryptionCustomer KeyMessage Encryption5Step-by-step6Verify7Tips & gotchasHow this guide is organized: How it works → The options side by side → How each option works with sensitivity labels → What each option means for eDiscovery and Copilot → Step-by-step → Verify → Tips & gotchasFlow diagram of the article's sections in reading order: 1. How it works. 2. The options side by side. 3. How each option works with sensitivity labels (4 parts: Azure Rights Management and BYOK; Double Key Encryption; Customer Key; Message Encryption). 4. What each option means for eDiscovery and Copilot. 5. Step-by-step. 6. Verify. 7. Tips & gotchas.1How it works2The options side by side3How each option works with sensitivity labelsAzure Rights Management and BYOKDouble Key EncryptionCustomer KeyMessage Encryption4What each option means for eDiscovery andCopilot5Step-by-step6Verify7Tips & gotchas
At a glance: how this guide is organized · 4 steps

How it works: two layers of encryption#

Who holds the key for each Microsoft 365 encryption optionHeld by Microsoft: Service encryption, Azure Rights Management. What is protected: Data at rest in Microsoft 365, Files and emails, The most sensitive items. Held by you: Customer Key root keys, BYOK tenant key, DKE service you host. Connections: 1. Service encryption → Data at rest in Microsoft 365: Encrypts all data at rest. 2. Azure Rights Management → Files and emails: Used by sensitivity labels and Message Encryption. 3. Azure Rights Management → The most sensitive items: One of the two keys, in Azure. 4. Customer Key root keys → Data at rest in Microsoft 365: Adds an application-level layer. 5. BYOK tenant key → Files and emails: Your own tenant key; users see no difference. 6. DKE service you host → The most sensitive items: Second key; Microsoft 365 services can't read it.HELD BY MICROSOFTService encryptionBitLocker and DKM, alwaysonAzure RightsManagementMicrosoft-managed tenantkey by defaultWHAT IS PROTECTEDData at rest inMicrosoft 365Anyone with access canstill read itFiles and emailsUsage rights travel witheach itemThe most sensitiveitemsDesktop apps only, nocoauthoringHELD BY YOUCustomer Key rootkeysPlus an availability keyMicrosoft protectsBYOK tenant keyCreated and managed inAzure Key VaultDKE service you hostA business-critical serviceyou run123456CONNECTIONS1Service encryption → Data at rest in Microsoft 365: Encrypts all data at rest2Azure Rights Management → Files and emails: Used by sensitivity labels and Message Encryption3Azure Rights Management → The most sensitive items: One of the two keys, in Azure4Customer Key root keys → Data at rest in Microsoft 365: Adds an application-level layer5BYOK tenant key → Files and emails: Your own tenant key; users see no difference6DKE service you host → The most sensitive items: Second key; Microsoft 365 services can't read itWho holds the key for each Microsoft 365 encryption optionHeld by Microsoft: Service encryption, Azure Rights Management. What is protected: Data at rest in Microsoft 365, Files and emails, The most sensitive items. Held by you: Customer Key root keys, BYOK tenant key, DKE service you host. Connections: 1. Service encryption → Data at rest in Microsoft 365: Encrypts all data at rest. 2. Azure Rights Management → Files and emails: Used by sensitivity labels and Message Encryption. 3. Azure Rights Management → The most sensitive items: One of the two keys, in Azure. 4. Customer Key root keys → Data at rest in Microsoft 365: Adds an application-level layer. 5. BYOK tenant key → Files and emails: Your own tenant key; users see no difference. 6. DKE service you host → The most sensitive items: Second key; Microsoft 365 services can't read it.HELD BY MICROSOFTService encryptionBitLocker and DKM, always onAzure Rights ManagementMicrosoft-managed tenant key by defaultWHAT IS PROTECTEDData at rest in Microsoft 365Anyone with access can still read itFiles and emailsUsage rights travel with each itemThe most sensitive itemsDesktop apps only, no coauthoringHELD BY YOUCustomer Key root keysPlus an availability key Microsoft protectsBYOK tenant keyCreated and managed in Azure Key VaultDKE service you hostA business-critical service you runCONNECTIONS1Service encryption → Data at rest in Microsoft 365:Encrypts all data at rest2Azure Rights Management → Files and emails: Usedby sensitivity labels and Message Encryption3Azure Rights Management → The most sensitiveitems: One of the two keys, in Azure4Customer Key root keys → Data at rest in Microsoft365: Adds an application-level layer5BYOK tenant key → Files and emails: Your owntenant key; users see no difference6DKE service you host → The most sensitive items:Second key; Microsoft 365 services can't read it
Figure 1 · Architecture Who holds the key for each Microsoft 365 encryption option. Follow each line from a key to the data it protects; the zone tells you whether Microsoft or you hold that key.
  • At rest in the service. Microsoft 365 always encrypts data at rest with BitLocker and Distributed Key Manager (DKM). Customer Key adds an application-level layer whose root keys you control. Users never see this layer, and anyone who has access to an item can still read it.
  • On the content itself. The Azure Rights Management service encrypts the individual file or email and attaches usage rights such as view, edit, copy, print or forward. The protection stays with the item when it's downloaded, emailed or copied to a USB drive. Sensitivity labels and Message Encryption both use it; Double Key Encryption (DKE) adds a second key that you hold.
  • In transit. TLS protects traffic between clients and servers and between servers.

The options side by side#

OptionProtectsWho holds the keyWhat users noticeTypical use
Service encryption (BitLocker, DKM)All data at restMicrosoftNothingBaseline for every tenant
Customer KeyData at rest in Exchange, SharePoint, OneDrive, Teams and Windows 365 Cloud PCs, among othersYou (root keys) plus an availability key Microsoft protectsNothingControl of root keys at rest, with a purge path
Azure Rights ManagementIndividual files and emails, wherever they goMicrosoft-managed tenant key by defaultRestricted actions, sign-in to openLabeled confidential content
Azure Rights Management with BYOKSame as aboveA tenant key you create and manage in Azure Key VaultSame as aboveA requirement to own the root key
Double Key EncryptionThe most sensitive files and emailsTwo keys: one in Azure, one in a DKE service you hostDesktop apps only, no coauthoringA small top-secret slice of data
Message EncryptionEmail, including to external recipientsUses the Azure Rights Management serviceEncrypt or Do Not Forward optionsSecure email to anyone

How each option works with sensitivity labels#

Azure Rights Management and BYOK#

A label applies encryption with permissions you define, or lets users assign them. With a Microsoft-managed key or BYOK, labels work the same and Microsoft 365 services keep working with the content, which is why Microsoft recommends these for most sensitive data.

Double Key Encryption#

DKE is also applied through sensitivity labels once you deploy the DKE service and keys. It comes with Microsoft 365 E5 and needs the Azure Rights Management service. Users apply it in Word, Excel, PowerPoint and Outlook (Microsoft 365 Apps for enterprise on Windows), or with the Purview file labeler, PowerShell or scanner. The limits are substantial:

  • Coauthoring and AutoSave are turned off for DKE-encrypted Office documents.
  • SharePoint and OneDrive can store DKE files but can't process them: no Office for the web, coauthoring, search, eDiscovery or DLP for those files. A DKE label can't be a library's default label.
  • DKE labels can't protect Loop components, calendar items, Teams meetings or chat.
  • Encrypt-Only and Do Not Forward aren't supported with DKE in Outlook.

Customer Key#

Customer Key isn't a label setting. You create data encryption policies (DEPs) with PowerShell and assign them: a multi-workload DEP for the tenant (it also covers Microsoft 365 Copilot interactions, exact data match data and sensitivity label configurations), mailbox DEPs (up to 50 active per tenant) and one SharePoint and OneDrive DEP per geo. It only covers cloud data, so on-premises mailboxes and files need their own protection.

Message Encryption#

Message Encryption runs on the Azure Rights Management service and is applied through Outlook's encryption options, mail flow rules or labels for email. For fixes, see Message Encryption not working in Exchange Online.

What each option means for eDiscovery and Copilot#

  • Rights Management content in eDiscovery. eDiscovery decrypts protected email and encrypted attachments sent in Exchange Online when you export. With premium eDiscovery features, encrypted documents in SharePoint and OneDrive can also be searched, previewed, reviewed in a review set and exported decrypted. Decryption in eDiscovery lists the exceptions, such as S/MIME and legacy library RMS settings.
  • DKE content in eDiscovery. Because Microsoft holds only one key, DKE content is out of reach for eDiscovery, search and indexing, and for mail flow rules that inspect attachments.
  • Customer Key and services. You explicitly authorize Microsoft 365 to use your keys for services such as eDiscovery, anti-malware, anti-spam and search indexing, so those keep working. Revoking your keys starts the data purge path and ends in cryptographic deletion, which is meant for leaving the service, not for daily access control.
  • Copilot and Rights Management. Copilot only uses content the signed-in user can access, and for encrypted content the user needs both the VIEW and EXTRACT usage rights. A label that grants read-only permissions without the EXTRACT (copy) usage right keeps that content out of Copilot for those users. See how Copilot works with sensitivity labels and encryption.
  • Copilot and DKE. DKE-encrypted data isn't accessible to Microsoft 365 services, including Copilot, and Copilot can't be used in an app while DKE-encrypted data is open there. In older Office versions, data in use could reach connected services unless the related privacy setting was turned off, so keep apps current.

Step-by-step: choosing the right mix#

  1. Label and encrypt confidential content with Azure Rights Management, scoped to groups. Enable sensitivity labels for Office files in SharePoint and OneDrive so search, eDiscovery and coauthoring keep working; see sensitivity labels in SharePoint and OneDrive.
  2. Use Message Encryption for external email instead of password-protected attachments.
  3. Choose BYOK only for a clear requirement to own the Rights Management root key. You take on Azure Key Vault operations, while users and services see no difference.
  4. Reserve DKE for the crown jewels. Viewing needs both keys, so the DKE service becomes a business-critical dependency that you run, monitor and keep available. Limit DKE labels to the few people who need them.
  5. Add Customer Key when regulation asks for control of root keys at rest. Check its licensing and setup prerequisites with Microsoft first.

Verify#

PowerShell
# Azure Rights Management (AIPService module, Windows PowerShell 5.1)
Connect-AipService
Get-AipService          # should return Enabled
Get-AipServiceKeys      # lists your tenant key(s)

# Exchange Online: IRM and Message Encryption
Connect-ExchangeOnline
Get-IRMConfiguration | Format-List AzureRMSLicensingEnabled
Test-IRMConfiguration -Sender admin@contoso.com -Recipient user@contoso.com

# Customer Key, if you've deployed it
Get-DataEncryptionPolicy
Get-M365DataAtRestEncryptionPolicy

Then test like a user. With labels enabled for SharePoint and OneDrive, a labeled, encrypted document opens in Office for the web and appears in search results; a DKE-labeled document opens only in the supported Windows desktop apps or the Microsoft Purview Information Protection Viewer. Run a test eDiscovery search and confirm that Rights Management content exports readable. Audit records Copilot prompts, responses and the content they referenced, so you can check which files Copilot used; see searching the audit log.

Tips & gotchas#

References#

Written and checked against current Microsoft Learn documentation. Test changes with a pilot group before rolling them out to everyone, and if an admin center path has moved since, search for the setting name instead.

Spotted a mistake, or did this fix work differently for you? Email me or message me on LinkedIn — corrections are credited in the article.

Written by

Omer Eltayeb

Intune Subject Matter Expert in Cairo, Egypt, former Microsoft Cloud Solutions Architect, Microsoft Certified Trainer and Microsoft Innovative Educator Expert (2024–26) and Microsoft Elevate Educator Expert (2026–27). I share practical, step-by-step guides, study plans, scripts and toolkits for Microsoft Intune, Configuration Manager, Microsoft Entra ID, Microsoft Defender, Exchange and Microsoft 365 with the community.

Microsoft Certified Trainer (MCT) 2026Microsoft Innovative Educator Expert 2025–2026Microsoft Elevate Educator Expert 2026–2027ISC2 Certified Information Systems Security Professional (CISSP)Microsoft 365 Certified: Enterprise Administrator Expert (MS-102)