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
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.