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

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

Reply
jared168
Microsoft Employee
Microsoft Employee

Command line to update data sources

Is there a way to update my PBIX files without manually opening and refreshing them? I'd like to have a script run and update my data.

 

Any Ideas?

 

(For why I'm not using the Power BI Online updating, it doesn't currently support my internal company OData information source, and I'd like to automate the update process)

4 REPLIES 4
Shahid12523
Community Champion
Community Champion

Use Power BI Report Server (if you have it) → supports scheduled refresh.

Use the Power BI REST API + a service principal → refresh dataset in the Service (if you can publish).

For pure .pbix refresh on-prem:

Use Power Automate Desktop / Task Scheduler + a script to open Power BI Desktop and send keystrokes to refresh & save.

Or use third-party tools like Power Update (was popular back in 2015) to automate PBIX refresh and saving.

👉 Out of the box: no command-line refresh for PBIX. Needs either API, Report Server, or external tool.

Shahed Shaikh
mllopis
Community Admin
Community Admin

Hi Jared,

Currently there is no way to programmatically refresh a PBIX file.

However, on-prem OData feeds should be refreshable using the Personal Gateway. Could you elaborate on what issues you found trying to do this?

Thanks,
M.
djnww
Impactful Individual
Impactful Individual

Hi All,

 

Is Power BI working on command line functionality ?

 

Personal Gateway & Enterprise Gateway are great, but ONLY for on-prem data. What we need is a way to refresh data that is being retrieved from an API on a daily basis (ie. coming from an External source which is not on our premises).

 

Regards,

Daniel

jared168
Microsoft Employee
Microsoft Employee

The OData sources I have do not seem to work through the Personal Gateway. I think PowerBI.com tries to access them through a public interface, which would not be possible. It must be accessed from inside my corporate network. Here is the error I get:

 

"Cannot connect to the data source"

Capture.PNG

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.