Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello,
Just after some assistance with the Invoke-PowerBIRestMethod PowerShell command as I'm trying replicate this with the URI parameters as per link:
Admin - WorkspaceInfo PostWorkspaceInfo - REST API (Power BI Power BI REST APIs) | Microsoft Docs
So the command I have as follows:
$body = '{"workspaces": ["workspaceID"
,"workspaceID"]}'
Invoke-PowerBIRestMethod -Url 'https://api.powerbi.com/v1.0/myorg/admin/workspaces/getInfo?lineage=True&datasourceDetails=True&data...' -Method POST -Body $body
This sucessfully gives me a scan ID to obtain a scan result, which I then run as:
Invoke-PowerBIRestMethod -Url 'https://api.powerbi.com/v1.0/myorg/admin/workspaces/scanResult/{scanID}' -Method GET | ConvertFrom-Json | ConvertTo-Json | Out-File C:\Temp\WorkSpace_OutPut.json
This sucessfully output's the json file however when I view the contents I'm missing the following data as shown:
Missing "reports"
"dashboards"
"datasets"
etc.
This is what I'm after from Admin - WorkspaceInfo GetScanResult - REST API (Power BI Power BI REST APIs) | Microsoft Docs as shown:
Any assistance would be greatly appreciated.
Thanks.
Hi @richoking
Could it be that something is missing the in API call?
I have used the following Power Automate flow which has worked well for me.
Using the Power BI Scanner API to Manage Tenant's Entire Metadata -
Hi @richoking
As oer the link you sent through, can you confirm that you have got the metadata scanning enabled
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.