Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to embed live powerbi report into a webui

I would like to embed a power bi report into an angular website and whenever the underlying data of the report changes (a database) i want it to be reflected in the webui automatically. There is no upper limit on how many times the data in the database will change.

 

Can some body please suggest what is the correct way to achieve it.

Is it mandatory to register the app with Azure to achieve it? if yes why? would like to understand the need from technical stand point.

1 ACCEPTED SOLUTION
Jayendran
Solution Sage
Solution Sage

Hi @Anonymous ,

 

Here is my suggestion

 

You can use the direct query to develop your report, using the direct query whenever you load the report it will try to pull the updated records from the database. 

 

There are two ways to achieve the powerbi embedded

1. Master Account (a master account that is a username and password to sign in to your Power BI Pro account)

2. Service Principal (app only token)

 

I'd recommend to go with the 2 approach (Modern Auth), eventually method 1 will be deprecated

 

In both the method it is mandatory to do the app registration. Because you have to call the PowerBI Embedded API, in order to call the API you have proper autentication. These proper autentication can be done only if you have done the proper app registration in your tenant.

 

As per the docs,

 

Spoiler

To access resources that secure an Azure AD tenant, the entity that requires access represents a security principal. This action holds true for both users (user principal) and applications (service principal).

The security principal defines the access policy and permissions for users and applications in the Azure AD tenant. This access policy enables core features such as authentication of users and applications during sign-in, and authorization during resource access. For more information, reference Application and service principal in Azure Active Directory (AAD).

View solution in original post

2 REPLIES 2
venal
Memorable Member
Memorable Member

Please refer the below links.

https://docs.microsoft.com/en-us/power-bi/developer/embed-sample-for-customers

 

https://powerbi.microsoft.com/en-us/blog/easily-embed-secure-power-bi-reports-in-your-internal-porta...

 

If this post helps, then please consider Accept it as the solution to help the other members find it more

Jayendran
Solution Sage
Solution Sage

Hi @Anonymous ,

 

Here is my suggestion

 

You can use the direct query to develop your report, using the direct query whenever you load the report it will try to pull the updated records from the database. 

 

There are two ways to achieve the powerbi embedded

1. Master Account (a master account that is a username and password to sign in to your Power BI Pro account)

2. Service Principal (app only token)

 

I'd recommend to go with the 2 approach (Modern Auth), eventually method 1 will be deprecated

 

In both the method it is mandatory to do the app registration. Because you have to call the PowerBI Embedded API, in order to call the API you have proper autentication. These proper autentication can be done only if you have done the proper app registration in your tenant.

 

As per the docs,

 

Spoiler

To access resources that secure an Azure AD tenant, the entity that requires access represents a security principal. This action holds true for both users (user principal) and applications (service principal).

The security principal defines the access policy and permissions for users and applications in the Azure AD tenant. This access policy enables core features such as authentication of users and applications during sign-in, and authorization during resource access. For more information, reference Application and service principal in Azure Active Directory (AAD).

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors