Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hello,
I'm trying to login to my Power BI Service through with ansible. My Linux Ansible VM has "pwsh" installed and all the necessary Power BI modules:
MicrosoftPowerBIMgmt.Admin
MicrosoftPowerBIMgmt.Capacities
MicrosoftPowerBIMgmt.Data
MicrosoftPowerBIMgmt.Profile
MicrosoftPowerBIMgmt.Reports
MicrosoftPowerBIMgmt.Workspaces
I've already created a script that manages to login to PowerBI and update a report .pbix file into my workspace. This script works perfectly fine if I login to Power BI through my machine. When I try to execute the login command:
Connect-PowerBIServiceAccount -Credential $credential
I receive the following error:
One or more errors occurred. (User and password authentication is not supported in .NET Core or with DeviceCode authentication.)
How can I solve this?
Thank you very much.
Hi @devops_user
As far as I am aware it will not work on a Linux PC, you need to have it running on a Windows PC, which you have said works on your PC
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.