Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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 has following permissions:
I tried 2 methodes to connect:
1. Connect-PowerBIServiceAccount -ServicePrincipal -CertificateThumbprint xxxxxx -ApplicationId yyyyyyyy
Error:
2. Solution found here: https://github.com/microsoft/powerbi-powershell/issues/215
$secureServicePrincipalPassword= ConvertTo-SecureString $ServicePrincipalSecret -AsPlainText -Force
$servicePrincipal = New-Object -TypeName PSCredential -ArgumentList $ServicePrincipalId, $secureServicePrincipalPassword
Connect-PowerBIServiceAccount -ServicePrincipal -Credential $servicePrincipal -Environment Public -Tenant xxxxxxxx
Error:
And I am quite sure, that I can coppy the ID rom AAD.
Do you have an idea, what is wrong here?
Solved! Go to Solution.
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
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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
8 | |
6 | |
5 | |
2 | |
2 |
User | Count |
---|---|
4 | |
4 | |
3 | |
3 | |
2 |