MikeCarlo / PowerBI-Developer-Samples

A collection of Power BI samples for developer use.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

App Owns Data samples

Read this documentation to prepare your environment https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-using-embed-token/

To see embedded report, dashboard and tile, you need to fill missing details in web.config.

clientId - Id of AAD application registered as native app.

groupId - group or workspace Id in Power BI which contains reports, dashboards and tiles you want to embed.

pbiUsername - Power BI username (e.g. Email). Must be an admin of the group above.

pbiPassword - password of Power BI user above.

Important

For security reasons, in real application, don't save the user and password in web.config. Consider using KeyVault

User Owns Data samples

Please follow these steps to run PowerBI.com Integrate samples:

Step 1 - App Registration

You need to register an application in https://dev.powerbi.com/apps

Registration parameters per sample

integrate-dashboard-web-app

Redirect URL - http://localhost:13526/Redirect

Home Page URL - http://localhost:13526/

integrate-report-web-app

Redirect URL - http://localhost:13526/

Home Page URL - http://localhost:13526/

integrate-tile-web-app

Redirect URL - http://localhost:13526/

Home Page URL - http://localhost:13526/

Registration Example:

regexample

Step 2 - Change Web.config

Copy Client Id and Client secret to web.config file

regexample

About

A collection of Power BI samples for developer use.

License:MIT License


Languages

Language:JavaScript 90.2%Language:C# 7.9%Language:ASP 1.4%Language:CSS 0.5%Language:HTML 0.0%