Forum Discussion
oyermokhin
5 years agoRegular Visitor
Using service principal for the datasource credentials
Hi! I use service principal to connect from PowerBI service to Azure Data Explorer (direct query mode). Pbix is file uploaded to service via power shell. After that I get oauth2 access token for ...
stefan_c2d
4 years agoRegular Visitor
Anonymous I'm currently facing the same issue. The reason why the token is only valid for one day/hour is that when you manually set the OAUTH access token for your datasource (which you apparently need to do for an SP), it will use this token until it expired. I would like to know what's the difference how the credentials are set when you use a normal user account where the token refreshes automaticall.
oyermokhin did you ever solve this problem?