Skip to content

Instantly share code, notes, and snippets.

@SQLvariant
Created December 10, 2019 19:22
Show Gist options
  • Select an option

  • Save SQLvariant/27e919da7f1843ae8aa87e5a314660f9 to your computer and use it in GitHub Desktop.

Select an option

Save SQLvariant/27e919da7f1843ae8aa87e5a314660f9 to your computer and use it in GitHub Desktop.
PowerShell Notebook showing how to use both cmdlets available for extracting Power BI audit log events
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hamedelbhrawy
Copy link
Copy Markdown

return :

Get-PowerBIActivityEvent : Operation returned an invalid status code 'BadRequest'
At line:7 char:5

  • Get-PowerBIActivityEvent -StartDateTime $StartDate -EndDateTime $ ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : WriteError: (Microsoft.Power...BIActivityEvent:GetPowerBIActivityEvent) [Get-PowerBIAct
      ivityEvent], HttpOperationException
    • FullyQualifiedErrorId : Operation returned an invalid status code 'BadRequest',Microsoft.PowerBI.Commands.Admin
      .GetPowerBIActivityEvent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment