Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi,
I'm trying to use Powershell to pull data lineage information from the API. My thought was that I could enumerate the reports in a workspace, then enumerate the datasets that feed those reports, and then enumerate the data sources that feed the dataset.
My first trial run was using the get-powerbidatasource cmdlet to return the data sources associated with a given dataset.
Connect-PowerBIServiceAccount
Get-PowerBIDatasource -DatasetId b4fe03be-07ca-4d4d-81d7-bc67877022d2
The API returns an answer, but rather than giving me all the detail about the source, the only thing it returns is DatasourceType and ConnectionDetails. Name, ConnectionString, GatewayID, and DatasourceID are all blank.
Name :
ConnectionString :
DatasourceType : AnalysisServices
ConnectionDetails : Microsoft.PowerBI.Common.Api.Shared.DatasourceConnectionDetails
GatewayId :
DatasourceId :
Any ideas on what I'm doing wrong?
Thanks!
Anyone found a solution to this? Invoking REST API calls via Powershell cmdlets is pretty slow, especially if you have thousands of datasets to query.
I'm having the same issue. Are there any resources that point to how blank results from using Power BI cmdlets in Powershell can be resolved.
Bump - any thoughts on this? The API call GET https://api.powerbi.com/v1.0/myorg/datasets/{datasetId}/datasources returns all of the information I'm looking for in JSON format. I'm just curious why the cmdlet doesn't return the same things as the API call?
Thanks!
Hi AUaero, did you ever find an answer to this? I am running into the same issue. My guess is "connectionDetails" is supposed to have that data, but I get the same results back.
User | Count |
---|---|
15 | |
2 | |
1 | |
1 | |
1 |
User | Count |
---|---|
18 | |
11 | |
5 | |
4 | |
3 |