Commands › Power BI

Get-PowerBIDataflowDatasource

Power BI MicrosoftPowerBIMgmt Get-*

Returns a list of Power BI data sources for the given Dataflow.

Quick start script

# Get-PowerBIDataflowDatasource — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-PowerBIServiceAccount -ServicePrincipal -CertificateThumbprint $thumb -ApplicationId $appId -Tenant $tenantId

# 2. Run and inspect
Get-PowerBIDataflowDatasource -Dataflow <Dataflow> -DataflowId <Guid> -Id <Guid> | Format-List

# 3. Export for evidence / drift tracking
Get-PowerBIDataflowDatasource | Export-Clixml .\PowerBIDataflowDatasource-$(Get-Date -Format yyyyMMdd).xml

Syntax — 4 parameter sets

List (Default)

Get-PowerBIDataflowDatasource -DataflowId <Guid> [-WorkspaceId <Guid>] [-Scope <PowerBIUserScope>]
 [<CommonParameters>]

Id

Get-PowerBIDataflowDatasource -DataflowId <Guid> [-WorkspaceId <Guid>] -Id <Guid> [-Scope <PowerBIUserScope>]
 [<CommonParameters>]

DataflowAndId

Get-PowerBIDataflowDatasource -Dataflow <Dataflow> [-WorkspaceId <Guid>] -Id <Guid> [-Scope <PowerBIUserScope>]
 [<CommonParameters>]

DataflowAndList

Get-PowerBIDataflowDatasource -Dataflow <Dataflow> [-WorkspaceId <Guid>] [-Scope <PowerBIUserScope>]
 [<CommonParameters>]

Parameters (5)

ParameterTypeRequiredWhat it controls
-Dataflow Dataflow yes Dataflow object to retrieve and return data sources for.
-DataflowId Guid yes ID of the dataflow to retrieve and return data sources for.
-Id Guid yes ID of the data source to return.
-Scope PowerBIUserScope Indicates scope of the call. Individual returns only data sources from dataflows assigned to the caller; Organization returns data sources for all dataflows within a tenant (must be an administrator to initiate)....
-WorkspaceId Guid ID of the workspace to filter results to. Only data sources belonging to that workspace are shown. Available only when -Scope is Individual.

Reference facts derived from Microsoft documentation, © Microsoft, licensed MIT; restructured with original guidance by serv365.ai.