Commands › Power BI

Get-PowerBIActivityEvent

Power BI MicrosoftPowerBIMgmt Get-*

Retrieves the audit activity events for a Power BI tenant.

Quick start script

# Get-PowerBIActivityEvent — 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-PowerBIActivityEvent -EndDateTime <String> -StartDateTime <String> | Format-List

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

Syntax

Get-PowerBIActivityEvent -StartDateTime <String> -EndDateTime <String> [-ActivityType <String>]
 [-User <String>] [-ResultType <OutputType>] [<CommonParameters>]

Parameters (5)

ParameterTypeRequiredWhat it controls
-ActivityType String Filters the activity records based on this activity type.
-EndDateTime String yes Specifies the end of a timespan to retrieve audit activity events. It should be in UTC format and ISO 8601 compliant. Both StartDateTime and EndDateTime should be within the same UTC day.
-ResultType OutputType Specifies the type of result that is returned by the cmdlet.
-StartDateTime String yes Specifies the start of a timespan to retrieve audit activity events. It should be in UTC format and ISO 8601 compliant. Both StartDateTime and EndDateTime should be within the same UTC day.
-User String Filters the activity records based on this user email.

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