Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Charline_74
Resolver I
Resolver I

Scanner API Power BI - Script Pyspark (Notebook)

Hello,

Has anyone managed to set up the Power BI API scanner using Pyspark in a notebook Fabric?

Merci d'avance,

Charline

4 REPLIES 4
lbendlin
Super User
Super User

what are you ultimately trying to achieve?

Hi @lbendlin

My aim is to collect the information reported by the Scanner API every day in order to monitor Power BI activities.

I'm already using the Scanner API with a Data Pipeline and Dataflow Gen2, but the Dataflow Gen2 takes too long to refresh, so I want to test the Notebook Fabric, but I'm not very comfortable with Python.

With this script, I'd like to run the various APIs of the Scanner API and then retrieve the information in the delta table format.

The usual process is to run the Scanner API calls from Powershell and store the resulting JSON files somewhere where they can be ingested from. There's not really a point doing this from within Power BI/Fabric.

I think it makes perfect sense to do this from within Fabric.  Why not centralize your workflow in Fabric, rather than collecting data using one technology (PowerShell), and processing it in another (Fabric).  

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors