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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Okopolitan
Regular Visitor

Workspace Git sync API

Hey,

 

I'm looking into Powershell/REST Api commands.

 

I can't find in any documentation info about how to sync Git branch to Workspace.

 

When I have:

Okopolitan_0-1700488017515.png

to apply latest develoepment from repo I need to manually click:

Okopolitan_1-1700488121700.png

 

Is there PowerShell or REST API command to sync/Update all? I feel like this is last missing step to create proper CI/CD.

 

Any help is appreciated! Thanks!

5 REPLIES 5
Anonymous
Not applicable

Hi @Okopolitan,

 

Happy to share that we've released a new set of Git REST APIs, which empower you to automate processes such as connecting workspaces to Git repositories, committing changes made in the workspace or updating the workspace from the connected branch, and more.

We've also released a set of PowerShell samples to help you get started. 

 

For further details and access to all the essential resources, please visit:

Automate Git integration by using APIs and Azure DevOps - Microsoft Fabric | Microsoft Learn

 

Hi @Anonymous ,

 

Thanks for info!

 

I started to look into this, but scripts you linked are Fabric workspaces specific. 

 

$global:baseUrl = "<Base URL>" # Replace with environment-specific base URL. For example: "https://api.fabric.microsoft.com/v1"

$global:resourceUrl = "https://api.fabric.microsoft.com"


How those values should be setup for pure PowerBI Premium Workspace? 

 

Later on I see:

$getWorkspacesUrl = "{0}/workspaces" -f $global:baseUrl


I see that workspace in PowerBI workspace is called "groups" i.e.: https://app.powerbi.com/groups/

 

Do I understand it correctly that in order to refresh PBI Premium I need to register app as described here: https://learn.microsoft.com/en-us/rest/api/fabric/articles/get-started/fabric-api-quickstart

, put them under same subcriptions ID and it should work? 

 

Thanks!

Is this available for PPU workspaces? The link is only for Fabric workspaces.

Anonymous
Not applicable

Hi  @Okopolitan ,

 

As far as I know, use REST API to intergate Git with Power BI. You can sync it by click on the "Update all".

For reference:

Manage a workspace with Git

You can see all functions that Power BI REST API support by this link: 

https://learn.microsoft.com/en-us/rest/api/power-bi/

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

@Okopolitan

Yeah, that's the point @Anonymous  - I don't see REST API function to sync workspace wih repo.

Without possibility to do it entire repo functioanlity from my perspective is missing core feature, which is deploying new versions of reports via automated CI/CD process.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.