Forum Discussion
Accessing push data set api with azure function app - power bi service
- 2 years ago
The App Registration is an application with app ID, therefore you can add it to the workspace with a role just like you add your user principal id
Hi Amine,
I am not sure if this answers my question.
I will give some context as to my use case which might make it clearer what i mean.
My team already has a Power Bi service capacity up and running with multiple workspaces and reports that use import mode.
Now we need to use push datasets for a real-time dashboard.
We already have the source of the data, so all we need is a server side application that can load this data into memory and push it to the push dataset.
Now on to my question.
If the app registration is in power bi embedded, then how do i grant that application access to the workspaces and datasets of the power bi service capacity?
This is a question of how to grant access to the Power BI service API for a server side application, not about how to access it for an embedded application.
- aj19732 years agoCommunity Champion
The App Registration is an application with app ID, therefore you can add it to the workspace with a role just like you add your user principal id
- Anonymous2 years agoNot applicable
Yes this would indeed grant access to the API, now there is another question.
The permission that you can grant an application is very broad, so i would like to know the alternatives.
There is a key that is generated which can be used for a push dataset when viewing API info:
This is generated along with an example script that shows how to access the dataset through the api.
Is there documentation on this key? Is it permanent or does it expire? how long does it last if it does expire?
Or is this key solely for ilustration and is not intended for use in an application?
Here is an example of what the url looks like:- aj19732 years agoCommunity Champion
Not sure what do you want to say by Key !? Dou you mean the Access Token? If so then Yes the Access Token normally lasts no more than 1 hour but because you are using the App Regsitration then it will be generated automatically by the App and there is no expiration time.