Commands › Power BI
Get-PowerBIWorkspace
Returns a list of Power BI workspaces.
Quick start script
# Get-PowerBIWorkspace — 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-PowerBIWorkspace -All <SwitchParameter> -Id <Guid> -Name <String> | Format-List
# 3. Export for evidence / drift tracking
Get-PowerBIWorkspace | Export-Clixml .\PowerBIWorkspace-$(Get-Date -Format yyyyMMdd).xml
Syntax — 4 parameter sets
List (Default)
Get-PowerBIWorkspace [-Scope <PowerBIUserScope>] [-Filter <String>] [-User <String>] [-Deleted] [-Orphaned]
[-First <Int32>] [-Skip <Int32>] [-Include <ArtifactType[]>] [<CommonParameters>]
Id
Get-PowerBIWorkspace -Id <Guid> [-Scope <PowerBIUserScope>] [-Include <ArtifactType[]>] [<CommonParameters>]
Name
Get-PowerBIWorkspace -Name <String> [-Scope <PowerBIUserScope>] [-Include <ArtifactType[]>]
[<CommonParameters>]
All
Get-PowerBIWorkspace [-Scope <PowerBIUserScope>] [-Filter <String>] [-User <String>] [-Deleted] [-Orphaned]
[-Include <ArtifactType[]>] [-All] [<CommonParameters>]
Parameters (11)
Reference facts derived from Microsoft documentation, © Microsoft, licensed MIT; restructured with original guidance by serv365.ai.