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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
alopez1205
Regular Visitor

Power BI embedded works only localhost

Hello everyone! 

 

I've been working with a project and I used the Power BI API to get workspace elements. I've followed the playground instructions. In my localhost, everything seems to been working properly. I've already acquired capacity (premium) and created the azure's application and configured everything that the playground and PBI Tutorials suggest. Everything is fine at this point, but when I moved my application to a production server (same credentials that I used in localhost) the API stopped giving me results and the dashboard stays on the power bi logo and it doesn't load the dashboard/report.

 

Do you know if there are some specific conditions in the server that I need to review (ports, firewall, etc)?

 

I'm using "Master user" as authentication method. 

 

 

4 REPLIES 4
ranbeermakin
Resolver III
Resolver III

Hi @alopez1205 

 

There are some permissions required at the Azure portal level. Can you read through this blog to check what are you missing?

 

https://bigintsolutions.com/2018/08/02/baby-steps-to-embed-your-power-bi-reports/

 

-Ranbeer

Please accept this post as solution if this meets your need.

Hello @ranbeermakin , thank you for your response.

 

I've already changed my authentication type to Service Principal after an MS recommendation.
The solution works in localhost, but in the production server, It doesn't.

 

It shows me the following message:

Error message.png

v-alq-msft
Community Support
Community Support

Hi, @alopez1205 

 

I'd like to suggest you refer the document . If it doesn't help, you may create a support ticket here for further analysis.

 

Best Regards

Allan

 

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

Thank you @v-alq-msft 

 

I created my solution following the tutorial you shared. As I mentioned, everything works as expected in my localhost. But when I tried to move my project to a production server, I'm not able to get a response from the PBI Rest API.

 

The error I'm receiving is this: 

Error message.png

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.