Forum Discussion

jeremic_nikola's avatar
jeremic_nikola
Frequent Visitor
2 years ago

Authenting to Fabric Lakehouse SQL Endpoint using Service Principal

Hi,

 

I am using App-Owns-Data embed scenario in a multi-tenant environment. Some of my paginated reports need connection to Fabric Lakehouse (data is from MongoDB so needs to be preprocessed and stored in a Lakehouse).

 

When assigning report to a tenant (copying the report from master workspace) I need to patch credentials. I am using PowerBI API 4.16. - Gateways.UpdateDataSourcesAsync method. I am trying to patch credentials of a service principal. I've tried to create credentials using basic authentication as well as OAuth2. I am unable to patch Service Principal credentials (receiving Unauthorized response from the API. The same happen when I try Service Principal authentication over Azure SQL database. 

 

Did anyone have similar issue? Any suggestions?

 

Thanks and regards,

Nikola

2 Replies