Forum Discussion
riyajshaikh09
3 years agoFrequent Visitor
Issue while creating data source under Data Gateway using powershell
I am using powershell for .pbix to deployment in workspaces. As part of that i need to create SQL datasource under gateway for further use. I am using powerbI rest API with service principle : https:...
PierreHusted
3 years agoNew Member
I've got the same problem.
Just gonna keep an eye here, in case you figure it out.
riyajshaikh09
3 years agoFrequent Visitor
I am able to solve this problem, In my case credential encryption was not correct. using owershell i was not able to encrypt credentials correctly.
To solve this i used C# code from below sample to encrypt credentials. So I created C# console application and use that .exe to encrypt credentials.
https://github.com/microsoft/PowerBI-Developer-Samples/tree/master/.NET%20Core/EncryptCredentials