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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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