Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I have a script using a service principal to extract power bi workspaces on our tenant.
When I use the code below I get an Unauthroized error code in power shell. This had worked for moths on end before it suddenly stopped. I tried re adding back -Scope Organization and that did not solve the issue either.
$workspaces = Get-PowerBIWorkspace -All
Any ideas?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.