Forum Discussion

aditya9074's avatar
aditya9074
Copper Contributor
Jul 14, 2025

Automate eDiscovery export download in Fabric container

Hi, I am new to fabric and currently my automated solution downloads data from eDiscovery cases export using PowerShell script to a local server. I want to upgrade it to Fabric GCP using JAVA.

 

I am looking for any reference that can guide me about setting up connection for the process to download the expprted data of an eDiscovery cases from the download URL into GCP container.

 

 

Thanks,

Aditya

1 Reply

  • Hi aditya9074​ Let me know if this helps.

     Setup Overview

    1. Authentication: Register an app in Microsoft Entra ID with app-only access. Assign MicrosoftPurviewEDiscovery API permissions.
    2. Export Access: Use the Microsoft Graph API to list eDiscovery cases and retrieve export URLs.
    3. Download Logic: In Java, you can use HttpClient or OkHttp to download the export package from the URL.
    4. GCP Upload: Use the Google Cloud Storage SDK for Java to push the downloaded data into your Fabric container.

    🔗 Helpful Resources(mentioned above)

    1. Getting started with the eDiscovery APIs | Microsoft Community Hub

    Getting started with the eDiscovery APIs | Microsoft Community Hub

    This guide walks you through:

    • App Registration: Register your app in Entra ID with app-only access using client secrets or certificates.
    • API Permissions: Assign MicrosoftPurviewEDiscovery permissions for programmatic export downloads.
    • Authentication: Use PowerShell or Java SDKs to authenticate via Microsoft Graph.
    • Export Access: Once authenticated, you can list cases, initiate exports, and download packages using the MicrosoftPurviewEDiscovery API.

    2. Export and Download from eDiscovery (Standard)

    Export and download content from an eDiscovery (Standard) case | Microsoft Learn

    This article explains:

    • Export Workflow: Search results are transferred to Azure Storage and must be downloaded within 14 days.
    • Deduplication Option: You can enable deduplication to avoid redundant email exports.
    • Download Process: Use the Exports tab in the Purview portal or automate via API.