Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
I need to deploy a pbix file to power I online, inside a workspace, but I cannot use a username and password. Only an app clientID and secret. I’m trying to create an unattending PowerShell script.
There is a delegation role for power I that is Tenant.ReadWrite.All, which by the sounds of things should allow you to do anything within powerBI.
Unfortunately, any attempts at a connection, I can get a bearer token, but any REST API calls after that always returns with a 401 unauthorised status message.
I can share my code tomorrow (when I’m on my work pc), but is it actually possible to do what I’m attempting. Any examples or prebuilt PowerShell powerBI modules always needs a username and password for authentication.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 1 |