The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi,
I'm trying to use the Power BI Rest API via Powershell authenticating with my service principle to retrieve a workspaceid for a given named workspace via "Get-PowerBIWorkspace", unfortunately I receive "Get-PowerBIWorkspace : Operation returned an invalid status code 'Unauthorized'"?? Do service principles not have access to this API? I can access via "Login-PowerBIServiceAccount" authenticating with my Power BI Admin account so I guess not. How can I re-write the below for the APIs a service principle can access?...
Solved! Go to Solution.
Fixed this by removing "-Scope Organization"
That was surprisingly easy 🙂
Fixed this by removing "-Scope Organization"
That was surprisingly easy 🙂
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
15 | |
12 | |
4 | |
4 | |
2 |