Microsoft Power BI team released a new update recently on Power BI Embedded to use service principal whenever it required. In this article, I am explaining that how to add service principal into Power BI service workspace which is not a direct way.
Service principal should be added into Power BI using REST API. Follow the below steps.
First create Power BI new workspace.
Add the service principal as a user with admin access. To perform this step, we need to use Power BI REST API.
I have used postman to complete this step.
First, I generated the authorization token. POST https://login.microsoftonline.com/common/oauth2/token?
Then added the service principal into the Power BI workspace.