Giter Site home page Giter Site logo

ferrybouwman / power-bi-read-only-rest-api Goto Github PK

View Code? Open in Web Editor NEW
19.0 2.0 6.0 77 KB

Solution based on either Powershell or Power Automate (Flow) to consume the recently released Power BI Asynchronous Unified Scanning API

PowerShell 100.00%
powershell powerbi pbi powerautomate flow microsoft-flow rest-api

power-bi-read-only-rest-api's Introduction

Powershell & Power Automate (Flow) to consume Power BI Asynchronous Unified Scanning API

This solution provides a basis for your Power BI monitoring needs, based on the newly released Admin APIs. I created the solution in Power Automate and in Powershell for you, choose one!

Benefits of the new API:

  1. It's easy to setup: only an application registration in Azure AD, security group and Power BI Admin setting, no per workspace permissions required
  2. It's easy to use: no signed in user (delegation), and thus easy to consume within Power Automate without custom connectors (HTTP connector is premium though)
  3. More secure: no admin account necessary and read-only
  4. It's fast! I read almost 6000 workspaces including metadata within minutes.

For more information about the new API, check this blog post: https://powerbi.microsoft.com/en-us/blog/announcing-new-admin-apis-and-service-principal-authentication-to-make-for-better-tenant-metadata-scanning/

In short, what the solution does:

  1. Retrieve list with workspace Ids which have been modified since a given date, or a full report.
  2. Split workspaces in batches of 100 and request details.
  3. Retrieve details in separate loop, since the API is asynchronous.
  4. Output to JSON file.

The solution has one dependency

  1. Created an application registration (WITHOUT API permissions in Azure AD), put in a security group and have the security group in the Power BI Admin settings enabled for the use of the read-only Admin APIs, see blog post mentioned above.

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.