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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
ovonel
Post Prodigy
Post Prodigy

Login-PowerBI not working

I really dont get why this doesnt work?

ovonel_0-1716465444657.png

 

 

This is very frustrating, I am following this very simple example from Install Power BI PowerShell On Your Windows Machine (c-sharpcorner.com)

 

1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

Hi @ovonel ,

It sounds like the PowerShell module for Power BI is not installed or not properly loaded. To fix this, you can try the following steps:

1. Open PowerShell as an administrator

2. Run the command "Install-Module -Name MicrosoftPowerBIMgmt"

Installation

Install-Module -Name MicrosoftPowerBIMgmt

vyiruanmsft_0-1716519572001.png

3. If prompted to install the NuGet provider, type "Y" and press Enter

4. Once the installation is complete, run the command "Import-Module -Name MicrosoftPowerBIMgmt"

5. Try running the "Login-PowerBI" cmdlet again and see if the error is resolved.

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

3 REPLIES 3
ovonel
Post Prodigy
Post Prodigy

I do not understand why it does not work:

ovonel_0-1716536727139.png

 

Hi @ovonel ,

I just tested in my side, it works well (see the ones in below screenshot). Please make sure the following conditions be statisfied:

Supported environments and PowerShell versions

  • Windows PowerShell v3.0 and up with .NET 4.7.1 or above.
  • PowerShell Core (v6) and up on any OS platform supported by PowerShell Core.

 vyiruanmsft_0-1716537655661.png

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.
v-yiruan-msft
Community Support
Community Support

Hi @ovonel ,

It sounds like the PowerShell module for Power BI is not installed or not properly loaded. To fix this, you can try the following steps:

1. Open PowerShell as an administrator

2. Run the command "Install-Module -Name MicrosoftPowerBIMgmt"

Installation

Install-Module -Name MicrosoftPowerBIMgmt

vyiruanmsft_0-1716519572001.png

3. If prompted to install the NuGet provider, type "Y" and press Enter

4. Once the installation is complete, run the command "Import-Module -Name MicrosoftPowerBIMgmt"

5. Try running the "Login-PowerBI" cmdlet again and see if the error is resolved.

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.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.