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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors