Forum Discussion

Zulaikha's avatar
Zulaikha
Frequent Visitor
1 year ago
Solved

Embed into web application using API

Hi All,
I'm embedding a powerbi report into a web application using Service Principal.

 

Currently we have PowerBI PRO license. But it is getting embedded along with 

 

Any idea how to resolve this?

 

  • To embed a Power BI report in a web application using a Service Principal, you’ll need a Power BI Premium or Premium Per User (PPU) license. A Power BI Pro license alone won’t support embedding for external users or clients, which seems to be the issue here.

    Here’s a step-by-step outline to resolve it:

    1. Upgrade to Premium/PPU Capacity:

    • Premium Capacity (P1, P2, etc.): If your organization can manage Premium capacity, this will allow multiple users to access embedded reports without additional Pro licenses.
    • Premium Per User (PPU): If upgrading to Premium Capacity isn’t feasible, you can use PPU, which is less expensive. However, each user who needs to view the report will require a PPU license.

    2. Check Authentication Permissions for Service Principal:

    • Ensure that your Service Principal is properly set up in Azure AD with permissions to the Power BI APIs and that it has the necessary permissions on the workspace where your reports reside.
    • Your Service Principal needs "App Workspace Admin" access to the workspace.

    3. Embedding Setup:

    • Verify your embedding code is using the Power BI REST API correctly to generate the embed token for the Service Principal.
    • Use app owns data embedding mode if embedding for external clients, which typically requires the application to authenticate directly against the Power BI API using the Service Principal.

    4. Test Access with Embedded Code:

    • Once configured, test the embedded report to ensure that it is accessible in your web application.

    By following these steps, you should be able to set up the Service Principal for embedding with the correct licensing.

     

    Did I answer your question? Mark my post as a solution, this will help others!

    If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

    Kind Regards,
    Poojara
    Data Analyst | MSBI Developer | Power BI Consultant

1 Reply

  • To embed a Power BI report in a web application using a Service Principal, you’ll need a Power BI Premium or Premium Per User (PPU) license. A Power BI Pro license alone won’t support embedding for external users or clients, which seems to be the issue here.

    Here’s a step-by-step outline to resolve it:

    1. Upgrade to Premium/PPU Capacity:

    • Premium Capacity (P1, P2, etc.): If your organization can manage Premium capacity, this will allow multiple users to access embedded reports without additional Pro licenses.
    • Premium Per User (PPU): If upgrading to Premium Capacity isn’t feasible, you can use PPU, which is less expensive. However, each user who needs to view the report will require a PPU license.

    2. Check Authentication Permissions for Service Principal:

    • Ensure that your Service Principal is properly set up in Azure AD with permissions to the Power BI APIs and that it has the necessary permissions on the workspace where your reports reside.
    • Your Service Principal needs "App Workspace Admin" access to the workspace.

    3. Embedding Setup:

    • Verify your embedding code is using the Power BI REST API correctly to generate the embed token for the Service Principal.
    • Use app owns data embedding mode if embedding for external clients, which typically requires the application to authenticate directly against the Power BI API using the Service Principal.

    4. Test Access with Embedded Code:

    • Once configured, test the embedded report to ensure that it is accessible in your web application.

    By following these steps, you should be able to set up the Service Principal for embedding with the correct licensing.

     

    Did I answer your question? Mark my post as a solution, this will help others!

    If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

    Kind Regards,
    Poojara
    Data Analyst | MSBI Developer | Power BI Consultant