< Back

Export-PowerBIDataflow

Sat Jan 18, 2020 4:12 pm

NAME Export-PowerBIDataflow



SYNOPSIS

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





SYNTAX

Export-PowerBIDataflow -Dataflow <Dataflow> -OutFile <String> [-Scope {Individual | Organization}] [-WorkspaceId

<Guid>] [<CommonParameters>]



Export-PowerBIDataflow -Id <Guid> -OutFile <String> [-Scope {Individual | Organization}] [-WorkspaceId <Guid>]

[<CommonParameters>]





DESCRIPTION

Export a Power BI dataflow from the Power BI service into a .json file that represents a Dataflow object. For

-Scope Individual, user must specify the dataflow's workspace, using the given -WorkspaceId value. Before you run

this command, make sure you log in using Connect-PowerBIServiceAccount.





PARAMETERS

-Dataflow <Dataflow>

Dataflow for exporting.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Id <Guid>

ID of the dataflow to export.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-OutFile <String>

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



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-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

an administrator to initiate). Individual is the default.



Required? false

Position? named

Default value Individual

Accept pipeline input? False

Accept wildcard characters? false



-WorkspaceId <Guid>

ID of the workspace containing the Power BI dataflow 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

Microsoft.PowerBI.Common.Api.Dataflows.Dataflow







OUTPUTS

System.Object







NOTES









-------------------------- Example 1 --------------------------



PS C:\\> Export-PowerBIDataflow -WorkspaceId ed451706-2b02-430c-b25c-20c0842c6375 -Id

9b519499-5ba1-4f1c-878b-be3a69f1791f -OutFile .\\Sales.json



Export dataflow with ID 9b519499-5ba1-4f1c-878b-be3a69f1791f from a workspace with Id

ed451706-2b02-430c-b25c-20c0842c6375 into a file named Sales.json in your current working directory ($PWD).

-------------------------- Example 2 --------------------------



PS C:\\> Export-PowerBIDataflow -Id 9b519499-5ba1-4f1c-878b-be3a69f1791f -Scope Organization -OutFile .\\Sales.json



Export dataflow with ID 9b519499-5ba1-4f1c-878b-be3a69f1791f from within the user's organization into a file named

Sales.json in the current working directory ($PWD).



RELATED LINKS

Online Version:

https://docs.microsoft.com/en-us/powers ... powerbi-ps