Forum Discussion
naelske_cronos
Advocate II
2 years agoPower BI dataset refresh: use service principal to refresh Sharepoint data with access token
Hello, I'm trying to refresh a Power BI dataset that has a SharePoint list as datasource, this with the Power BI REST API's via PowerShell and the Power BI modules. This is the video that I'...
soniya-01
2 years agoNew Member
Problem: Refresh a Power BI dataset with SharePoint data using a service principal and access token.
Solution:
Register App in Azure AD:
- Create a Power BI app in Azure AD.
Get IDs and Keys:
- Get App ID, Directory ID, and create a Secret Key.
Permissions:
- Grant app permissions to access SharePoint.
Power BI Settings:
- In Power BI, enter app details for service principal.
Access Token Magic:
- Power BI uses service principal info to get an access token.
Automatic Refresh:
- Set up automatic refresh in Power BI service.
- naelske_cronos2 years ago
Advocate II
Hello,
I already have an app with everything working but it is not the intention to do this via the UI or Power BI service but programmatically via PowerShell.
Kind regards