How to fetch Power BI Service audit logs using Search-UnifiedAuditLog cmdlet?

Silpa C 0 Reputation points
2025-03-21T14:51:46.3233333+00:00

I am trying to fetch the audit logs for Power BI Service using Search-UnifiedAuditLog but the cmdlet is not returning any logs for Power BI even though there is logs present. I am able to fetch logs for SharePoint Online and Exchange.

I am using the below lines of code

Connect-ExchangeOnline -AppId $ClientId -CertificateThumbprint $CertificateThumbprint -Organization $Organization -ShowBanner:$false

$Results= Search-UnifiedAuditLog -StartDate $CurrentStart -EndDate $CurrentEnd -RecordType PowerBIAudit

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,906 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Molly Lu-MSFT 2,506 Reputation points Microsoft External Staff
    2025-03-24T08:40:37.2533333+00:00

    Hello,

    Thank you for posting in Microsoft Q&A.

    Based on the description, I understand your question is related to fetch Power BI Service audit logs using Search-UnifiedAuditLog cmdlet.

    You need to have the Audit Logs role in the Security & Compliance Center and be a Power BI Service Administrator. Check that audit logging is enabled for Power BI in your organization. You can check this in the Power BI admin portal under Audit logs. Check the date range specified in -StartDate and -EndDate includes the period when the activities occurred.

    Check if there are any errors or warnings that might indicate why the logs are not being returned after run the cmdlet.

    You can also check more info in below link:

    https://community.fabric.microsoft.com/

    Have a nice day.

    Best Regards,

    Molly

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.