cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mbhmahdi
New Member

Failed to connect powerbi service with powershell

I face this error when trying to connect to powerbi from powershell with an organizational account.

InkedError1.jpg

 

1 ACCEPTED SOLUTION
yingyinr
Community Support
Community Support

Hi @mbhmahdi ,

First, verify that the PowerShell module below is installed and that the supported environments and PowerShell versions are met. Please find all details in this official documentation.

PowerShell modulesPowerShell modules

Supported environments and PowerShell versionsSupported environments and PowerShell versions

I found the following posts with similar problems to yours, please check them for solutions. Hopefully they will help you solve your problem.

Connect-PowerBIServiceAccount: Failed to populate environments in settings

Install the cmdlets againInstall the cmdlets again

Unable to Connect with Power BI Service using PowerShell

Update the version of Net FrameworkUpdate the version of Net Framework

Suddenly unable to connect to the Power BI Service using Connect-PowerBIServiceAccount #248

Invoke-RestMethod - TLS 1.0 to TLS 1.2Invoke-RestMethod - TLS 1.0 to TLS 1.2

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
yingyinr
Community Support
Community Support

Hi @mbhmahdi ,

Whether your problem has been resolved? If yes, could you please mark the helpful post as Answered? It will help the others in the community find the solution easily if they face the same problem with you. Thank you.

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
yingyinr
Community Support
Community Support

Hi @mbhmahdi ,

First, verify that the PowerShell module below is installed and that the supported environments and PowerShell versions are met. Please find all details in this official documentation.

PowerShell modulesPowerShell modules

Supported environments and PowerShell versionsSupported environments and PowerShell versions

I found the following posts with similar problems to yours, please check them for solutions. Hopefully they will help you solve your problem.

Connect-PowerBIServiceAccount: Failed to populate environments in settings

Install the cmdlets againInstall the cmdlets again

Unable to Connect with Power BI Service using PowerShell

Update the version of Net FrameworkUpdate the version of Net Framework

Suddenly unable to connect to the Power BI Service using Connect-PowerBIServiceAccount #248

Invoke-RestMethod - TLS 1.0 to TLS 1.2Invoke-RestMethod - TLS 1.0 to TLS 1.2

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!