Forum Discussion
Use a Service Principal to deploy a PowerBI report against Databricks OAuth with Direct Query
Have you tried to update the data source via the REST API after publishing?
Gateways - Update Datasource - REST API (Power BI Power BI REST APIs) | Microsoft Docs
I have tried that, it doesn't work (or at least I couldn't construct a message that would work).
When comparing the working dataset (deployed with a user account) and the broken one pre-takeover (deployed with a service principal), the differences are the CredentialType and CredentialDetails\useEndUserOAuth2Credentials properties. When I try and patch them in I get a PowerShell error:
Tracing the error using Fiddler shows this error body (note that no type is mentioned):
"{"error":{"code":"InvalidRequest","message":"Property useEndUserOAuth2Credentials is only supported with credentials of type and datasource type of Extension"}}"
- Anonymous3 years agoNot applicable
Hello
Did you set-up oauth app additionally? Or is it not required? Was the service principal issue resolved?