Forum Discussion
(PowerShell) Connect-PowerBIServiceAccount not working
- 5 years ago
Problem found and solved!
It turned out that an update to the PowerShell extension for VS Code set this value "powershell.useX86Host": true. In other words, it started running 32 bit as default. Manually changing it back to x64 like shown in the screenshots belov solved the problem:
Cheers, Mike
Maybe helpfull to note that recently I noticed that MSAL throws errors when trying to log on using interactive logon like explained on the site of Reza Rad https://radacad.com/powershell-cmdlets-for-power-bi-what-is-it-and-why-should-you-care/ . Like pasted below.
Now Powershell-ISE blocks on that, the popup does not come up. But the normal Powershell client continues after the warning. And still gives the opertunity to aquire a bearer token.
WARNING: False MSAL 4.64.0.0 MSAL.CoreCLR .NET Framework 4.8.9325.0 Microsoft Windows 10.0.26200 [2026-06-16
12:57:14Z] [MSAL:0001] WARNING SetAuthorityUri:78 Initializing authority from URI
'https://login.microsoftonline.com/organizations/' without authority type, defaulting to MsSts