Fabric Analytics Development Lifecycle: Git, Deployment and XMLA
Introduction
The Fabric analytics development lifecycle keeps changes to reports and semantic models reviewable, testable and repeatable. In this DP-600 lesson, you will use Git and Power BI projects to track changes, deployment pipelines to promote them, impact analysis to find downstream dependencies, and XMLA to manage published semantic models.
Learning objectives
- Configure version control for a workspace and explain what is synchronised.
- Describe the structure and benefits of Power BI Desktop projects (.pbip) over .pbix.
- Design a dev/test/prod flow with deployment pipelines, rules and the compare view.
- Perform impact analysis of downstream dependencies before changing an item.
- Use the XMLA endpoint to deploy and manage semantic models.
- Choose between .pbit, .pbids and shared semantic models as reusable assets.
1. Version control for a workspace (Git integration)
Fabric Git integration connects a workspace to a branch in a Git repository (Azure DevOps, GitHub or a supported GitHub Enterprise Cloud instance). The repository becomes the source of truth for item definitions.
Key facts:
- You connect a workspace to one branch and one folder of a repository. Items are serialised as folders of text files (for example a semantic model as TMDL or BIM definition files, a report as PBIR/definition files, notebooks as source files).
- Two directions of sync: Commit pushes workspace changes to the branch; Update pulls branch changes into the workspace. The Source control panel shows which items differ.
- Data is not stored in Git: only definitions. A lakehouse's tables, a warehouse's rows and a semantic model's cached data are not committed.
- Not every item type is supported; the supported list evolves, so unsupported items are simply not tracked.
- Use semantic models with enhanced metadata. For a legacy model, open its source in a current Power BI Desktop version and republish the upgraded model after testing.
- Typical branching: each developer works in a feature branch with an isolated workspace (branch out to a new workspace), then merges through a pull request into the main branch connected to the shared dev workspace.
- The Fabric conflict view lets you keep the workspace version or accept the incoming version of an item. For a merge that combines changes, resolve the definitions in Git, review the result, then update the workspace.
Example. Adventure Works has a dev workspace linked to the main branch folder /fabric. Priya wants to refactor measures. She creates a feature branch workspace from the Source control panel, edits the semantic model, commits, opens a pull request, a colleague reviews the TMDL diff, and after merge the dev workspace shows an Update available.
2. Power BI Desktop projects (.pbip)
A .pbix packages the report and model in a single file. A .pbip entry point opens a project whose report and semantic model definitions live in separate folders. This example uses TMDL for the model and PBIR for the report:
Sales.pbip
Sales.SemanticModel/
definition.pbism
definition/ <- TMDL files: tables, relationships, roles, expressions
Sales.Report/
definition.pbir
definition/ <- report pages, visuals (PBIR format)Why it matters:
- Text files give readable diffs and merges in Git, which a .pbix cannot.
- The semantic model and the report are separate folders, so a model can be edited without touching reports and several reports can point to one model.
- You can edit TMDL in VS Code or the TMDL view and use external tools; changes made outside Desktop appear when you reopen the project.
- Desktop can keep imported data locally in
.pbi/cache.abf. The generated Git ignore rules exclude the cache and local settings. Keep those exclusions in place, review changes for secrets and refresh the model when you open a checkout without the cache. - For automated deployment of PBIP content from source control, Microsoft documents the open-source fabric-cicd Python library, which can parameterise values (for example a connection string per environment).
Exam tip: a requirement such as "see exactly what changed in a measure between versions" or "use pull requests for model changes" points to .pbip with Git integration.
3. Deployment pipelines
A deployment pipeline promotes content through stages, typically Development → Test → Production. Each stage is bound to a workspace.
Core concepts:
| Concept | Meaning |
|---|---|
| Stage | A pipeline step bound to one workspace (2 to 10 stages are possible; three is the default) |
| Deploy | Promote supported items to the next stage, creating new items or updating paired ones |
| Compare | Shows which items differ between two stages (new, different, same) before you deploy |
| Deployment rules | Per-stage overrides for data source, parameter and (for supported items) default lakehouse so that Test and Prod point to their own sources |
| Selective deployment | Choose specific items instead of the whole stage |
| Backward deployment | Deploy all items to an empty preceding stage |
| Auto-binding | Supported dependencies are rebound when the matching items exist in the target stage. Verify the connections after promotion |
Practical points:
- Deployment copies definitions. A newly deployed Import model needs its target connection configured and a refresh to load rows. An existing model can retain data and partitions, including in supported incremental-refresh deployments. For Direct Lake, verify source binding and access, and refresh its framing when needed.
- Deployment rules are the right tool for changing a SQL server name or a parameter per stage. Editing the item in Prod directly breaks the discipline.
- Permissions depend on the action and item. Check pipeline access, the source and target workspace roles, and item-specific requirements. The owner of the target item configures its deployment rules. For consumer access, review workspace roles and item permissions in Fabric.
- Pipelines can be driven by the REST API or Azure DevOps tasks for automation.
- Git and pipelines combine well: Git connected to the Dev workspace only, then deployment pipelines promote to Test and Prod (a hybrid), or one branch per stage with a Git-only flow. Both are documented patterns in Microsoft's CI/CD guidance.
Worked example 1: pipeline rules.
Scenario. A semantic model uses a Power Query parameter ServerName set to sql-dev.contoso.com. After deployment to Production the dataset still reads the dev server. How do you fix this permanently?
Reasoning.
- Changing the parameter directly in Prod fixes the current binding. The next deployment can overwrite it.
- Deployment rules can override a parameter for the target stage.
- Open the Prod stage, choose the semantic model, set a parameter rule for
ServerNametosql-prod.contoso.com. - Redeploy and check the effective connection and credentials before refreshing the Import model. See Fabric connections and ingestion options for connection and gateway choices.
Solution. A deployment rule on the Production stage for the parameter.
Why the other choices are worse. Manual edits in Prod are repeated and unaudited. Creating a second model for Prod duplicates logic. Using one workspace for all stages removes isolation.
4. Impact analysis of downstream dependencies
Before you rename a column, delete a measure or change a lakehouse table, you need to know who depends on it.
Tools:
- Lineage view in the workspace shows the flow from data source to lakehouse, dataflow, semantic model, report and dashboard, across workspaces if you have access.
- Impact analysis on a semantic model (or dataflow, lakehouse) shows known downstream dependencies and lets you notify contacts for supported items. Details depend on your access and the item type. Check external consumers and individual report fields separately.
- Fabric item dependencies in the OneLake catalog and Microsoft Purview extend this across the tenant.
- Dependant counts guide the change window: a model feeding 40 reports requires a communication and a staged rollout.
Process: check impact → notify owners → apply the change in Dev → compare in the pipeline → deploy to Test → validate → deploy to Prod.
Worked example 2.
Scenario. You plan to rename Sales[Amt] to Sales[Net Amount] in the shared model Corporate Sales. How do you reduce the risk?
Steps. Open lineage view → select the model → run impact analysis → notice 18 reports in four workspaces → contact the owners with the notify feature → introduce the new column alongside the old one in Dev → migrate report references and test them in Test → remove the old column once dependent reports have migrated.
Solution. Impact analysis plus notification before the change. Worse options: renaming in Prod first (breaks visuals immediately); asking users to check manually (no reliable list).
5. Deploying semantic models through the XMLA endpoint
The XMLA endpoint exposes Power BI semantic models to Analysis Services clients in supported workspaces, including Fabric, Power BI Premium and Premium Per User.
- Enable read-write XMLA in the workload settings to deploy changes or process partitions. Read-only XMLA supports queries and metadata discovery. Querying a model through XMLA requires Build permission and respects the caller’s model security.
- The connection string is the workspace URL:
powerbi://api.powerbi.com/v1.0/myorg/<WorkspaceName>. - Tools: Tabular Editor, SQL Server Management Studio, Visual Studio / Analysis Services projects, ALM Toolkit (schema compare), PowerShell and TMSL scripts.
- Typical uses: deploy a model with metadata only, apply partition-level refreshes, run advanced refresh commands, edit model features not available in Desktop, and compare schemas between workspaces.
- A semantic model created or modified through XMLA may no longer be downloadable as .pbix from the service. Consider this when the team's workflow relies on downloading PBIX files.
- Deploying with XMLA requires supported model metadata and write permissions for the target operation. Creating a model requires sufficient access to the target workspace. Automation also needs a supported identity and the applicable tenant settings.
Exam tip: keywords "metadata-only deployment", "partition refresh", "script the model", "schema compare" mean XMLA endpoint.
6. Reusable assets
| Asset | What it is | Use it when |
|---|---|---|
| .pbit (Power BI template) | A report/model template that omits imported rows and prompts for configured parameters. Metadata can still contain filter values | Distributing a standard report layout and model to new analysts |
| .pbids (data source file) | A JSON file that stores a connection (server, database) | Giving analysts a pre-configured connection without credentials |
| Shared semantic model | One published model reused by many reports through a live connection (or composite model) | Avoiding multiple copies of the same logic; central certification |
A shared, certified semantic model is the preferred reuse pattern: one definition of measures, one refresh schedule, one place for RLS. Report authors need Build permission. Build alone leaves RLS in effect for readers.
Worked example 3: Git-only or hybrid? Scenario. Tailspin has a lakehouse, notebooks, a semantic model and reports. The team wants peer review of every change, but also wants a business-owned Test workspace promoted with one click and without maintaining three long-lived branches.
Reasoning.
- A Git-only flow with one branch per stage gives full history but requires merging between stage branches and calling Git APIs or pipelines of your own for each promotion.
- A hybrid keeps Git on the Dev workspace only, where pull requests provide review, and uses a deployment pipeline for Test and Prod, where rules and compare give a visual promotion step.
- The requirement "one click" and "no long-lived branches" matches the hybrid.
Solution. Connect Git to Dev only, review through pull requests, then promote with a deployment pipeline using deployment rules.
Why the alternatives are weaker. Git-only needs more automation. A pipeline without Git has no code review or history of definitions. Manual export and import is neither repeatable nor auditable.
Practical commit routine in Dev. Pull the latest Update, make changes in your branch workspace, check the Source control panel to see which items changed (a renamed table touches the model and each report that references it), write a commit message describing the business reason, and commit. If the panel reports a conflict, review both definitions. Use Fabric to select a complete version or Git to merge changes, then update the workspace. Never use "Revert to previous" in a shared workspace without telling colleagues, because it overwrites their uncommitted edits.
Deployment checklist before pushing to Production. Run Compare and read every item marked Different; confirm that no item was edited directly in Test; verify that deployment rules exist for every data source that differs; make sure the capacity of the target workspace is available and that the semantic model can refresh with the target credentials; plan an Import refresh or Direct Lake validation as appropriate, and notify downstream owners if the change alters column names or measures.
Comparison: choosing the lifecycle tool
| Need | Tool |
|---|---|
| Track item changes and review them | Git integration |
| Readable model/report diffs in the repo | .pbip project |
| Promote the same content through stages | Deployment pipeline |
| Different connection per stage | Deployment rule |
| Know who is affected | Impact analysis / lineage |
| Metadata-only deployment, partition refresh, schema compare | XMLA endpoint |
| Standard report starting point | .pbit |
| Pre-configured data connection | .pbids |
| One model for many reports | Shared semantic model |
Common pitfalls
- Expecting Git or deployment pipelines to move source rows. Plan target bindings, credentials and any required refresh.
- Editing the Production workspace directly and then overwriting the change on the next deployment.
- Forgetting that a model with legacy metadata must be upgraded for Git and pipelines.
- Granting Build on a semantic model when only Read is needed.
- Assuming a .pbix downloaded months ago still matches a model that was modified through XMLA.
- Ignoring impact analysis before renaming or deleting objects.
Exam tip: when two answers both "work", prefer the one that is automated, repeatable and keeps Prod read-only for developers.
Mini case study
Northwind Retail has one workspace where five BI developers edit a shared Sales model and 30 reports. Last month a measure change broke a regional dashboard and nobody could tell who changed what.
Proposed redesign.
- Convert the .pbix to a .pbip project and connect the dev workspace to a Git repository; feature branches and pull requests give reviewable TMDL diffs.
- Create a deployment pipeline with Dev, Test and Prod workspaces; add deployment rules for the SQL server parameter per stage.
- Before each model change, run impact analysis and notify the owners of dependent reports.
- Make
Salesa shared, certified semantic model; report authors get Build, and reports live in separate workspaces. - For nightly partition-level processing of the large fact table, use the XMLA endpoint with a scripted refresh.
- Give analysts a .pbit template with the corporate theme and a .pbids file for the warehouse connection.
Commentary. Git provides history and review; the pipeline provides controlled promotion; impact analysis lowers the blast radius; the shared model removes duplicated logic. Developers become Viewers in Prod.
Key terms
- Git integration: synchronises workspace item definitions with a branch.
- .pbip: folder-based Power BI project of text definitions.
- Deployment pipeline: staged promotion of content with rules and compare.
- Impact analysis: list of downstream items affected by a change.
- XMLA endpoint: Analysis Services protocol access to published models.
- .pbit / .pbids: template without data / data source connection file.
- Shared semantic model: model reused by many reports.
Summary checklist
- I can explain what Git integration commits and what it does not.
- I know why .pbip beats .pbix for team development.
- I can design a Dev/Test/Prod pipeline with deployment rules and a compare step.
- I can run impact analysis before changing a shared item.
- I can name three XMLA endpoint uses and its capacity prerequisite.
- I can pick between .pbit, .pbids and a shared semantic model.
Official sources
- Study guide for Exam DP-600: https://learn.microsoft.com/en-us/credentials/certifications/resources/study-guides/dp-600 (opens in a new tab)
- Fabric Git integration: https://learn.microsoft.com/en-us/fabric/cicd/git-integration/intro-to-git-integration (opens in a new tab)
- Deploy content and stages: https://learn.microsoft.com/en-us/fabric/cicd/deployment-pipelines/deploy-content (opens in a new tab)
- Deployment pipeline behavior: https://learn.microsoft.com/en-us/fabric/cicd/deployment-pipelines/understand-the-deployment-process (opens in a new tab)
- XMLA endpoint access: https://learn.microsoft.com/en-us/fabric/enterprise/powerbi/service-premium-connect-tools (opens in a new tab)
- CI/CD workflow options in Fabric: https://learn.microsoft.com/en-us/fabric/cicd/manage-deployment (opens in a new tab)
- Power BI Desktop projects (PBIP): https://learn.microsoft.com/en-us/power-bi/developer/projects/projects-overview (opens in a new tab)
- Deploy Power BI projects using fabric-cicd: https://learn.microsoft.com/en-us/power-bi/developer/projects/projects-deploy-fabric-cicd (opens in a new tab)
- Application lifecycle management tutorial: https://learn.microsoft.com/en-us/fabric/cicd/cicd-tutorial (opens in a new tab)
