Commands › Power BI

Get-PowerBIDataset

Power BI MicrosoftPowerBIMgmt Get-*

Returns a list of Power BI datasets.

Quick start script

# Get-PowerBIDataset — 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-PowerBIDataset -Id <Guid> -Name <String> -Workspace <Workspace> | Format-List

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

Syntax — 6 parameter sets

List (Default)

Get-PowerBIDataset [-Scope <PowerBIUserScope>] [-Filter <String>] [-First <Int32>] [-Include <String>]
 [-Skip <Int32>] [-WorkspaceId <Guid>] [<CommonParameters>]

Id

Get-PowerBIDataset -Id <Guid> [-Scope <PowerBIUserScope>] [-Include <String>] [-WorkspaceId <Guid>]
 [<CommonParameters>]

ObjectAndId

Get-PowerBIDataset -Id <Guid> [-Scope <PowerBIUserScope>] [-Include <String>] -Workspace <Workspace>
 [<CommonParameters>]

Name

Get-PowerBIDataset -Name <String> [-Scope <PowerBIUserScope>] [-Include <String>] [-WorkspaceId <Guid>]
 [<CommonParameters>]

2 more parameter sets — see the parameter table below.

Parameters (9)

ParameterTypeRequiredWhat it controls
-Filter String OData filter, case-sensitive (element names start lowercase). Only supported when -Scope Organization is specified.
-First Int32 First (top) list of results.
-Id Guid yes ID of the dataset to return.
-Include String OData expand, case-sensitive (element names start lowercase).
-Name String yes Name of the dataset to return if one exists with that name. Case insensitive search.
-Scope PowerBIUserScope Indicates scope of the call. Individual returns datasets from "My Workspace" by default. With -Workspace or -WorkspaceId, datasets under the workspace assigned to the caller are returned; Organization returns all...
-Skip Int32 Skips the first set of results.
-Workspace Workspace yes Workspace to filter results to, datasets only belonging to that workspace are shown.
-WorkspaceId Guid ID of the workspace to filter results to, datasets only belonging to that workspace are shown.

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