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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
jmartel
Frequent Visitor

Is there anyone familiar with: https://wabi-us-north-central-d-primary-redirect.analysis.windows.net

Hello !

Im taking a chance after searching hours on the Microsoft website and in the examples script.
Is there anyone familiar with: https://wabi-us-north-central-d-primary-redirect.analysis.windows.net/metadata/reports/$reportId/con....

I am looking to use that to fetch all reports in workspaces. --> Contact owner infos.

I was able to get that to works with 2 APIS
-Invoke-PowerBIRestMethod -Verbose -Url "https://wabi-us-north-central-d-primary-redirect.analysis.windows.net/metadata/reports/$reported/" -Method Get

-Invoke-PowerBIRestMethod -Verbose -Url "https://wabi-us-north-central-d-primary-redirect.analysis.windows.net/metadata/reports/$reportId/con..." -Method Get

The issue I am having is that I can only get the workspaces-reports that I am part of it. I do have a SPN with all api permission for PowerBi Service, with also Tenant.ReadAll but not success.

If anyone was able to get further with this? thanks!

1 ACCEPTED SOLUTION

Yes, all the admin commands api were not working with the SPN. Now I i did found that it finally works after i have done this:

DELETE all the API permission I had. From a Microsoft doc, I found that the app MUST NOT have any admin-consent required. With the api permissions I had, some were admin consent. All fixed now!

View solution in original post

3 REPLIES 3
v-yueyunzh-msft
Community Support
Community Support

Hi , @jmartel 

According to your description, you want to  fetch all reports in workspaces . 

For your need , i think you need to use the Admin REST API to get all reports in workspaces.

For this API, you can refer to this :
Admin - Reports GetReportsAsAdmin - REST API (Power BI Power BI REST APIs) | Microsoft Learn

 

You can also use "Try it" to test in the browser:

vyueyunzhmsft_0-1682560486508.png

Also , you can get this request in PowerShell.

 

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

Yes, all the admin commands api were not working with the SPN. Now I i did found that it finally works after i have done this:

DELETE all the API permission I had. From a Microsoft doc, I found that the app MUST NOT have any admin-consent required. With the api permissions I had, some were admin consent. All fixed now!

Just a heads up.

 

The admin API does works good since April with the SPN as well. 

 

However, all the wabi api (no publick Microsoft api is available yet) are NOT working with the SPN.

 

 

I am looking to use that to fetch all reports in workspaces. --> Contact owner infos.

 

I was able to get that to works with 2 APIS (with my admin account)
-Invoke-PowerBIRestMethod -Verbose -Url "https://wabi-us-north-central-d-primary-redirect.analysis.windows.net/metadata/reports/$reported/" -Method Get

-Invoke-PowerBIRestMethod -Verbose -Url "https://wabi-us-north-central-d-primary-redirect.analysis.windows.net/metadata/reports/$reportId/con..." -Method Get

The issue I am having is that I can only get the workspaces-reports that I am part of it. I do have a SPN with no api permission for PowerBi Service, as Microsoft doc suggest.

 

If anyone was able to get further with this? thanks!

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

Check out the April 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors