Forum Discussion
skumar73
1 year agoHelper I
New-PowerBIReport is throwing BadRequest error with Connect-PowerBIServiceAccount Silent login
I'm running into an issue with my PowerShell script that uses the New-PowerBIReport cmdlet. When I authenticate using Connect-PowerBIServiceAccount with silent login, the script throws a BadRequest e...
- 11 months ago
Yes, Anjan. I opened a ticket yesterday and have a call scheduled with Microsoft today to go over the issue. Thanks again to everyone for your help and support so far.
Shahid12523
1 year agoCommunity Champion
New-PowerBIReport fails with service principal login because PBIX upload is blocked by default.
Fix:
In Power BI Admin Portal → Tenant settings, enable service principal for PBIX upload.
Ensure service principal has Admin/Member access to the workspace.
Without this, only interactive login works.