Commands › Power BI

Export-PowerBIReport

Power BI MicrosoftPowerBIMgmt Export-*

Exports a Power BI report to the .pbix file format.

Quick start script

# Export-PowerBIReport — 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-PowerBIReport -Id <Guid> -OutFile <String> | Format-List

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

Syntax

Export-PowerBIReport [-WorkspaceId <Guid>] -Id <Guid> -OutFile <String> [<CommonParameters>]

Parameters (3)

ParameterTypeRequiredWhat it controls
-Id Guid yes ID of the report to export.
-OutFile String yes Output file to save the exported report to. Path must not already exist.
-WorkspaceId Guid ID of the workspace containing the Power BI report to export.

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