Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I am using Powersehll in Azure run book with Service principal account to connect PowerBI. However, I am unable to fetch the datasource with the help of Report ID.
I've tried the below API to get the datasources based on the reportid but powershell encountered an error.
GET https://api.powerbi.com/v1.0/myorg/reports/{reportId}/datasources
Source Code example.
/*
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.