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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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.

Anonymous
Not applicable

@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.

spaxia
Helper I
Helper I

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

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.