Forum Discussion

pborah's avatar
pborah
Icon for Solution Sage rankSolution Sage
1 year ago
Solved

Get all reports within apps via Invoke-PowerBIRestMethod in powershell

I'm a workspace admin for all workspaces in our tenant and the owner of all our production apps. While we wait for our infrastructure team to authorize a service principal in AD to be able to make ca...
  • lbendlin's avatar
    1 year ago

    You are using 

    Invoke-PowerBIRestMethod

    so you can use relative URLs

     

    $apps = Invoke-PowerBIRestMethod -Url "apps" -Method Get

     

    Apps don't have reports. Workspaces have reports. Do your loop across groups, not apps.