< Back

Export-PowerBIReport

Sat Jan 18, 2020 4:14 pm

NAME Export-PowerBIReport



SYNOPSIS

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





SYNTAX

Export-PowerBIReport -Id <Guid> -OutFile <String> [-WorkspaceId <Guid>] [<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.





PARAMETERS

-Id <Guid>

ID of the report to export.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-OutFile <String>

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



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-WorkspaceId <Guid>

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



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None







OUTPUTS

System.Object







NOTES









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



RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... werbirepor

t?view=powerbi-ps