GithubHelp home page GithubHelp logo

powerbigraphcustomconnector's Introduction

PowerBIGraphCustomConnector

Power BI Graph Custom Connector

This is a sample code for a Microsoft Graph Power BI Custom Connector

You need to Register a new App in Azure and configure appropriate permissions to Graph.

Azure App Registration

  • Open the Azure Portal as Admin
  • Select Azure Active Directory, click Add Registrations
  • Click New Registration, give a name for the App. In Redirect URI, select Web and use https://oauth.powerbi.com/views/oauthredirect.html
  • Go to API Permissions, click Add Permissions, Microsoft Graph, Delegated Permissions and select all permissions you need according to the query you will execute in MS Graph.
  • Click Add Permissions and then Consent.
  • Go to Certificate and Secrets, click New client secret and generate a new secret for the app. Store the value generated, you will need it to configure the connector.
  • Go to overview and store the value for the Application Client ID, you will need it to configure the connector.
  • Close the Azure Portal

Building and deploying the solution

  • You will need Visual Studio 2017 or 2019 to build de solution
  • Install the Power Query SDK from the Visual Studio Marketplace
  • Clone this repository and open MyGraph.mproj
  • Open the client_id file and paste the value you have for the Application Client ID.
  • Open the client_secret file and paste the value you have for the Secret.
  • Build the project to produce an extension file
  • Create the [My Documents]\Power BI Desktop\Custom Connectors folder
  • Copy the extension file into this folder
  • Open Power BI Desktop and change Data Extensions security option to allow the extension to load without any warnings
  • Restart Power BI Desktop

Using the custom connector on Power BI

  • Open Get Data and Search for MyGraph
  • Paste the Graph GET URL and load the data into Power BI

Dataset updates

It is important to mention that dataset refreshes are only possible using Power BI Desktop or through the On Premises Data Gateway at this moment (May 2020). ODG now offers the ability to have custom connectors installed/configured and it is possible to start DataSet refreshed from the service through custom connectors hosted on ODG.

powerbigraphcustomconnector's People

Contributors

cristianoag avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.