-
IDE/ Code Editor (Recommended is Visual Studio Code)
-
For Master user, register a Native app here and for Service Principal, register a Server-side web app by following this.
-
Select "Read all datasets" and "Read all reports" permissions during Power BI app setup. Refer to thedocumentation for registering a Power BI app.
Refer to the documentation for the complete list of Power BI permissions.
-
Install Python 3 and add its installation path to the Path environment variable.
-
Run the following command in CMD/PowerShell in the path where requirements.txt file is located.
pip3 install -r requirements.txt
-
Open IDE.
-
Open powerbiembedding folder.
-
Fill in the required parameters in config.py file related to AAD app, Power BI report, workspace, and user account information.
-
Run the following command in CMD/PowerShell to start the application.
flask run -
Open http://localhost:5000 in browser or follow the direction in the output log.
Note: Whenever you update the config file you must restart the app.
For security reasons, in a real world application, password or secret should not be stored in config. Instead, consider securing credentials with an application such as Key Vault.