User Profile
nkasdali
Microsoft Employee
Joined 8 years ago
User Widgets
Contributions
- 1.3KViews0likes0Comments
- 1.4KViews0likes2Comments
GetDatasourcesAsAdmin Powershell help
Hi All, I need your help to build this ForEach loop, unfortunately i'm not familiar with PowerShell. First API call helps me to get all my datasets, then, i have to passe the "id" of each one to the datasource APi call : ################## GET Datasets DATA########################################### Write-Host("Getting datasets data.....") $DatasetsApi = 'https://api.powerbi.com/v1.0/myorg/admin/datasets?$top=2' $DatasetsCall = Invoke-PowerBIRestMethod -Url $DatasetsApi -Method Get ################## GET Datasources DATA########################################### ForEach ($DatasetsCall in $DatasetsCall) { $DatasourceApi = 'https://api.powerbi.com/v1.0/myorg/admin/datasets/&'+$DatasetsCall.id+'&/datasources' $DatasourceCall = Invoke-PowerBIRestMethod -Url $DatasourceApi -Method Get $DatasourceCall } Thank you for your helpSolved1.4KViews0likes3CommentsGen2 and XMLA Endpoint
Hi All, When moving my premium to Gen2, all my connection using the XMLA Endpoint aren't working, and got this message : TITLE: Connect to Server ------------------------------ Cannot connect to powerbi://api.powerbi.com/v1.0/myorg/xxxx. ------------------------------ ADDITIONAL INFORMATION: Analysis Services instance you are connecting to has moved. Please reconnect. (Microsoft.AnalysisServices.AdomdClient) ------------------------------ BUTTONS: OK ------------------------------ Any idea ? regards1.3KViews0likes4Comments
Data Privacy
Microsoft Fabric Community and Privacy
To learn more about how we manage your data, please review the Microsoft Fabric Community Data Privacy guide.