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!View all the Fabric Data Days sessions on demand. View schedule
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?
Hi @Anonymous ,
You can try New-PowerBIReport in PowerShell:
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.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |