Forum Discussion
Managed indentity and Power BI
- 2 years ago
Hi boble ,
The idea is to refresh the token right before a semantic model refresh is triggered from the refreshes REST API. It's almost like a Just-In-Time access control approach: Anytime you want to fetch data from your sources, grab an access token from Entra ID (former Azure Active Directory) and use it for authentication. Then trigger a semantic model refresh via the REST API to get the data into Power BI. If you are already using the refreshes API to trigger a refresh (from a Data Factory, PowerShell, Python Script etc.) you would just need to add that part of fetching a token and updating the semantic model credentials before.
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
Hi,
Thank you for the link. It was very informative. I see at the end of the article that there is an issue with the token expiration. How did you solve this?
Hi boble ,
The idea is to refresh the token right before a semantic model refresh is triggered from the refreshes REST API. It's almost like a Just-In-Time access control approach: Anytime you want to fetch data from your sources, grab an access token from Entra ID (former Azure Active Directory) and use it for authentication. Then trigger a semantic model refresh via the REST API to get the data into Power BI. If you are already using the refreshes API to trigger a refresh (from a Data Factory, PowerShell, Python Script etc.) you would just need to add that part of fetching a token and updating the semantic model credentials before.
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/