Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
Hello Everyone,
I am working on setting up a dashboard which will show the usage metrics for all the PowerBI reports being created across various workspaces that I have. In order to capture the usage metrics, I am using a PowerShell script that collects the data using a REST API. I have followed the steps mentioned in the link : Power BI Usage Metrics Across All Workspaces: Step by Step (proserveit.com)
However, when I run the code, I am getting the below mentioned error.
'Invoke-RestMethod : The remote server returned an error: (404) Not Found.'
Can anyone please let me know how can this be resolved? Is there any additional admin rights or changes in the code that I need to be aware of?
Thanks and Regards,
Anushri Bhagwath
Please show the sanitized URL of your call against the activity log.