This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi,
I'm trying to get a service principal set up so I can connect to PowerBI with PowerShell. I want to do it in the background so the user won't have any interaction with the scripts.
I've been following along with a video a found https://youtu.be/WaKvZgjTWmo?t=2937 but am running into a permissions issue.
Get-PowerBIWorkspace : Operation returned an invalid status code 'Unauthorized'
I've set up the App Registration in Azure, set up a secret, and added the App as an admin on the PowerBI workspace. Also enabled developer settings in PowerBI and added a AD group that I set up to use PowerBI APIs. I even added the App as a member of the AD group despite it not being strictly instructed.
Maybe that's what I'm missing. I don't see any instructions on how to connect the AD group to the App.
I'd be happy to provide more information if needed.
Solved! Go to Solution.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 3 | |
| 3 | |
| 2 |