Ship It Safe, Ep 1: Why releasing Power BI without gates is a gamble
What the Publish button checks before it replaces your semantic model, what it doesn't, and the first step toward a release pipeline that can say no.
By Episode 8 of this series we'll have a release pipeline for a Power BI semantic model that checks the model before anyone reads it: PBIP and TMDL in Git, a validation gate, tests on key measures, Dev → Test → Prod deployment, and a refresh check with a way back. This first episode is about the problem that pipeline solves, and the one step you can take today to start.
Who this is for
You build semantic models in Power BI Desktop, and your release process is some version of "save, Publish, confirm". If Publish is your release process, nothing reads your change before it replaces what your users see. A deployment pipeline adds stages, but nothing in it checks the model for you.
What Publish actually checks
When you republish a .pbix from Power BI Desktop, Microsoft's documentation describes what happens in plain terms: the semantic model in the service "is replaced with the updated semantic model from the Power BI Desktop file". Before that happens, Desktop shows a message with "how many workspaces, reports, and dashboards are potentially impacted by the change" and asks you to confirm the replace. It also links to the full impact analysis in the service, which lists the affected items.
That prompt tells you the blast radius, which is useful. But it's a list for a human to work through, not a check that blocks anything. It can't tell you whether anything inside that radius will break. The same page lists what else a republish does:
- Rename or delete a column or measure, and "any visualizations you already have in Power BI with that field could be broken."
- If the model has a refresh schedule, republishing starts a refresh straight away.
- New data sources need credentials before the next scheduled refresh.
- Some changes can't be republished over the existing item at all, for example switching an Import report to DirectQuery or a live connection.
- Edits made to the report in the service are not saved back to your .pbix.
Put those together and a Publish-only release has one check on the way out: a count and a confirm. In my read, going back usually means republishing an older .pbix, if someone kept one. That is what I mean by a gamble: whether a release broke something is found out afterwards, by whoever opens the report.

Where this series is going
My position: a Power BI report is software, and it should ship like software, with version control, validation, code review and automated deployment. Plenty of Power BI developers think that's overkill for "just a report". It does cost something: a slower start, a real learning curve, and pushback from people who only want to press Publish.
Here is what we'll add, one gate per episode:
| Episode | Gate | What it can stop |
|---|---|---|
| 2 | Pipeline design | Decides where each gate sits and what it may block |
| 3 | PBIP + TMDL in Git | An unreviewed change: every edit becomes a diff |
| 4 | Validation gate (Tabular Editor Best Practice Analyzer) | A pull request that breaks your model standards |
| 5 | Tests on key measures | A measure that returns the wrong number |
| 6 | Dev → Test → Prod with fabric-cicd | A change that skips a stage |
| 7 | Refresh check + rollback | A deploy that fails after it lands |
| 8 | The complete pipeline | Demo and lessons learned |
None of these pieces is new on its own. Microsoft Learn has a build-pipeline sample that runs Best Practice Analyzer and PBI Inspector rules on every pull request, and fabric-cicd handles PBIP deployment across environments. What this series adds is measure tests, staged promotion and a rollback path on top of that validation, wired into one pipeline, with the reasoning behind each choice.
Step 1 today: make the model reviewable
Every later gate needs the same thing: a model stored as text, so a change can be read, diffed and checked. That is what a Power BI Project (PBIP) gives you.
1. Save the report as a Power BI Project
In Power BI Desktop, use File > Save as and choose the Power BI Project (.pbip) type. Desktop writes the report and the semantic model as folders of text files instead of one binary:
Sales/
├── Sales.Report/
├── Sales.SemanticModel/
├── .gitignore
└── Sales.pbipThe .pbip file is only a pointer. Opening it opens the report folder and the model behind it.
2. Store the model as TMDL
Inside Sales.SemanticModel, the model is stored either as one model.bim file (TMSL) or as a definition folder in TMDL, with separate files for tables, roles, cultures and perspectives. Pick TMDL. A rename then shows up as small, readable text changes instead of a rewritten JSON document. A typical TMDL layout:
definition/
├── tables/
│ ├── Product.tmdl
│ └── Sales.tmdl
├── relationships.tmdl
├── expressions.tmdl
├── model.tmdl
└── database.tmdl3. Keep the local cache out of Git
When Desktop creates the project, it writes a .gitignore with these two lines, as long as one doesn't already exist in that folder or the parent repository:
**/.pbi/localSettings.json
**/.pbi/cache.abfKeep them. cache.abf is the local data cache, and it has no business in source control.
4. Commit a baseline
From the project folder, in PowerShell:
git init
git add .
git commit -m "Baseline: Sales report and model as PBIP (TMDL)"Run git init in the folder that holds the generated .gitignore (or its parent), so cache.abf stays out of the very first commit. That commit is your first way back, and it doesn't depend on anyone keeping an old .pbix.
5. See what a rename looks like
Rename a measure in Desktop, save, and run git diff. In TMDL, the measure is one readable block. Using the measure from Microsoft's TMDL example, the model side of the change looks like this:
- measure 'Sales Amount' = SUMX('Sales', 'Sales'[Quantity] * 'Sales'[Net Price])
+ measure 'Net Sales' = SUMX('Sales', 'Sales'[Quantity] * 'Sales'[Net Price])
formatString: $ #,##0Measures that reference it, and visuals in this project's report folder, show up in the same diff. Reports outside the project don't. So the diff gives a reviewer the question the Publish prompt can't answer: which reports outside this project use Sales Amount? Episode 4 starts turning questions like that into rules.
Pitfalls
Gates that cry wolf. When I moved my first report to PBIP, TMDL and Git in September, I wrapped it in validation rules meant to catch problems before deployment. They flagged things that weren't problems and missed some that were. A gate that raises false alarms gets switched off, so Episode 4 spends real time on rules worth trusting.
Messy metadata makes every gate worse. Along the way I learned that automation only works on a well-documented model. I had to go back and fix measure descriptions, naming and folder structure before validation produced anything useful. If your model's names and descriptions are inconsistent, fix that first.
Fabric Git integration status. If you plan to connect a workspace to Git instead of committing from Desktop, check the current item list. As of its September 2026 update, Microsoft Learn lists semantic models and reports as preview items in Fabric Git integration.
Publishing a PBIP from Desktop isn't metadata-only. Microsoft notes that publishing a PBIP from Desktop sends a temporary PBIX, so both the metadata and the local data cache go to the service. Deploying through Fabric Git integration or the Fabric APIs (which fabric-cicd uses) sends metadata only, so the model needs a refresh after it lands. That is why Episode 7 has a refresh check.
What to check before Episode 2
- How do you go back today if a release breaks a report? Write down the actual steps.
- Which reports outside your project use your model? The Publish prompt counts them. Do you know their names?
- Is your model saved as PBIP with TMDL, with a baseline commit?
- Do your measures have consistent names, descriptions and display folders?
Summary
The baseline commit is your first way back that doesn't depend on an old file, and every gate in this series builds on the PBIP folder it captures.
Next: Episode 2, designing a pipeline that can say no. We'll place each gate, decide what it is allowed to block, and weigh what each one costs in speed.
Sources
- Publish from Power BI Desktop, Microsoft Learn, updated 2 Apr 2026
- Power BI Desktop projects (PBIP), Microsoft Learn, updated 23 Sep 2026
- Power BI Desktop project semantic model folder, Microsoft Learn, updated 29 Sep 2026
- Tabular Model Definition Language (TMDL), Microsoft Learn, updated 5 Aug 2024
- Azure DevOps build pipeline integration with Power BI Desktop projects, Microsoft Learn, updated 15 Dec 2025
- Deploy Power BI projects (PBIP) using fabric-cicd, Microsoft Learn, updated 29 Sep 2026
- Overview of Fabric Git integration, Microsoft Learn, updated 29 Sep 2026