Resources

Protected

Migrating AD RMS to Azure RMS: A Step-by-Step Guide

Active Directory Rights Management Services (AD RMS) has served organisations well as an on-premises information protection solution, but the shift to cloud-first working demands a more scalable, resilient, and integrated approach. This guide walks through the complete migration journey from AD RMS to Azure Rights Management Services (Azure RMS) — part of Microsoft's Azure Information Protection (AIP) platform — covering every critical step from pre-migration planning through to post-migration validation.

Guide · 16 min read · By Saurabh Nikumbha ·

Why Migrate? AD RMS vs Azure RMS

Understanding the limitations of AD RMS and the capabilities unlocked by Azure RMS is essential for building the business case for migration. The two platforms represent fundamentally different architectural philosophies — one anchored to on-premises infrastructure, the other built for the cloud era.

AD RMS Limitations

  • Requires on-premises server infrastructure, including SQL Server and Active Directory — demanding ongoing maintenance, patching, and hardware refresh cycles
  • Limited to users within the corporate network or connected via VPN; poor support for remote and mobile workers
  • No native integration with Microsoft 365 cloud services such as Exchange Online, SharePoint Online, or Teams
  • Federated trust configurations are complex to establish and maintain across partner organisations
  • Disaster recovery and high availability require significant additional investment and planning
  • No support for sensitivity labels or Microsoft Purview compliance integration
  • Manual key management with limited cryptographic agility — no automatic key rotation

Azure RMS Capabilities

  • Fully managed cloud service with 99.9% SLA — no server infrastructure to maintain or patch
  • Protects documents and emails accessible from any device, anywhere, without VPN dependency
  • Deep, native integration with Microsoft 365 — including automatic protection policies in Exchange Online, SharePoint, and Teams
  • Supports B2B collaboration natively; external users can access protected content through Microsoft Entra ID guest accounts
  • Integrates directly with Microsoft Purview for unified data classification, sensitivity labelling, and compliance reporting
  • Supports Bring Your Own Key (BYOK) and Double Key Encryption (DKE) for regulated industries
  • Scales elastically to meet the needs of global enterprise workloads without capacity planning

Microsoft officially ended mainstream support for Windows Server 2016 AD RMS and ceased new feature development. Organisations still running AD RMS are increasingly exposed to security and compliance risk as the ecosystem around it shrinks.

Pre-Migration Planning

Assessing Your Environment, Licences, and AIP Readiness

Thorough pre-migration planning is the single most important factor in a successful migration. Rushing into the technical steps without a comprehensive assessment of your current environment frequently leads to content inaccessibility, user disruption, and compliance gaps. Allocate adequate time for this phase — for large enterprises, this assessment can take several weeks.

Inventory AD RMS Infrastructure

Document all AD RMS cluster nodes, service connection points (SCPs) in Active Directory, and any AD RMS-dependent applications. Use the Get-AIPServerConfiguration PowerShell cmdlet and the AD RMS Health Check tool to capture a complete picture. Record all rights policy templates in use and which business units or systems rely on them.

Audit Protected Content

Identify all protected content across file shares, SharePoint on-premises, Exchange, and endpoint devices. Determine which templates were used to protect each content class. Content protected with AD RMS will need to remain accessible post-migration — the TPD import process ensures this, but only if all active templates are exported correctly.

Validate Licence Entitlements

Azure RMS is included in Microsoft 365 E3/E5, EMS E3/E5, and standalone AIP P1/P2 licences. Confirm that all users who will consume or publish protected content hold an appropriate licence. Unlicensed users will be unable to decrypt or apply protection, causing immediate productivity impact post-cutover.

Check AIP Unified Labelling Readiness

Ensure your Microsoft 365 tenant has Azure RMS activated. Navigate to the Microsoft Purview compliance portal and confirm that sensitivity labels are available. Verify that your Azure Active Directory (now Microsoft Entra ID) is properly synchronised with on-premises AD using Azure AD Connect, and that UPN suffixes for all users are verified domains within the tenant.

Key Prerequisites Checklist

  • Global Administrator or Compliance Administrator role in Microsoft 365
  • AD RMS with SP2 or later installed and operational
  • Azure AD Connect configured and synchronisation verified
  • PowerShell modules: AIPService, AADRM, MSOnline
  • Network connectivity between AD RMS servers and Azure endpoints

Recommended Pre-Migration Tools

  • RMS Analyser — scans protected content and reports template usage
  • Azure Information Protection Scanner — discovers on-premises content eligible for labelling
  • AD RMS Migration Scripts — Microsoft-provided PowerShell toolkit for TPD export and import
  • Microsoft 365 Licensing Diagnostics — validates per-user licence assignments at scale

Step 1: Export the Trusted Publishing Domain (TPD) from AD RMS

The Trusted Publishing Domain (TPD) is the cornerstone of your AD RMS deployment. It contains the server licensor certificate (SLC), the private key used to protect content, and all rights policy templates. Exporting this TPD correctly is critical — without it, Azure RMS will be unable to decrypt any content previously protected by your AD RMS cluster.

Understanding the TPD Structure

The TPD is an XML file encrypted with a password you specify during export. It encapsulates the cryptographic key material that underpins all content protection in your organisation. If your AD RMS cluster uses a Hardware Security Module (HSM) to protect the SLC key, the export process differs — HSM-protected keys require a separate BYOK transfer procedure using the Azure Key Vault HSM integration pathway.

Exporting via the AD RMS Administration Console

Open the AD RMS Administration Console on your cluster root node. Navigate to Trust Policies → Trusted Publishing Domains. Right-click the domain and select Export Trusted Publishing Domain. Choose a secure file path and provide a strong password — this password will be required during the Azure RMS import step. Save the .xml file to a secure, encrypted location immediately after export.

Exporting via PowerShell

For environments with multiple TPDs or automation requirements, use PowerShell. Install the AADRM module and connect using Connect-AadrmService. Run Export-AadrmTpd specifying the -TpdFile path, -Password (as a secure string), and -Active flag to export the currently active TPD. If you have previously rotated keys or imported external TPDs, export each TPD separately — Azure RMS must hold all historical keys to decrypt legacy content.

Exporting All Rights Policy Templates

In addition to the TPD, export all custom rights policy templates using Export-AadrmTemplate. These templates define the permissions (view, edit, print, forward, etc.) and expiry conditions applied to protected documents. Keep a record of each template's GUID, display name, and associated policy settings — you will need to recreate or map these as sensitivity label protection settings in Microsoft Purview after import.

Security Notice: The exported TPD file contains your organisation's master cryptographic key material. Store it in an encrypted vault (such as Azure Key Vault or a hardware-encrypted USB in a physical safe) and restrict access to a named list of authorised personnel. Never transmit this file via unencrypted email or unsecured file shares.

Step 2: Import the TPD into Azure RMS and Configure Your Tenant Key

With the TPD exported and securely stored, the next step is to import it into Azure RMS. This process transfers your organisation's cryptographic identity into the Microsoft-managed cloud service, enabling Azure RMS to decrypt all previously protected content whilst simultaneously establishing protection capabilities for new content going forward.

Export TPD

Export TPD from AD RMS

Configure Key

Set BYOK or Microsoft-managed

Import to Azure

Use PowerShell to import TPD

The import process bridges your on-premises key material with Azure's cloud infrastructure. Once complete, Azure RMS becomes the authoritative rights management service for your organisation — capable of both issuing new use licences and honouring legacy AD RMS-protected content.

Import Procedure (Step by Step)

  1. Install the AIPService PowerShell module: Install-Module AIPService
  2. Connect to Azure RMS: Connect-AipService using Global Admin credentials
  3. Import the TPD file: Import-AipServiceTpd -TpdFile "C:\export\tpd.xml" -ProtectionPassword $pwd -Verbose
  4. Repeat for each additional TPD if multiple were exported from AD RMS
  5. Set the imported TPD as active: Set-AipServiceKeyProperties -KeyIdentifier <KeyId> -Active $true
  6. Enable the Azure RMS service if not already active: Enable-AipService

Tenant Key Topology Options

After import, you must decide on your tenant key topology. This is a significant architectural decision with compliance implications:

  • Microsoft-Managed Key (default): Microsoft generates and manages your Azure RMS tenant key in Azure Key Vault. Simplest option; appropriate for most organisations not subject to strict data sovereignty requirements.
  • Bring Your Own Key (BYOK): Your organisation generates the key on-premises (using an HSM) and transfers it to Azure Key Vault, where Microsoft manages operations but your organisation retains key ownership. Required for regulated industries such as financial services and healthcare.
  • Double Key Encryption (DKE): Your organisation holds one key on-premises; Microsoft holds the other in Azure. Both keys are required to decrypt content — even Microsoft cannot access it. For the highest-sensitivity workloads only.

Step 3: Decommission AD RMS and Update DNS SRV Records

Once the TPD has been successfully imported into Azure RMS and you have verified that the service can issue use licences for protected content, you can begin the decommissioning process for AD RMS. This is an irreversible step that must be carefully sequenced — decommissioning prematurely, before all clients have migrated, will break content access for those users.

Verify Migration Readiness

Confirm that all clients have been updated with Azure RMS configuration, that the AIP client is deployed, and that a sample of protected documents can be accessed successfully via Azure RMS. Run usage logs from both AD RMS and Azure RMS to verify traffic has shifted.

Remove the AD RMS SCP

The Service Connection Point (SCP) in Active Directory tells Windows clients where to find the RMS service. Use the AD RMS Administration Console or PowerShell (Set-AdObject) to remove the SCP. This prevents new clients from registering with AD RMS after the cutover date.

Update DNS SRV Records

Create or update the _rmsredir._http._tcp DNS SRV record to point to Azure RMS endpoints. This ensures legacy Office clients that discover RMS via DNS are automatically redirected to Azure RMS without requiring manual reconfiguration on each device.

Decommission AD RMS Servers

Once DNS SRV redirection is confirmed working and no traffic is reaching AD RMS servers, set AD RMS cluster nodes to "decommissioned" state via the console. Retain the servers in a powered-off state for at least 30 days before deprovisioning, in case rollback is required.

DNS SRV Record Configuration Details

The DNS SRV record for RMS redirection should be configured in your internal DNS zone as follows. The record instructs Office clients to redirect all RMS licensing requests to Azure RMS automatically:

Record NameTypeTTLValue
_rmsredir._http._tcp.<yourdomain.com>SRV300Priority: 0, Weight: 0, Port: 80, Target: discover.informationprotection.azure.com

Important: Retain the AD RMS database and all exported TPD files for a minimum of 90 days post-decommissioning. Content protected prior to migration may occasionally surface from backups or archives, and you will need the original key material to decrypt it. Do not delete the SQL Server AD RMS database until you are fully confident all legacy content has been re-protected or accessed.

Step 4: Configure the Azure RMS Connector

Enabling Protection for On-Premises Exchange and SharePoint Workloads

Many organisations running AD RMS also have on-premises Exchange Server and SharePoint Server deployments that integrate directly with RMS for email protection, IRM libraries, and document protection. These workloads cannot communicate natively with Azure RMS — they require the Microsoft Rights Management (RMS) Connector, a lightweight relay service that bridges on-premises servers with the Azure RMS cloud service.

What is the RMS Connector?

The RMS Connector is a Windows Server role that acts as a secure proxy between your on-premises servers and Azure RMS. It translates the proprietary AD RMS communication protocol used by Exchange and SharePoint into the REST-based API used by Azure RMS. The connector itself does not process or store content — it simply relays licensing requests and use licence responses between the on-premises application and Azure.

The connector supports the following on-premises workloads:

  • Exchange Server 2013, 2016, and 2019 (for IRM-protected email, transport rules, and OWA)
  • SharePoint Server 2013, 2016, and 2019 (for IRM-protected document libraries)
  • Windows Server File Classification Infrastructure (FCI) with the RMS Protection tool

Installation and Configuration Steps

  1. Download the Microsoft RMS Connector installer from the Microsoft Download Centre and install it on a dedicated Windows Server 2016 or later VM — use at least two servers for high availability
  2. Run the RMS Connector Administration Tool and authenticate with Global Administrator credentials to authorise the connector with your Azure RMS tenant
  3. Add the computer accounts of your Exchange and SharePoint servers to the authorised servers list within the connector administration tool
  4. On each Exchange Server, run the ServerCertificationTool.exe to configure the connector URL: https://<connector-fqdn>:443
  5. On SharePoint, navigate to Central Administration → Security → Information Rights Management and point it at the connector URL
  6. Validate connectivity using the Test-RMSConnector PowerShell cmdlet

High Availability

Deploy a minimum of two RMS Connector instances behind a network load balancer (NLB) or Azure Load Balancer. Both instances connect to the same Azure RMS tenant. Configure your DNS round-robin or NLB VIP as the connector URL used by Exchange and SharePoint to ensure failover with no single point of failure.

Firewall Requirements

The RMS Connector requires outbound HTTPS (port 443) access to *.aadrm.com, *.informationprotection.azure.com, and Azure AD authentication endpoints. Inbound access from Exchange and SharePoint servers on port 443 must also be permitted. Ensure SSL inspection is either disabled for these endpoints or uses certificate pinning exceptions.

Monitoring the Connector

The RMS Connector writes detailed event logs to the Windows Event Viewer under Applications and Services Logs → Microsoft → RMS. Enable verbose logging during initial configuration to capture licensing request flows. Integrate with Azure Monitor or your SIEM for ongoing health alerting — connector failures will immediately break Exchange IRM and SharePoint library protection.

Step 5: Migrate Clients and Update Policies

Using the AIP Unified Labelling Client

The final technical migration step involves updating all end-user devices to use the Azure Information Protection (AIP) Unified Labelling Client and ensuring that sensitivity label policies are correctly configured in the Microsoft Purview compliance portal. This step has the broadest organisational impact, touching every user who works with protected content — it demands careful change management and staged rollout planning.

Client Deployment Strategy

The AIP Unified Labelling Client replaces the legacy AIP Classic Client and the built-in Office sensitivity label experience with a richer, more configurable interface. It installs as an Office add-in and a File Explorer extension, enabling users to apply and view labels across Office applications, Windows File Explorer, and the AIP Viewer for non-Office file types.

Recommended deployment approach:

  1. Package the AIP client MSI using Microsoft Endpoint Configuration Manager (MECM/SCCM) or Microsoft Intune for MDM-enrolled devices
  2. Deploy silently using: AzInfoProtection_UL.exe /quiet /norestart OFFICE_INTEGRATION=1
  3. Target a pilot group of 50–100 users representing all departments and document types first
  4. Monitor for issues via Azure AD sign-in logs and AIP audit logs for 1–2 weeks before broad deployment
  5. Roll out in waves by department or site, with IT support available during each wave

Migrating Rights Policy Templates to Sensitivity Labels

AD RMS rights policy templates do not migrate automatically — they must be recreated as sensitivity labels with equivalent protection settings in Microsoft Purview. For each AD RMS template:

  • Create a corresponding sensitivity label in the Microsoft Purview compliance portal under Information Protection → Labels
  • Configure the label's encryption settings to mirror the AD RMS template permissions (e.g., co-author rights for specific groups, viewer rights for external domains)
  • Set the same content expiry and offline access duration settings as the original template
  • Publish the labels via a Label Policy to the same user groups that previously had access to the AD RMS template
  • Use the Set-Label PowerShell cmdlet for bulk label creation from a CSV mapping the old template GUIDs to new label configurations

User Communication & Training

Publish clear guidance explaining the transition from AD RMS templates to sensitivity labels. The visual interface changes significantly — users accustomed to the AD RMS template names in the Office ribbon will see sensitivity label names instead. Provide short video walkthroughs and a FAQ document addressing the most common questions around labelling behaviour changes.

Auto-Labelling Policies

Configure auto-labelling policies in Microsoft Purview to automatically apply sensitivity labels to documents and emails that match specific conditions — for example, content containing financial data patterns or personal information. This reduces reliance on manual labelling and ensures consistent protection posture across the organisation without end-user action.

Default Label Policies

Set a default sensitivity label for all new documents and emails via Label Policy settings. This ensures that all newly created content receives at least a baseline level of classification from day one, even before users actively choose a label. Align the default label with your organisation's data classification policy — typically "General" or "Internal Use Only".

Validating the Migration

Testing Document Access, User Permissions, and Audit Logs in Azure

Migration validation is not a single checkpoint — it is a structured testing programme that must be completed before decommissioning AD RMS and before communicating a "migration complete" status to the business. A rigorous validation process protects against silent failures where content appears accessible but permissions have drifted, or where audit trails are incomplete.

Document Access Testing

Retrieve a representative sample of documents protected under each AD RMS template — ideally spanning different file types (Word, Excel, PDF, email), different protection templates, and different creation dates (including content protected years ago). Attempt to open each document using the AIP Unified Labelling Client from both domain-joined devices and non-domain-joined devices. Verify that the correct permissions are enforced — a user with "Viewer" rights should be unable to edit or print; a user with "Co-Author" rights should be able to edit but not forward.

User Permissions Verification

Test permission enforcement systematically across user groups. Use test accounts representing each permission level defined in your sensitivity labels. Verify that permissions are enforced consistently across Office applications (Word, Outlook, Excel), the AIP Viewer, and SharePoint Online. Test external user access — invite a guest user from a partner tenant and verify they can open shared protected documents through the Azure RMS guest access flow without requiring an AD RMS licence or VPN connection.

Audit Log Review in Microsoft Purview

Navigate to the Microsoft Purview compliance portal → Audit and search for AIP-related activities: SensitivityLabelApplied, SensitivityLabelChanged, SensitivityLabelRemoved, and ProtectionApplied. Confirm that all protection events are being captured. Cross-reference with the AIP Usage Log available via Get-AipServiceUserLog PowerShell cmdlet to ensure usage data is complete and attributable to individual users.

RMS Connector Health Check

If you deployed the RMS Connector for on-premises Exchange and SharePoint, validate that IRM-protected emails round-trip correctly through Exchange transport rules, that Outlook Web App (OWA) correctly displays and enforces protection, and that SharePoint document library IRM restrictions are functioning. Use the Test-RMSConnector cmdlet and review Windows Event Logs on connector servers for any warning or error events during the test period.

Validation Sign-Off Criteria

  • 100% of sampled legacy documents successfully decryptable via Azure RMS
  • All sensitivity labels applied correctly in Office applications across pilot user group
  • Audit logs capturing all protection/unprotection events with correct user attribution
  • External guest access working for at least two partner domains
  • RMS Connector health checks passing with no errors in 72-hour monitoring window
  • Help desk ticket volume stabilised at baseline after client deployment wave

Ongoing Monitoring Post-Migration

After go-live, establish a regular monitoring cadence using the following tools:

  • Microsoft Purview Activity Explorer — real-time visibility into label activity across all users and content locations
  • Azure AD Sign-In Logs — identify failed authentication attempts to Azure RMS endpoints
  • AIP Analytics Dashboard — aggregated view of label usage trends, top labelled file types, and geographic distribution
  • Azure Monitor Alerts — configure alerts for RMS Connector availability and Azure RMS service health events

Key Takeaways, Common Pitfalls & Next Steps

Migrating from AD RMS to Azure RMS is a significant but highly achievable project when approached methodically. Organisations that invest in thorough pre-migration planning, staged rollouts, and rigorous post-migration validation consistently report smoother outcomes and lower levels of user disruption. The following summarises the most important lessons learned from enterprise migration projects.

🎯 Critical Success Factors

  • Export all TPDs — not just the active one — before touching any infrastructure
  • Validate licence assignments for every user before cutover, not after
  • Run AD RMS and Azure RMS in parallel for a minimum of 2–4 weeks before decommissioning
  • Engage business stakeholders and communications teams early — this affects every user
  • Retain the AD RMS database and exported TPD files for at least 90 days post-decommission

⚠️ Common Pitfalls to Avoid

  • Incomplete TPD export: Missing a historical TPD renders legacy protected content permanently inaccessible — export every TPD, including inactive ones
  • Premature SCP removal: Removing the AD RMS SCP before all clients are redirected breaks RMS discovery for any unupdated machines
  • Template mapping gaps: Failing to map AD RMS templates to equivalent sensitivity labels leaves users unable to apply the correct protection to new content
  • Firewall oversights: Blocking Azure RMS endpoints (particularly *.aadrm.com) causes silent failures that are difficult to diagnose
  • HSM key transfer errors: BYOK transfers using HSMs require strict adherence to vendor-specific key transfer procedures — test in a non-production tenant first

Recommended Next Steps for Your Organisation

Immediate (Week 1–2)

Assign a project owner and form a migration working group. Begin the AD RMS infrastructure inventory and content audit. Validate Microsoft 365 licence assignments and Azure AD Connect synchronisation health.

Short-Term (Week 3–6)

Complete TPD export and store securely. Import TPD into Azure RMS tenant. Begin sensitivity label design in Microsoft Purview, mapping each AD RMS template to a new label. Deploy AIP Unified Labelling Client to pilot group.

Mid-Term (Week 7–10)

Deploy RMS Connector for on-premises workloads if applicable. Broad AIP client rollout across all users. Update DNS SRV records and remove AD RMS SCP. Run parallel operation and validate.

Long-Term (Week 11+)

Complete decommissioning of AD RMS servers after 90-day retention period. Establish ongoing governance with auto-labelling policies, DLP integration, and regular Microsoft Purview compliance reviews. Explore advanced capabilities: Double Key Encryption, Insider Risk Management, and Microsoft Purview eDiscovery integration.

Further Resources: Microsoft Docs provides detailed, version-specific migration guidance at docs.microsoft.com/en-gb/azure/information-protection/migrate-from-ad-rms-to-azure-rms. The AIP Yammer community and Microsoft Tech Community forums are also valuable resources for organisation-specific migration challenges and peer support from practitioners who have completed similar projects.

Not sure where to start?

Book a 30-minute call and tell us what worries you about Microsoft 365: oversharing, an audit, or a Copilot rollout. Or email us and we'll reply within one working day.