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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors