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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
tinaklo
Microsoft Employee
Microsoft Employee

Kick off data refresh with SQL Agent Job

Hi there,

 

Our setup...we have an enterprise gateway installed on our server to refresh the Power BI dashboard and report. The underlying data sources for the report are tables and views from a SQL server, not a cube.  Our datasets are setup with an ‘import’ connection.

 

 

My question...instead of scheduling refreshes via the Power BI Service, we would like to create a step within a SQL Agent job to execute the refresh.  Is this possible?  Maybe using Powershell?  Any suggestions on viable solutions?

 

Thank you.

1 ACCEPTED SOLUTION
Eric_Zhang
Microsoft Employee
Microsoft Employee

@tinaklo

 

It is surely possible. Power BI Services provides the APIs to import data into a published report, you can follow this toturial Push data into a Power BI dashboard. Recently I am studying on this, it is quite easily understanding if you have some coding skill. Just form data in JSON format and call the APIs to load data to Power BI services.

 

Regarding developing, you can create a console application following the tutorial in Visual Studio or SQL Server Integration Service(my preference),and schedule a windows task or SQL Server Agent job to load data in a certain interval automatically.

 

Also check Power BI REST API limitations.

View solution in original post

3 REPLIES 3
Eric_Zhang
Microsoft Employee
Microsoft Employee

@tinaklo

 

It is surely possible. Power BI Services provides the APIs to import data into a published report, you can follow this toturial Push data into a Power BI dashboard. Recently I am studying on this, it is quite easily understanding if you have some coding skill. Just form data in JSON format and call the APIs to load data to Power BI services.

 

Regarding developing, you can create a console application following the tutorial in Visual Studio or SQL Server Integration Service(my preference),and schedule a windows task or SQL Server Agent job to load data in a certain interval automatically.

 

Also check Power BI REST API limitations.

Seth_C_Bauer
Community Champion
Community Champion

@tinaklo Not saying it "can't" be done, but I'm not aware of anyone having done it before. Obviously this isn't supported out of the box. The only mechanism to "refresh from on premises" would be to use Direct Query or a live connection to a SSAS instance. Then you don't need to schedule anything in the Service.


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG
spaxia
Helper I
Helper I

Another solution can be to have an Azure SQL and replicate Data in the Cloud....

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors