Commands › Power BI
Connect-PowerBIServiceAccount
Log in to the Power BI service.
Quick start script
# Connect-PowerBIServiceAccount — 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
Connect-PowerBIServiceAccount -ApplicationId <String> -CertificateThumbprint <String> -Credential <PSCredential> | Format-List
# 3. Export for evidence / drift tracking
Connect-PowerBIServiceAccount | Export-Clixml .\PowerBIServiceAccount-$(Get-Date -Format yyyyMMdd).xml
Syntax — 5 parameter sets
User (Default)
Connect-PowerBIServiceAccount [-Environment <PowerBIEnvironmentType>] [-CustomEnvironment <String>]
[-DiscoveryUrl <String>] [<CommonParameters>]
ServicePrincipal
Connect-PowerBIServiceAccount [-Environment <PowerBIEnvironmentType>] [-CustomEnvironment <String>]
-Credential <PSCredential> [-ServicePrincipal] [-Tenant <String>] [-DiscoveryUrl <String>]
[<CommonParameters>]
UserAndCredential
Connect-PowerBIServiceAccount [-Environment <PowerBIEnvironmentType>] [-CustomEnvironment <String>]
-Credential <PSCredential> [-DiscoveryUrl <String>] [<CommonParameters>]
ServicePrincipalCertificate
Connect-PowerBIServiceAccount [-Environment <PowerBIEnvironmentType>] [-CustomEnvironment <String>]
-CertificateThumbprint <String> -ApplicationId <String> [-ServicePrincipal] [-Tenant <String>]
[-DiscoveryUrl <String>] [<CommonParameters>]
1 more parameter sets — see the parameter table below.
Parameters (9)
Reference facts derived from Microsoft documentation, © Microsoft, licensed MIT; restructured with original guidance by serv365.ai.