Forum Discussion
Anonymous
6 years agoNot applicable
Extract all data source information from Power BI dataset
Hello, is there a way using Powershell Power BI API to extract data source artifacts (i.e database server name, database name, database schema name, database tables, columns names, flat file path an...
Jayendran
6 years agoSolution Sage
Hi Anonymous ,
Yes there is a PowerShell (internally calls the PowerBI REST API Datasets - Get Datasources)
REST API : https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/getdatasourcesingroup
Invoke-PowerBIRestMethod -Url 'groups/{groupId}/datasets/{datasetId}/datasources' -Method Get
Note that this can only gives the datasources like server,database,url and not schema name,columns name which you posted originally.