Forum Discussion
Devops Automation of Embedded Power BI
- 5 years ago
This is solved. Place of Powershell variable declaration in a script have an issue
Thanks
I have run Power BI API to change database by calling
"$datasourePatchUrl = "https://api.powerbi.com/v1.0/myorg/groups/$targetworkspaceId/datasets/$importeddatasetId/Default.UpdateDatasources" .I have used admin user credential hardcoded to acquire token.
Its works perfectly on my local computer
By when I run the same script on Vsts pipeline on powershell task , its run all PowerBI rest api such as aaquire token , get workspaces , get datasets ect , but its fails while updating db change "Default.UpdateDatasources" api .Its throw error "
I didn't understand how 404 status throw even same script run perfectly on local
Please help me out
TIA
Hi paritoshmishra ,
In other words, you can execute this script on the local PowerShell, but you can’t execute this script on Azure Pipelines?
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- paritoshmishra5 years ago
Helper I
This is solved. Place of Powershell variable declaration in a script have an issue
Thanks