Skip to main content
AI & Automation

How to Build a Microsoft Fabric Data Agent: Grounding, Instructions and Testing

A Fabric Data Agent is quick to stand up and slow to make trustworthy. The demo takes an afternoon; the difference between an agent people rely on and one they quietly abandon is entirely in the grounding, the instructions and the testing.

Amit Kumar Singh - Technology Consulting Partner at MyData Insights

Technology Consulting Partner · MyData Insights

14+ years in industrial data · Former Accenture & EY · India, GCC, SEA

28 September 2026 · 9 min read

The bottom line

Building a Fabric Data Agent has two halves: standing it up (fast) and making it trustworthy (the real work). Choose grounding sources that are already governed — a clean Power BI semantic model, a lakehouse or warehouse with agreed definitions — because the agent inherits their quality. Write source-specific instructions and example questions that steer it to the right measures and filters, enforce row-level security and sensitivity so it respects the same boundaries as your reports, then validate it against a set of test questions with known correct answers before anyone trusts it. Publish it on F2+ capacity with service-principal access for apps, and monitor which questions it answers well and where it drifts. The accuracy lives in the grounding and testing, not the prompt.

The Two Halves of the Build

Standing up a Fabric Data Agent is genuinely quick. You point it at a lakehouse, warehouse or Power BI semantic model, and within an afternoon it is answering questions in plain English on Azure OpenAI. That speed is why the demo always impresses and why the second half of the work gets skipped.

The second half is making the agent trustworthy — and it is where the value is. An agent that answers fluently but wrongly is worse than no agent, because people act on it. The difference between an agent operations relies on and one they abandon within a month is entirely in the grounding, the instructions and the testing.

So treat the build as two distinct jobs. The first is configuration, and it is easy. The second is the discipline that makes the answers correct, and it is the reason to bring rigour rather than just enthusiasm.

Standing up a data agent takes an afternoon; making it trustworthy is the real work. An agent that answers fluently but wrongly is worse than none, because people act on it.

Choose Grounding Sources Deliberately

A Fabric Data Agent can ground on a lakehouse, a warehouse, a Power BI semantic model, a KQL database, a mirrored database or an ontology. The choice matters because the agent inherits the quality and the definitions of whatever it reads. Ground it on a clean, governed semantic model with one definition of each measure and it answers consistently; ground it on raw tables with ambiguous columns and it guesses.

For most operations the best starting source is a well-built Power BI semantic model, because the hard work of defining measures, relationships and row-level security is already done there. The agent reasons over that structure rather than inventing its own. Where the questions span domains the semantic model does not cover, add a governed lakehouse or warehouse rather than reaching for ungoverned data.

The anti-pattern is grounding an agent on everything available in the hope of covering more questions. Breadth over ungoverned data buys you more confident wrong answers, not more coverage. Start narrow on trusted sources, prove the agent, then extend.

Instructions and Example Questions

Configuration is not enough; the agent needs steering. Fabric Data Agents take source-specific instructions and example questions, and these are how you encode the business context the raw data does not carry — that "throughput" means pallets per hour here, that revenue excludes intercompany, that the default period is the current fiscal quarter.

Write instructions the way you would brief a new analyst: which measures to use for which questions, what filters to apply by default, what to do when a question is ambiguous. Provide example question-and-answer pairs so the agent learns the shape of a good answer for your data. This is the highest-return hour in the build — a well-instructed agent on a decent model beats a bare agent on a perfect one.

Keep the instructions versioned and owned, because they will need refinement as you see the questions people actually ask. The first set is a hypothesis; the monitoring below tells you where it was wrong.

Instructions and example questions encode the business context raw data does not carry. Brief the agent like a new analyst: which measure for which question, what filters by default, what to do when ambiguous.

Govern Before You Publish

An agent that ignores security is a data-leak risk with a friendly face. Before publishing, enforce the row-level security and sensitivity labels on the underlying data so the agent respects exactly the boundaries your reports do — a regional manager gets their region, not the whole company. Apply Microsoft Purview sensitivity and lean on the OneLake catalog so the grounding sources are endorsed and classified.

Decide the access model too. For a person asking questions in Teams, delegated identity carries their permissions. For an application or another agent calling this one, use service-principal authentication so the app has its own governed identity rather than borrowing a user's. Set cross-geo AI processing appropriately for GCC, UK, US or India tenants.

Governance is a build step, not a hardening pass you bolt on later. Publishing an ungoverned agent and tightening it afterwards means it has already answered questions it should not have.

Test Against Known Answers

The step that separates a professional build from a demo is validation. Assemble a set of test questions where you already know the correct answer — computed independently from the data — and run them through the agent before anyone trusts it. This catches the ambiguous measures, the wrong default filters and the questions the instructions did not anticipate.

Treat failures as grounding or instruction problems, not prompt problems. If the agent gets margin wrong, the fix is almost always a clearer measure definition or a sharper instruction, not a cleverer question. Iterate the model and the instructions until the test set passes, then keep the test set as a regression check for when the data or the model changes.

Once live, monitor the real questions: which the agent answers well, which it cannot, where users rephrase because the first answer was off. That stream is how you extend the test set and refine the agent — because an agent is maintained, not finished.

Validate against test questions with known answers before anyone trusts it. Treat failures as grounding or instruction problems, not prompt problems — a wrong margin means a fuzzy definition, not a clumsy question.

So What — the Order That Works

Build a Fabric Data Agent in this order: ground it on clean, governed sources; instruct it with your business context and examples; govern it with RLS, sensitivity and the right access model; test it against known answers; publish on F2+ capacity with service-principal access; then monitor and refine. The configuration is the quick part; the other steps are what make it trustworthy.

The single mistake that sinks these projects is grounding on ungoverned data and hoping the AI compensates. It does not — it produces fluent wrong answers, people lose trust, and the agent is quietly abandoned. Get the foundation right and the agent is a genuine force multiplier for the analyst team and the operation.

That foundation — a governed semantic model, unified data, endorsed catalog — is the same foundation everything else on Fabric depends on, which is why we build it first regardless of the headline feature. The agent is the visible payoff of getting the invisible part right.

Ground, instruct, govern, test, publish, monitor. The configuration is quick; the discipline is what makes the agent trustworthy. Grounding on ungoverned data and hoping the AI compensates is the mistake that sinks these projects.

If you want a Fabric Data Agent your operation actually trusts — not a demo that impresses and then gets abandoned — the work is in the grounding, instructions and testing. 30 minutes with Amit on your semantic model, the sources to ground on, and how to validate the agent before it goes live. No slides. No pitch deck. No obligation to proceed.

Free Assessment

Where does your operation sit on the data maturity curve?

8 questions. 3 minutes. You get a scored breakdown across data infrastructure, analytics readiness, and automation potential — with a specific next step for your industry.

AI & AutomationFabric Data AgentMicrosoft FabricAzure OpenAIPower BIConversational BI

Your Data · Our Technology · Our Automation

Get practical insights every fortnight

Amit writes about Microsoft Fabric, Power BI, AI in operations, and digital transformation for manufacturing and supply chain leaders. Practitioner perspective - no fluff, no vendor spin.

No spam. Unsubscribe any time. Also on Substack.

FAQ

Common questions

What do you need to build a Fabric Data Agent?

A paid F2 or higher Fabric capacity (or Power BI Premium per-capacity), the Fabric data agent tenant settings enabled, cross-geo AI processing configured where required, and at least one governed grounding source — a Power BI semantic model, lakehouse or warehouse. Beyond the technical prerequisites, the real requirements are a clean semantic model with agreed definitions, source-specific instructions, and a set of test questions with known answers to validate against.

What should a Fabric Data Agent be grounded on?

Start with a well-built Power BI semantic model, because the measures, relationships and row-level security are already defined there and the agent inherits that structure. Add a governed lakehouse or warehouse where questions span domains the semantic model does not cover. Avoid grounding on raw or ungoverned tables to chase coverage — breadth over ambiguous data produces more confident wrong answers, not more useful ones.

How do you stop a Fabric Data Agent from giving wrong answers?

The accuracy lives in the grounding and testing, not the prompt. Ground on a governed model with one definition of each measure, write source-specific instructions and example questions that steer it to the right measures and filters, and validate against test questions with known correct answers before it goes live. Treat any failure as a definition or instruction problem to fix, and keep the test set as a regression check as the data changes.

How do you secure a Fabric Data Agent?

Enforce the row-level security and sensitivity labels on the underlying data so the agent respects the same boundaries as your reports — a user only gets answers for data they are allowed to see. Apply Microsoft Purview classification, use delegated identity for people and service principals for application access, and set cross-geo AI processing appropriately for your region. Do this before publishing, not after — an ungoverned agent has already answered questions it should not have.

Is this the challenge you're facing?

Book a 30-minute call. We'll look at your specific operation and tell you what's achievable - plainly and without slides.