I am trying to use powerBI rest API to update the data source. I am using the below API call.
it is executing successfully but the reports are not rendering and when I execute get data sources API, I am not seeing the data sourceID and the gatewayID. what is the problem here?
Invoke-PowerBIRestMethod -Url
"https://api.powerbi.com/v1.0/myorg/groups/$($WorkSpaceId)/datasets/$($DataSetId)/Default.UpdateDatasources" -Method Post -Body $post
Here is the Body
datasourceSelector = @{
datasourceType = "AnalysisServices"
connectionDetails = @{
server = $OldServer
database = "generalledger"
}
}
connectionDetails = @{
server = $NewServer
database = "generalledger"
}
question from:
https://stackoverflow.com/questions/65933859/power-rest-api-update-data-source-for-azure-analysis-services 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…