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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

Can we publish from OneDrive or Sharepoint using PowerBI PowerShell cmdlet?

Is it possible to publish a PBIX file from a location in OneDrive or Sharepoint to the PowerBI Service using the Powershell cmdlet? I also need for this to allow for OneDrive or Sharepoint sync after the file is initially loaded. 

In other words, is there a way to programatically do what is possible by manually clicking New in a workspace, selecting upload a file, and then selecting a file from either a OneDrive or Sharepoint location?

1 REPLY 1
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can try New-PowerBIReport in PowerShell:

New-PowerBIReport 

Here is a video for your reference:

How to Publish Power BI Report using PowerShell Cmdlet | Publish Power BI report using PowerShell 

Syncing Published Power BI Report Files Using OneDrive 
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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 Kudoed Authors