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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. 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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors