Commands › Power BI
Invoke-PowerBIRestMethod
Executes a REST call to the Power BI service, with the specified URL and body.
Quick start script
# Invoke-PowerBIRestMethod — 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
Invoke-PowerBIRestMethod -Method <PowerBIWebRequestMethod> -Url <String> | Format-List
# 3. Export for evidence / drift tracking
Invoke-PowerBIRestMethod | Export-Clixml .\PowerBIRestMethod-$(Get-Date -Format yyyyMMdd).xml
Syntax
Invoke-PowerBIRestMethod -Url <String> -Method <PowerBIWebRequestMethod> [-Body <String>] [-OutFile <String>]
[-ContentType <String>] [-Headers <Hashtable>] [-TimeoutSec <Int32>] [-Organization <String>]
[-Version <String>] [<CommonParameters>]
Parameters (9)
Reference facts derived from Microsoft documentation, © Microsoft, licensed MIT; restructured with original guidance by serv365.ai.