...
- PowerBI Pro - at least one user needs to be on a Pro account. Two-factor authentication must be OFF for this user.
- Microsoft Azure - you have an Azure subscription
- App Owns Data PowerBI instance tied to Azure - if you don't already have one you can create one using this link https://app.powerbi.com/embedsetup/appownsdata
- After creating your application note the Application ID and Workspace ID
- If you already have an application you can get the application ID from https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade. You can get the workspace ID by logging into https://app.powerbi.com and opening the workspace tied to your Azure application. Look in the URL for the workspace ID.
- API Access Enabled - under your App Registrations in Azure, open your application and go to API Permissions. If there are currently no Your app should have
- App Owns Data - PowerBI is granted API permissions and set to App Owns Data
- API permissions require the use of Master Account rather than Service Principal (not sure how to check this)
...