Forum Discussion
How to embed some Power BI Tiles in a Rails App?
Ok, so you never had to follow that walkthrough?
https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-integrate-tile/
Nor that one?
https://msdn.microsoft.com/en-us/library/mt186158.aspx
(Oo)
I can feel you pain, I got very confused reading the documentation when trying to setup Embeding.
Not fully the fault of the documentation, it's more to do with the different functionality being released at different times so older documentation speaks to functionality that embed is better for now.
For your requirements of having a rails app that the user logs in and views reports then Embedded is the recommended way with the exception if it is internal (users trusted) then Azure can be used.
The Azure application method being for internal users as the token is exposed (if they go looking for it)..
The embed method needs a server iin the middle that generates short term tokens to the user.
The "server in the middle" part I go stuck at for week :( .
The JS example you referenced if you clone it and review or look at source you can see it calls a server than returns the requried data. So for your rails app you need to build/create a server that handles that task...
Hope that helps - I'm not fully there yet either so don't take this as definitive!
- fro_oo9 years agoRegular Visitor
Hi metricsman, thank you for sharing your experience.
I'm trying different things right now, hoping I will find a clear solution.
Eventually I'll post it here.
Cheers
- metricsman9 years agoHelper I
Good luck, it definitely seems to be something that is more complicated than initially though.
Great to hear your solution once you get there!
- fro_oo9 years agoRegular Visitor
Hi,
To succeed I had to forgot everything I had read before... and start again with this:
https://azure.microsoft.com/en-us/documentation/articles/power-bi-embedded-iframe/
ON AZURE PORTAL
Create Power BI workspace collection, and get access key (Provisioning)
GET A PBIX
From Power BI Desktop or a sample file
WITH A CLI
(must use that one : https://github.com/Microsoft/PowerBI-Cli )
Create a Power BI workspace
Import .pbix file into the workspace
Get report id
IN MY RAILS APP
(using https://github.com/jwt/ruby-jwt )
Embed the report into the web page
I can't tell about the many bugs encountered, or the signup/login problems with Azure... it was really painful to get there.
Cheers everyone.