Forum Discussion
How to embed some Power BI Tiles in a Rails App?
Carefully?
Seriously though, seems like this article should get you there:
https://powerbi.microsoft.com/en-us/blog/intro-pbi-js-api/
I believe a prerequisite to this is Power BI Embedded although I may be confused on that point.
https://azure.microsoft.com/en-us/services/power-bi-embedded/
I used this walkthrough when I did it:
https://azure.microsoft.com/en-us/documentation/articles/power-bi-embedded-get-started-sample/
Thank you for your answer.
Carefully? Yes :-)
Well, the JS API is not what I'm struggling with. It's the last thing to check on my todo. And I don't want to create a .Net project, but a Rails one. The basic process are the same, I understand that.
Here's a bunch of questions, thank you for your expertise & advices :
#1
Do I need to register an application for Power BI with https://dev.powerbi.com/apps?type=web ?
(I've already done that)
#2
Do I need to create an ActiveDirectory (and a Azure User) ? Then add an application wich authorize Power BI Service?
(I've already done that)
#3
Do I need to create a Workspace for Power BI Embedded here https://portal.azure.com/#create/Microsoft.PowerBI ?
To me it seems there's to many ways to implement Power BI Embedded in a web app. I am lost.
Thank you
- Greg_Deckler9 years agoCommunity Champion
My understanding of the process and how I have gotten it to work, yes, you need to do #3. The sample application walkthrough provides a .NET command-line application and instructions for registering your Power BI Embedded instance and setting up and configuring it, etc. At least, that's what I remember.
- fro_oo9 years agoRegular Visitor
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)
- metricsman9 years agoHelper I
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!