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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
MarkPHarris1
Helper I
Helper I

Automating publishing to Powerbi and Moving PBIX File

Hi There,

 

To give a bit of background we currently use sharepoint document libraries to act as version control for our PBIX files. After uploading to here we then open and publish the report to the powerbi service. To be honest I often forget to do the first part of this, what I wanted to ask is is there a way of automating these two steps into one script? My first thought is using powershell and the rest api to publish(and replace a existing report more often then not) then move the file to a sharepoint location. Has anyone had any experience of doing this?

 

Also out of interest as a Power BI developer is it worth learning powershell if I'm not a admin or work in IT creating workspaces etc?

 

Thanks for your help,

 

Mark 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

You may want to consider the checkout/checkin feature of Sharepoint and leave your PBIX file there all the time (rather than re-uploading).

 

And yes, learning Powershell is definitely a good idea, even if only for local automation.  Also look at the Power BI API documentation. 

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

You may want to consider the checkout/checkin feature of Sharepoint and leave your PBIX file there all the time (rather than re-uploading).

 

And yes, learning Powershell is definitely a good idea, even if only for local automation.  Also look at the Power BI API documentation. 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Solution Authors