Setup an "Azure Based Black Box" able to run Power BI datasets refresh through API calls making everything secure using SPN and, leveraging Webhooks, launchable using POST calls by any application.
- PowerShell v7.x
- PowerShell Az Module
- Power BI tenant
- SPN created and setup in AAD
- Enabled APIs use at Power BI tenant level for SPN
- Worspace V2 with SPN user as an admin
Setup the whole environment using this PowerShell Script.
This PowerShell script is used by Azure Runbook to perform dataset refresh getting needed IDs and Secret from Runbook's variables and credentials.
Setup a webhook to make "Black Box" available through POST calls.