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).

Required Parameters

-Id

ID of the report to export.

Type:Guid
Aliases:ReportId
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
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
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-WorkspaceId

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

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

Inputs

None

Outputs

System.Object