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
Anonymous
Not applicable

Connect-PowerBIServiceAccount : Failed to populate environments in settings

Hello all,

 

I have been running this command without any issue for more than a year: Connect-PowerBIServiceAccount.

Since yesterday, it keeps failing with the following error:

 

Connect-PowerBIServiceAccount : Failed to populate environments in settings.

FullyQualifiedErrorId : Failed to populate environments in settings,Microsoft.PowerBI.Commands.Profile.ConnectPowerBIServiceAccount

 

I am running it from Windows Powershell ISE. Please kindly assist.


Regards

Joe

1 ACCEPTED SOLUTION
AaronL
New Member

Had the same error, although this is the first time i have setup it up.

 

Found this thread which worked for me: https://community.powerbi.com/t5/Service/PowerShell-Login-to-Power-BI-Write-Error/m-p/1095055#M96357

 

The short of it was to install each module individually (I think MicrosoftPowerBIMgmt.Profile was the key one):

Install-Module -Name MicrosoftPowerBIMgmt.Admin
Install-Module -Name MicrosoftPowerBIMgmt.Capacities
Install-Module -Name MicrosoftPowerBIMgmt.Data
Install-Module -Name MicrosoftPowerBIMgmt.Profile
Install-Module -Name MicrosoftPowerBIMgmt.Reports
Install-Module -Name MicrosoftPowerBIMgmt.Workspaces

 After doing that the command worked for me.

Connect-PowerBIServiceAccount

Hope this helps.

 

View solution in original post

5 REPLIES 5
AaronL
New Member

Had the same error, although this is the first time i have setup it up.

 

Found this thread which worked for me: https://community.powerbi.com/t5/Service/PowerShell-Login-to-Power-BI-Write-Error/m-p/1095055#M96357

 

The short of it was to install each module individually (I think MicrosoftPowerBIMgmt.Profile was the key one):

Install-Module -Name MicrosoftPowerBIMgmt.Admin
Install-Module -Name MicrosoftPowerBIMgmt.Capacities
Install-Module -Name MicrosoftPowerBIMgmt.Data
Install-Module -Name MicrosoftPowerBIMgmt.Profile
Install-Module -Name MicrosoftPowerBIMgmt.Reports
Install-Module -Name MicrosoftPowerBIMgmt.Workspaces

 After doing that the command worked for me.

Connect-PowerBIServiceAccount

Hope this helps.

 

Anonymous
Not applicable

Thanks so much Aaron.

Anonymous
Not applicable

Thank you, Aaron. That was the fix! 

Anonymous
Not applicable

@Anonymous what's your OS and did you recently get this update? KB4569746. We're on Win2016 and are facing the same issue. Another team of ours are on Win2012 R2 and got a similar update KB4570508 and their script is still working.

Anonymous
Not applicable

Hi zzfaithlezz,

We are on Windows Server 2012 R2. Last updates happened in 2017.

Once Microsoft get back to you, please kindly share the recommendations to fix the issue.

 

Regards

Joe

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.