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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Sidhant
Advocate IV
Advocate IV

Conversion of PBIP to PBIX/PBIT and uploading the report to services using automation

Hi everyone,
So currently I am working on Report building in Microsoft Power BI which invloves numerous reports and I am using the '.pbip' file format as it provides a greater level of flexibility w.r.t. modifications and collaboration. The thing I have designed a script to generate a Power BI report, and over I am making use of the Power BI Desktop project (pbip) format, this is fine, but I had two queries that I wanted to be clarified:

1. Is there a way that we can automate the process of conversion the pbip to pbix/pbit formats (In the current orocess I need to manually open the the report i.e. the pbip then save as : Select the required format 'pbix' or 'pbit'. Technically its not complicated but when there are multiple reports it can be repetitive task).
2. The other thing is: Is it possible to publish a given report using some script (code) to a given workspace provided that we all the required details like the workspace id (in addition to this what all details do we require to do so), and the follow up to this was can we only publish the pbix report to a workspace or we can publish the other two file formats as well (pbip and pbit)?  

So if anyone can assist me over he by providing your valuable suggestion it will help a lot even for the community and if you need any more additional information kindly let me know, I will be happy to share that as well.


Regards,
Sidhant.

1 ACCEPTED SOLUTION

Hi @Sidhant 

Thank you for your message, and no worries at all about the delayed response.

we appreciate you taking the time to review the documentation links shared earlier. As of now, there is no specific or simplified document available for this process beyond what has already been shared . These resources currently provide the most relevant and comprehensive guidance on the topic.

We recommend reviewing the documentation they’ve provided in detail. If you find them helpful and they address your query, kindly consider marking the response as the accepted solution to help others in the community as well.

Thank you for being part of Fabric Community Forum.

Regards,
Karpurapu D,
Microsoft Fabric Community Support Team.

View solution in original post

10 REPLIES 10
Sidhant
Advocate IV
Advocate IV

Hi,
So I wanted to post an update so I found some documentation : Items - Create Item - REST API (Core) | Microsoft Learn
So I made use of that I designed a script (Python code) that takes in a workspace id and calls a function which publishes the semantic model and report. So for pbix file I am able to publish the semantic model and the report to the workspace, but for pbip the issue is the semnatic model is published to the workspace but the pbip file cannot:Reason being the pbip still points to the semantic model which is present on my local instead it should be pointing to the Semantic Model in the workspace. So I am trying to figure out how to do that have tried some workarounds but still they seem not to work

Sidhant_0-1751028832792.png

So if you have any inputs w.r.t this do share them

Regards,
Sidhant

v-karpurapud
Community Support
Community Support

Hi @Sidhant 

We have not received a response from you regarding the query and were following up to check if you have found a resolution. If you find the response helpful, please mark it as the accepted solution and provide kudos, as this will help other members with similar queries.

Thank You!

Hi @v-karpurapud,
Apologise for the late response, was not able to reply early as I am still busy with some new tasks. So last week I did go through some of the documentation links that were been shared, I was wondering if there is any specific artice which helps to sets this process (in more simpler terms), no doubt the documentation is a good resource but if there is any video tutorial it would have helped @rajendraongole1 and @Deku .
Also I have posted one of the idea in the Idea forum as well.

Regards,
Sidhant.

Hi @Sidhant 

Thank you for your message, and no worries at all about the delayed response.

we appreciate you taking the time to review the documentation links shared earlier. As of now, there is no specific or simplified document available for this process beyond what has already been shared . These resources currently provide the most relevant and comprehensive guidance on the topic.

We recommend reviewing the documentation they’ve provided in detail. If you find them helpful and they address your query, kindly consider marking the response as the accepted solution to help others in the community as well.

Thank you for being part of Fabric Community Forum.

Regards,
Karpurapu D,
Microsoft Fabric Community Support Team.

v-karpurapud
Community Support
Community Support

Hi @Sidhant 

We have not received a response from you regarding the query and were following up to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If the  responses has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.

Thank you!

v-karpurapud
Community Support
Community Support

Hi @Sidhant 

Could you please confirm if your query have been resolved the solution provided by @Deku  and @rajendraongole1 ? If they have, kindly mark the helpful response and accept it as the solution. This will assist other community members in resolving similar issues more efficiently.

Hi @v-karpurapud ,
To a certain extent yes the response from @rajendraongole1  and @Deku  have been helpful, I just need to check them (since I was occupied with some other task) and if there any follow up questions for the same I was planning to post them, else: I will mark them close (Accept their solution within1-2 days).

Regards,
Sidhant.

Hi @Sidhant 

Thank you for the update. Looking forward to your response.

Regards,
Karpurapu D,
Microsoft Fabric Community Support Team.

rajendraongole1
Super User
Super User

Hi @Sidhant  - There is no officially supported CLI or API method as of now (June 2025) to automate .pbip to .pbix or .pbit conversion.

Keep an eye on on power bi ideas forum Fabric Ideas - Microsoft Fabric Community

Yes, you can automate publishing .pbix files using the Power BI REST API or Power BI CLI (pbicli).

Imports - Post Import In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn

 

Hope the above details helps.

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Deku
Super User
Super User

I don't believe there is any utility besides power bi desktop, that converts between pbip and pbix.

 

You can deploy pbix using the power bi api https://learn.microsoft.com/en-us/rest/api/power-bi/imports/post-import-in-group.

 

You can deploy pbip with fabric api https://learn.microsoft.com/en-us/rest/api/fabric/core/items/create-item?tabs=HTTP. But a easier option would be to use fabric-cicd which is a python wrapper on the apis https://microsoft.github.io/fabric-cicd/0.1.19/


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors