Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
devops_user
New Member

PowerBI PowerShell Login Issues: Authentication with username and password not supported ...

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.

1 REPLY 1
GilbertQ
Super User
Super User

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





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors