Export-PowerBIReport

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

Syntax

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

Description

Saves a Power BI report from the Power BI service into a .pbix file that can be loaded by the Power BI Desktop or uploaded back to Power BI service. Before you run this command, make sure you log in using Connect-PowerBIServiceAccount.

Examples

Example 1

PS C:\> Export-PowerBIReport -Id 9b519499-5ba1-4f1c-878b-be3a69f1791f -OutFile .\Sales.pbix

Saves report with ID 9b519499-5ba1-4f1c-878b-be3a69f1791f into a file named Sales.pbix in your current working directory ($PWD).

Parameters

-Id

ID of the report to export.

Type:Guid
Aliases:ReportId
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-OutFile

Output file to save the exported report to. Path must not already exist.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-WorkspaceId

ID of the workspace containing the Power BI report to export.

Type:Guid
Aliases:GroupId
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

System.Object