Forum Discussion

JoanLel's avatar
JoanLel
Regular Visitor
4 years ago
Solved

PowerShell Unable to connect with app registration

Dear community,   I need to get a report about usage of PowerBI in my tenant.   I installed PowerBi module, but when I try to connect with App Registration, I get nothing but errors.    My app ...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi JoanLel ,

    Based on your error message, it seems to be a problem with permissions and account authentication. Are you trying to use Powershell to call some API or implement some other functionality? Could you provide more detailed information please? Before using Powershell, please check the prerequisite information below to make sure you have the proper permissions.

    Microsoft Power BI Cmdlets for Windows PowerShell and PowerShell Core


    Usage

    Two scopes are supported by cmdlets that interact with Power BI entities:

    • Individual is used to access entities that belong to the current user.
    • Organization is used to access entities across the entire company. Only Power BI tenant admins are allowed to use.

    If the -Scope parameter doesn't exist on the cmdlet, the entity doesn't support an Administrative API.


    In addition, here are some links that describe using Powershell to get Power BI information. Please check them out and I hope they will help you.

    Power BI Usage Metrics Across All Workspaces: Step by Step

    Power BI PowerShell and the Admin API

    Best Regards