Microsoft Fabric Architecture Podcast

Variable libraries are Microsoft's recommended first choice for per-stage configuration in Fabric. But the semantic model — the item the report sits on — can't read one. This episode maps the boundary between variables, deployment rules, and definition edits.

Show Notes

Variable Library: When First Choice Runs Out

Episode 46 • 2026-11-27 Duration: 8:24

Variable libraries are Microsoft's recommended first choice for per-stage configuration in Fabric. But the semantic model — the item the report sits on — can't read one. This episode maps the boundary between variables, deployment rules, and definition edits.

What we discuss

  • How it actually works underneath the abstraction
  • Where the obvious answer breaks
  • The pattern we keep seeing in the field
  • A real Reddit/Microsoft Q&A question unpacked
  • The concrete recommended architecture
  • F-SKU realism — what this actually costs
  • When the rejected approach is actually right
  • Risks of the recommended path
  • The architectural principle to take home

Key takeaways

  • And the item that never learned to ask stays exactly where it was deployed.
  • Somewhere right now a Test workspace is returning Dev data.
  • Walk your items once. Next to each one, write which mechanism covers it. That list becomes your release checklist, and your team's shared truth.

From the video

  • Demo 1: Same Notebook, Two Lakehouses
  • Architecture film: One library one active value set
  • Architecture film: Where variables reach where rules remain
  • Demo 2: The Model Still Needs a Rule
  • Architecture film: Pick the mechanism per setting

Resources

About the show

AI-generated voices. Matthias — cloned voice. Fabia — designed AI co-host. See Matthias live on YouTube (Fabric Friday), at his meetups, and at conferences like FabCon.

Hosted by Matthias Falland — Microsoft Data Platform MVP and community architect behind the Fabric Periodic Table. New episodes every Friday.

Submit your case

Have an architecture decision you are wrestling with? DM Matthias on LinkedIn — find him as Matthias Falland. Three to five sentences about the decision, your team size, and your current stack. We anonymize before airing.


This podcast was generated by AI. Both voices are synthetic: Matthias is a cloned voice, Fabia is a designed AI co-host.

Brand design based on fabricperiodictable.com.

What is Microsoft Fabric Architecture Podcast?

Architecture decisions for Microsoft Fabric. Anonymized real customer scenarios, cost realism, counter-arguments included. Weekly episodes aligned with Fabric Friday recordings.

Variable Library: When First Choice Runs Out
Episode 46 | 2026-11-27
Fabric Architecture Podcast | Hosted by Matthias Falland with AI co-host Fabia

---

[00:08] Fabia: In the video, the notebook picked up the Test lakehouse on its next run. No redeployment. The semantic model right next to it? Still reading Dev.

[00:17] Matthias: Same deployment. Same variable library. No error on either side.

[00:21] Fabia: Variable libraries are Microsoft's recommended first choice for parameterization in Fabric. This episode is about where that recommendation runs out.

[00:31] Matthias: Which items can actually read a variable, which ones still need a rule, and what breaks when you guess wrong.

[00:39] Fabia: A deployment rule rewrites the item when it's deployed. A variable library leaves the item alone and changes what it reads when it runs.

[00:48] Matthias: So the notebook's code is identical in Dev and Test?

[00:51] Fabia: Identical definition. The code says 'ask the library which lakehouse.' The answer depends on which value set is active in that workspace.

[01:00] Matthias: And the active value set... that's not in the definition. It's not in Git either.

[01:06] Fabia: It's workspace state. A deployment never overwrites it. You choose it once per stage and it stays chosen, across every future deployment.

[01:15] Matthias: Which is why deploying from Dev doesn't drag Dev's choice into Test.

[01:20] Fabia: Unless it's the first deployment.

[01:22] Matthias: Because if Default is the Dev—

[01:24] Fabia: —an empty stage starts on Default. The architecture film walked through it. If Default holds your Dev values, the notebook runs green in Test with Dev data. No error on the screen.

[01:36] Matthias: Green. No error. Dev data in Test.

[01:38] Fabia: The fix is one step: set the active value set and save it. The troubleshooting docs call it out. 'You might have forgotten to save your changes.'

[01:48] Matthias: I'd make that a step in the release checklist, not a note someone has to remember.

[01:53] Fabia: Ten item types can read a variable. A pipeline reads them through dynamic content — each stage gets its own values without anyone editing the definition.

[02:04] Matthias: And what's missing from that list?

[02:06] Fabia: Semantic models. The architecture film drew that line clearly — items that ask the library at run time on one side, items whose source is baked into their definition on the other.

[02:18] Matthias: The thing the report sits on.

[02:20] Fabia: And it has no way to ask. So the library can't answer.

[02:24] Matthias: If a variable can't reach the model, and it's Direct Lake, and auto-binding doesn't cover Direct Lake—

[02:31] Fabia: —it needs a rule. Or M parameters. Depending on which kind of Direct Lake.

[02:36] Matthias: There's more than one path?

[02:37] Fabia: Direct Lake on SQL supports a data source rule. Direct Lake on OneLake doesn't. No data source rule, no variable support.

[02:45] Matthias: And that's where people find out.

[02:48] Fabia: There's a community thread that hits exactly this.

[02:51] Fabia: 'Data source deployment rules are grayed out for my Direct Lake model. I'm the owner.'

[02:57] Matthias: Being the owner should be enough. A deployment rule requires the item's owner.

[03:02] Fabia: It is, for item types that support it. But Direct Lake on OneLake has no data source rule at all. The documentation says explicitly: 'Data source rules aren't supported. Use M parameters and parameter rules.' That's a documented limitation, not a permissions problem.

[03:20] Matthias: That's what the second demo showed. The model was in Test, the library was set to Test, and the model still returned five hundred customers from Dev.

[03:31] Fabia: The documented path for Direct Lake on OneLake: M parameters of type Text — workspace ID and lakehouse ID — referenced in the connection expression, then a parameter rule per stage in the deployment pipeline.

[03:44] Matthias: That's a lot of setup. And you need to know to do it before the first release, because nothing at deployment time tells you the rule doesn't exist. By the time you find out, you're already in the middle of a release.

[03:59] Fabia: The Ideas forum has a post for this. A hundred and fifty votes. Status: New.

[04:04] Matthias: People want it. It doesn't exist. And the workaround lives in the TMDL docs.

[04:09] Fabia: The architecture film walked this decision tree. First: does the item bind on its own? A notebook's default lakehouse auto-binds. A Direct Lake model doesn't.

[04:20] Matthias: And connections never auto-bind.

[04:22] Fabia: Never. Across workspaces, only items in the matching stage of linked pipelines.

[04:27] Matthias: So auto-binding's the easy case. Same workspace, the right item types. Everything else falls through.

[04:34] Fabia: Second: can the item read a variable? If yes, one value set per stage, resolved at run time.

[04:40] Matthias: And if it can't?

[04:41] Fabia: Third: is there a rule for the item type? The semantic model is the key one here — a rule rewrites its source definition at the next deployment.

[04:51] Matthias: Pipelines have no rules at all?

[04:53] Fabia: None. For a pipeline, the variable library is the only per-stage mechanism.

[04:58] Matthias: What about other semantic models? Not Direct Lake.

[05:01] Fabia: Documented to auto-bind to the paired item in the target stage.

[05:05] Matthias: For a model on a warehouse, I've seen two documentation pages disagree on the scope of auto-binding. I'd verify that with a test deployment before my release depends on it. Build the test into your pipeline, not the assumption.

[05:20] Fabia: The variable library doesn't add a capacity cost. It's a workspace item on whatever Fabric capacity you have.

[05:28] Matthias: The cost isn't the license. It's that my release now has four different procedures. And if I miss the one for the semantic model, it reads Dev data in Test. Green. No error. Nobody finds out until someone checks the numbers.

[05:43] Fabia: And write access to the library changes what every consumer reads. No per-variable permissions. The library is one unit.

[05:51] Matthias: Lock it down like production code.

[05:53] Fabia: The steel-man for deployment rules. 'Variables first' doesn't mean rules are legacy.

[05:58] Matthias: I'd push back on 'variables first' as a framing. The semantic model — the thing the report sits on — can't read a variable. Calling variables 'first choice' sets people up for the experience in that community thread.

[06:13] Fabia: The best-practices page scopes it. 'Whenever possible, use variable libraries.' Then: 'When you encounter an item type that doesn't support variable libraries, you may need to fall back.' The boundary is documented.

[06:27] Matthias: Documented, yes. Discovered at the right time? That's the question.

[06:32] Fabia: Fair. But for a Direct Lake on SQL model, the data source rule is the documented path. For those items, rules aren't going away.

[06:40] Matthias: Rules for items that need them. Variables for items that can read them. The danger is assuming one covers the other.

[06:48] Fabia: One failure to know by name. Rename the value set that's active in another stage, deploy, and you get: 'Can't start the deployment.' The active value set has to exist in what you ship.

[07:00] Matthias: Treat variable names the same way. Rename one and every reference breaks as 'Variable not found.' No warning at rename time.

[07:09] Fabia: And a variable reference resolves with the caller's permissions. The documentation says it clearly: 'A reference that resolves for you might not resolve for someone else.'

[07:20] Matthias: That's the kind of thing you find at two in the morning when the scheduled job fails and your test passed an hour before. Different identity, different resolution. The documentation tells you the value just doesn't come back.

[07:35] Fabia: Walk your items once. Next to each one, write which mechanism covers it. That list becomes your release checklist, and your team's shared truth.

[07:45] Matthias: Simplicity on the slide is not simplicity at runtime.

[07:49] Fabia: The notebook asks on every run.

[07:51] Matthias: Somewhere right now a Test workspace is returning Dev data. The notebook ran green. Somebody forgot to save.

[07:58] Fabia: And the item that never learned to ask stays exactly where it was deployed.

[08:04] Matthias: If that's your pipeline, DM me on LinkedIn. Find me as Matthias Falland.

[08:08] Fabia: See you next week.

---

End of episode. ~08:10 estimated.