Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Nagendray
Helper II
Helper II

Extracting power bi audit logs using service principal and application secret in power shell

Hi All,

 

I am using powershell script to extract power bi audit logs  by providing my credentials, beacuse i am the power bi administrator in my organisation. After researching many articles, found that using  service principal and an application secret in powershell. Is it possible to extract power bi audit logs using service principal and an application secret in power shell.

 

Thanks in advance.

3 REPLIES 3
lbendlin
Super User
Super User

Yes?  What's your actual question?

My question is I want to run power shell script automatically, because if I give my credentials and run script,it will prompt credential because of MFA.That's why instead of my credentials I want to give service principal and application ID. Automate the script using task scheduler.

For that you will need to talk your global admins to allow you to create such a service principal.  Might be a tough negotiation.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors