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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

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