Commands › Power BI

Export-PowerBIDataflow

Power BI MicrosoftPowerBIMgmt Export-*

Exports a Power BI dataflow to the .json file format.

Quick start script

# Export-PowerBIDataflow — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-PowerBIServiceAccount -ServicePrincipal -CertificateThumbprint $thumb -ApplicationId $appId -Tenant $tenantId

# 2. Run and inspect
Export-PowerBIDataflow -Dataflow <Dataflow> -Id <Guid> -OutFile <String> | Format-List

# 3. Export for evidence / drift tracking
Export-PowerBIDataflow | Export-Clixml .\PowerBIDataflow-$(Get-Date -Format yyyyMMdd).xml

Syntax — 2 parameter sets

Id (Default)

Export-PowerBIDataflow [-WorkspaceId <Guid>] -Id <Guid> [-Scope <PowerBIUserScope>] -OutFile <String>
 [<CommonParameters>]

Dataflow

Export-PowerBIDataflow [-WorkspaceId <Guid>] -Dataflow <Dataflow> [-Scope <PowerBIUserScope>] -OutFile <String>
 [<CommonParameters>]

Parameters (5)

ParameterTypeRequiredWhat it controls
-Dataflow Dataflow yes Dataflow for exporting.
-Id Guid yes ID of the dataflow to export.
-OutFile String yes Output file to save the exported dataflow to. Path must not already exist.
-Scope PowerBIUserScope Indicates scope of the call. Individual works only with the -WorkspaceId parameter, which indicates the Workspace of the requested Dataflow. Organization exports the requested dataflow from within a tenant (must be...
-WorkspaceId Guid ID of the workspace containing the Power BI dataflow to export.

Reference facts derived from Microsoft documentation, © Microsoft, licensed MIT; restructured with original guidance by serv365.ai.