Export-PowerBIDataflow

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

Syntax

Export-PowerBIDataflow
      [-WorkspaceId <Guid>]
      -Id <Guid>
      [-Scope <PowerBIUserScope>]
      -OutFile <String>
      [<CommonParameters>]
Export-PowerBIDataflow
      [-WorkspaceId <Guid>]
      -Dataflow <Dataflow>
      [-Scope <PowerBIUserScope>]
      -OutFile <String>
      [<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.

Examples

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

Parameters

-Dataflow

Dataflow for exporting.

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

-Id

ID of the dataflow to export.

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

-OutFile

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

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

-Scope

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.

Type:PowerBIUserScope
Accepted values:Individual, Organization
Position:Named
Default value:Individual
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WorkspaceId

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

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

Inputs

Microsoft.PowerBI.Common.Api.Dataflows.Dataflow

Outputs

System.Object