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....
m-colbert
Resolver III
3 years agoWhich API method are you trying to invoke? If you are trying to inboke a method that is not an admin method, than the service principal must have access to the workspace.
- willz06jw3 years ago
Helper II
Just the general "Invoke-PowerBIRestMethod -Url 'apps' -Method Get" fails