cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jsilva24
Frequent Visitor

Power BI Embedded AI functions with Service Principal

Hi,

We currently are attempting to use The AI functions in a report that will live in our A2 Premium Capacity workspace. With the Power BI Rest API, I was able to successfully populate the AI Functions Datasource with an access token that belonged to my personal account, refresh the dataset, and see the AI values for Sentiment Analysis.

 

However, our approach is an app owns data approach, which utilizes the Service Principal account. We would like to use the Service Principal account instead of a User account. I attempted to similarly populate the AI Functions Datasource with the same access token that the service principle uses to access the Power BI Rest API. The update was successful, and the refresh also 'completes' however when I try to create a report, the AI values for Sentiment Analysis are empty.

 

So is it possible to use a Service Principal account that, similar to my user account, is an admin in the capacity and workspace to use as the requirement for the AI Functions Datasource?

 

If so, does the access token need to be retrieved in a particular way?

 

More Details:

1. The access token that was successfully used with my User account was picked up from fiddler while observing the https/http traffic when power bi desktop is connecting and refreshing the dataset locally.

2. The access token used in our app owns data uses the recommended sdk which uses POST https://login.windows.net/{tenantId}/oauth2/token

 

Thank You!

2 REPLIES 2
yingyinr
Community Support
Community Support

Hi @jsilva24 ,

Please check whether it hit any following limitations when embed with Service Principal:

Considerations and limitations

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @yingyinr 

Thank you for the response. I did not find that any limitations are met as none of them mention anything AI related.

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Get Ready for Power BI Dev Camp

Power BI Dev Camp - June 24th

Mark your calendars and join us for our next Power BI Dev Camp!

Top Kudoed Authors