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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Anonymous
Not applicable

Powershell runbook PowerBI API connection with managed identity

Hello

Is it possible to connect to powerbi service from a powershell runbook using a managed identity ?
Now I am using a run as account connection.

2 REPLIES 2
Anonymous
Not applicable

@Anonymous thank you for your response, but I think the example above doesn't use a managed identity connection.
I had the idea to create a security group than add the managed identity of ADF than add the security group as an admin of the powerbi workspace.
Then, I don't know how to connect to powerbi service with a powershell runbook.

Anonymous
Not applicable

Hi @Anonymous ,

 

Please take a look at the following blog to see if it helps, Four things you need to do:

- Create automation account.

- Create credential asset.

- Import needed modules.

- Setup runbook with script and schedule it.

 

Integrating PowerShell with PowerBI: Automating in... - Microsoft Power BI Community

 

Best Regards,
Community Support Team _ Caitlyn

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.