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
JanKral
Frequent Visitor

PowerShell deployment of Power BI project (*.pbip)

Hi,

 

I am worndering if there is a way to deploy PBI project to a workspace using PowerShell module MicrosoftPowerBIMgmt?

I tried to deploy them using New-PowerBIReport but I am getting an error New-PowerBIReport : Operation returned an invalid status code 'BadRequest'.
If there is no compatible method, is there a way to convert PBIP to PBIX using PowerShell (or other scripting language) to deploy it to Power BI Service?

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

HI  @JanKral,

According the document, I suppose this method currently does not support pbix files. It only mentions pbix file instead of all type of power bi files.

Loads a Power BI report from a pbix file and deploys it to the Power BI service. Before you run this command, make sure you log in using Connect-PowerBIServiceAccount.

New-PowerBIReport (MicrosoftPowerBIMgmt.Reports) | Microsoft Learn

AFAIK, current it does not exist built-in PowerShell cmdlet or module to convert pbip to pbix. You may need to manually do these operations on power bi desktop side.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

HI  @JanKral,

According the document, I suppose this method currently does not support pbix files. It only mentions pbix file instead of all type of power bi files.

Loads a Power BI report from a pbix file and deploys it to the Power BI service. Before you run this command, make sure you log in using Connect-PowerBIServiceAccount.

New-PowerBIReport (MicrosoftPowerBIMgmt.Reports) | Microsoft Learn

AFAIK, current it does not exist built-in PowerShell cmdlet or module to convert pbip to pbix. You may need to manually do these operations on power bi desktop side.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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