Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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:
to apply latest develoepment from repo I need to manually click:
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!
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.
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:
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.
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.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 10 | |
| 10 | |
| 4 | |
| 3 | |
| 3 |