Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Login-PowerBI not working

I really dont get why this doesnt work?

 

 

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

 

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Anonymous ,

    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

    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

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

    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

    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

  • Anonymous's avatar
    Anonymous
    Not applicable

    I do not understand why it does not work:

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Anonymous ,

      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.

       

      Best Regards