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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors