Forum Discussion
willz06jw
Helper II
3 years agoPowerShell WriteError: InvokePowerBIRestMethod when authenticated with Connect-PowerBIServiceAccount
Hi, I have a PowerShell script which is erroring out. When I authenticate with "Login-PowerBI", the script works perfectly. When I authenticate with Connect-PowerBIServiceAccount it errors out....
willz06jw
Helper II
3 years agoI have added my service principle (which for people wondering, is automatically created when I registered my Azure App) to the security group which is listed on this Power BI tenant setting, but the PowerShell script still crashes when I authenticate using this method.
willz06jw
Helper II
3 years agoHere is what it says when I run the script:
- willz06jw3 years ago
Helper II
One strange thing on this issue, is that see from the screenshot, it doesn't give the TenantID in the response (even though it is specified in the script) and it lists the environment as 'Public'. Hmm