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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
bhaskar39
Regular Visitor

How to publish PBIT files using PowerShell

Hi Team,

We would like to Publish PowerBI Template (PBIT) files using PowerShell. Could you please suggest us a way to achieve this as we want to automate the process of Datasets/Reports publishing. 

 

 

Thanks,

Bhaskar

1 REPLY 1
v-xinruzhu-msft
Community Support
Community Support

Hi @bhaskar39 

If you want to publish the pbit file to Power BI Service, it cannot support,  we can publish pbix file to Power BI Service instead of pbit file, you can refer to the following link.

Solved: Re: Publish a Power BI template (PBIT) to Power BI... - Microsoft Fabric Community

Solved: Publishing .PBIT file to Power BI Service - Microsoft Fabric Community

If you want to publish pbix file(report) to Power BI Service by powershell , you can refer to the following command.

New-PowerBIReport -Path '.\report.pbix' -Name 'Report' -Workspace ( Get-PowerBIWorkspace -Name 'Team Workspace' )

You can refer to the following link.

New-PowerBIReport (MicrosoftPowerBIMgmt.Reports) | Microsoft Learn

But first, you need to install the PowerBI Model in PowerShell, you can refer to the following link.

https://learn.microsoft.com/en-us/powershell/power-bi/overview?view=powerbi-ps#installation

 

Best Regards!

Yolo Zhu

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.

Top Solution Authors
Top Kudoed Authors