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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
darrenfishell
Advocate II
Advocate II

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 @darrenfishell ,

 

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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