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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Publish Power BI Report from PowerShell

Hi Team,

 

Is there any Powershell cmdlet available for Replacing the PowerBI report which is already available in workspace. We can use New-PowerBIReport  Command for Publishing new report but suppose we want to publish and replace same report in workspace then which cmdlet can help ?

 

Thanks in Advance!! 

3 REPLIES 3
Anonymous
Not applicable

New-PowerBIReport -Path $datasetName -WorkspaceId $worksapceid -ConflictAction CreateOrOverwrite

 

CreateOrOverwrite: it helps to create or write on existing one

Greg_Deckler
Community Champion
Community Champion

@Anonymous - I can't find anything for that here: https://docs.microsoft.com/en-us/rest/api/power-bi/reports/updatedatasources

But I could be missing something.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Hi @Greg_Deckler , 

 

Thanks for the suggestion. I am able to find one parameter for New-PowerBIReport  cmdlet  called --ConflictAction which can be useful for this requirement. 

 

We can find detail from here:

https://docs.microsoft.com/en-us/powershell/module/microsoftpowerbimgmt.reports/new-powerbireport?vi...

 

Thanks

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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