Our CRM app lives in a Git-connected workspace, next to the reports it replaces. The first time I opened the source control panel there, the reports were listed. The app wasn’t.

That’s not a bug. Fabric App items aren’t supported by Git integration, and deployment pipelines don’t move them either. A workspace connected to Git simply ignores them.

So Fabric doesn’t keep your app’s history. You do. And when an AI agent writes most of the code, that history has to answer three questions the agent will ask every time: what should this app be, where does it run, and what do its numbers mean?

Fabric Apps across DEV and PRO: the repo is the app. On the left, a Git repo with fabric-apps/, containing .deployment/ (README.md and crm-hub.md) and crm-hub/ (context/, src/ and rayfin/, .docs/METRICS.md); the repo holds the branches, PRs and history. An arrow goes to the Rayfin CLI, npx rayfin up, which deploys to the active target. In blue, on every change, it deploys to the DEV workspace (target dev): the CRM Hub app with the latest version reads the DEV semantic model, the connector committed in Git, which reads the DEV gold lakehouse. In green, after merge, it deploys to the PRO workspace (target pro): CRM Hub in production reads the PRO semantic model, switched for the release, which reads the PRO gold lakehouse. A red dashed note: Fabric Git integration and deployment pipelines don't support Fabric App items yet, and a Git-connected workspace ignores them. Same code, two targets. Nothing in Fabric versions the app: the repo does

The repo is the app

Check the two lists Microsoft keeps: Git integration supported items and deployment pipelines supported items. Notebooks, lakehouses, semantic models, reports, SQL databases, even data agents. No Fabric App. The Git page is explicit about unsupported items in a connected workspace: they aren’t saved, synced or deleted. They’re ignored.

Microsoft’s own answer is the Rayfin CLI. The dev and prod tutorial deploys the same project to two workspaces with npx rayfin up, switches between them with npx rayfin up switch, and its first recommended practice is “Keep your source code in version control.”

That’s fine, as long as you take it seriously. rayfin up deploys the code, the schema and the connectors to whichever target is active, and it never deploys data. Everything else has to be in the repo: which workspace is DEV and which is PRO, which semantic model each environment reads, what was released when. The target registry itself (rayfin/.deployments.json) is meant to stay out of Git, so a new laptop knows nothing. If it isn’t written down, it lives in one person’s head.

After eight apps in one repo, the setup I’ve settled on is simple. One folder per app. One deployment file per app, with the DEV and PRO model and the DEV and PRO workspace, all written in the same style so anyone can release any app. And a root CLAUDE.md with the rules the agent never breaks: work on a branch, read measures not tables, the committed connector points to DEV, deploy only to DEV.

Give the agent context, not prompts

The part that changed how I work is the context/ folder. Before I open the terminal, each app gets a brief, and three subfolders: images/, docs/, source/.

Images work very well as examples. One screenshot of the old CRM health report explained the problem better than a page of text. Three screenshots of Salesforce gave the agent a look it followed for weeks. A photo of a sketch in a notebook, like the one this article started from, is a perfectly good spec.

Then the prompt is almost boring: follow CLAUDE.md, read the context, create the new app version, don’t deploy yet. The intelligence is in the files, not in the prompt. A new version starts the same way: a new branch, a new image or note in context/, and the agent starts from everything already written.

The one thing I still check by hand is where the numbers come from. An agent takes the shortest path to a screen, and the shortest path is reading tables and rebuilding the logic in TypeScript. That’s the trap from the three data strategies, and it’s why “read the business from the semantic model” is rule number two in CLAUDE.md.

Every number needs a written owner

METRICS.md, written by the code and read by the business. In blue, the app's constants: kpiCatalog.ts with each KPI, its DAX and its thresholds; the *_METRICS constants with the cards of each page; the *_FILTERS constants with the filters and their model column; and the *Queries.ts files with every DAX query, named. They go into npm run docs:metrics, the script scripts/metrics-doc.ts, which writes .docs/METRICS.md, in green: for example Sales › General, with the cards Orders, key orderAmount, DAX [Order Amount] for the current period, and Win rate, key winRate, DAX [Win Ratio Qty] for the current period, and its filter bar Year, Stage, BU, Country. It's never edited by hand: the PR diff shows which number changed. In red, the guard: a test reads the semantic model definition committed in Git and fails when the app's DAX uses a measure the model doesn't have. In green, so the app can't invent a number: a new metric goes into the model first, where Power BI, Copilot and data agents get it too

The CRM app has five pages, twelve tabs, sixteen health KPIs, around sixty cards and almost forty filters. “What does Win rate on the Sales page compute?” used to mean reading code.

Now every app has a .docs/METRICS.md: each page, each card, its DAX, its filters and the model column behind each one. And the rule is that nobody writes it. npm run docs:metrics generates it from the app’s own constants. Hand-written metric docs drift the week after they’re written; a generated one can’t describe something the app doesn’t do.

Two things make it worth more than documentation:

  • The PR diff is the business review. When a card changes from [Created Opp. Amount] to [Won Opp. Amount], the METRICS.md diff says so in one line a sales manager can read. Nobody reviews TypeScript. Everyone can review a table.
  • A test guards the model. It reads the semantic model definition committed in Git and fails if the app uses a measure the model doesn’t have. The app can’t invent a number. A new metric goes into the model first, where the reports, Copilot and data agents get it too.

That’s the same position as always, applied to apps: the semantic model is the contract. METRICS.md is just the readable list of which clauses each app uses.

How to set it up

The full how-to is in Build › Fabric Apps across DEV and PRO: the repo layout, the deployment file style, the six steps for a new app, the release commands, the rules that cause incidents (the connector switch, switching back to DEV, --force), the metrics generator and a base repo with the templates.

The recommendation

  1. Treat the repo as the app. Fabric won’t version it. Every app in one repo, one folder each, merged through PRs.
  2. Write down where each app runs. DEV and PRO model, DEV and PRO workspace, the release commands. One file per app, same style for all.
  3. Give the agent context, not prompts. A brief, images, docs and source. Screenshots are the best spec you’ll write.
  4. Let the agent deploy to DEV only. PRO and --force are human decisions.
  5. Generate METRICS.md from the code, and test that every measure the app uses exists in the model.

AI makes building a Fabric App a matter of days. What doesn’t get cheaper is knowing, six months later, what’s in production, where it reads from and what its numbers mean. Fabric doesn’t keep that for you yet, so the repo has to.

How are you versioning your Fabric Apps while Git integration doesn’t cover them? I’d love to compare setups.