Forum Discussion

AtharvaTheMaverics's avatar
AtharvaTheMaverics
Copper Contributor
Dec 02, 2025
Solved

Migrating DLP Policies from one tenant to other

Has anyone successfully migrated DLP policies from a dev tenant (like contoso.onmicrosoft.com) to a production tenant (paid license with custom domain) in Microsoft Purview without third-party tools?​

We're open to using PowerShell, Power Automate, or other Microsoft technologies—such as exporting policies via PowerShell cmdlets from the source tenant, then importing/recreating them in the target tenant using the Microsoft Purview compliance portal or Security & Compliance PowerShell module.​

Details: The dev tenant has several active DLP policies across Exchange, Teams, and endpoints that we need to replicate exactly in prod, including sensitive info types, actions, and conditions. Is there a built-in export/import feature, a sample script, or Power Automate flow for cross-tenant migration? Any gotchas with licensing or tenant-specific configs?

  • There isn’t a built-in export/import mechanism for DLP policies across tenants.
    DLP policies contain tenant-bound objects (sensitive info types, locations, conditions, etc.), so they must be recreated in the destination tenant.

    The most reliable approach is:

    1. Export the policy definitions using Security & Compliance PowerShell
      Get-DlpCompliancePolicy and Get-DlpComplianceRule let you retrieve the configuration, match locations, and extract conditions.
    2. Recreate them in the target tenant using the same cmdlets
      (New-DlpCompliancePolicy, New-DlpComplianceRule).
      You’ll need to adjust references to any tenant-specific info types or endpoints.
    3. Validate sensitive info types
      If you used custom SITs, they must be exported/imported separately or recreated manually before importing the DLP rules.

    Today there is no cross-tenant migration API for DLP, and Microsoft Purview doesn't offer a native copy/clone feature.
    PowerShell automation is the cleanest and most predictable path.

4 Replies

  • There isn’t a built-in export/import mechanism for DLP policies across tenants.
    DLP policies contain tenant-bound objects (sensitive info types, locations, conditions, etc.), so they must be recreated in the destination tenant.

    The most reliable approach is:

    1. Export the policy definitions using Security & Compliance PowerShell
      Get-DlpCompliancePolicy and Get-DlpComplianceRule let you retrieve the configuration, match locations, and extract conditions.
    2. Recreate them in the target tenant using the same cmdlets
      (New-DlpCompliancePolicy, New-DlpComplianceRule).
      You’ll need to adjust references to any tenant-specific info types or endpoints.
    3. Validate sensitive info types
      If you used custom SITs, they must be exported/imported separately or recreated manually before importing the DLP rules.

    Today there is no cross-tenant migration API for DLP, and Microsoft Purview doesn't offer a native copy/clone feature.
    PowerShell automation is the cleanest and most predictable path.

    • AtharvaTheMaverics's avatar
      AtharvaTheMaverics
      Copper Contributor

      I was able to download the policies using these commands but haven't uploaded them to the new tenant as it is not yet created - it will created sometime next week. I will test out the import of the policies then, and if successful i will update here.

Resources