Power Platform Engineer cover image. Category: Copilot Studio and Fabric. Title: Four Ways to Connect Agents to Fabric Data. Microsoft Now Recommends One.
, ,

Connecting Copilot Studio Agents to Fabric Data: Microsoft Compares Four Patterns and Recommends One

Microsoft has published architecture guidance on a question many Power Platform teams are already asking: what is the right way to connect a Copilot Studio agent to data in Microsoft Fabric? The Learn article Choose an architecture to connect Copilot Studio agents to Microsoft Fabric data, updated November 26, 2026, compares four patterns for querying Fabric and Power BI semantic models, and it makes a clear recommendation.

For most organizations with a governed semantic model, Microsoft recommends a Copilot Studio agent on the Microsoft Copilot harness that queries the model through the Power BI connector. That choice is fast and flexible, but it moves two responsibilities onto your team: the agent writes its own DAX, and every query runs as the signed-in user. This article explains the four patterns, what the recommended one asks of admins, and a worked example of the access setup.

The key idea: who writes the query

The guidance organizes everything around one question: where query construction lives. In patterns 1 and 2, a Fabric data agent writes the queries. In patterns 3 and 4, the Copilot Studio agent writes DAX itself and runs it through the Power BI connector action Run a query against a dataset, which runs a read-only EVALUATE statement against the semantic model with no data agent in between.

Diagram titled Four patterns, one question: who writes the query? Patterns 1 and 2 use a Fabric data agent to write queries; patterns 3 and 4 have the Copilot Studio agent write DAX through the Power BI connector. Pattern 4, on the Microsoft Copilot harness, is recommended. Patterns 3 and 4 run every query as the signed-in user.
PatternHow it worksTrade-offBest fit, per Microsoft
1. Fabric data agent, published directlyA Fabric data agent is published to Microsoft Copilot or Teams, with no Copilot Studio agent in the path.Fewest moving parts, but the data agent’s defaults decide formatting and commentary.Quick self-service questions, and checking that the data layer answers correctly on its own.
2. Copilot Studio plus a connected Fabric data agentCopilot Studio handles orchestration and narrative and calls the data agent for every data question.Slowest, because each delegated call adds time. Instructions live in two agents.Models that are still evolving, where adaptability matters more than speed.
3. Copilot Studio (standard harness) plus Power BI connectorThe agent writes DAX and runs it read-only through the connector.Fast, but limited to 8,000 characters of instructions, with no skills and no automatic retry.Fast analysis on a stable, governed model with concise documentation.
4. Copilot Studio (Microsoft Copilot harness) plus Power BI connectorSame direct connector, on the Microsoft Copilot harness.Fast, retries failed queries and uses skills, but still depends on a governed model and on per-user permissions.Recommended default for interactive analytics over a governed model.

What the Microsoft Copilot harness adds in pattern 4 is specific. The agent reads a failed query’s error, corrects the DAX and retries within the same turn. Model knowledge and tested query patterns live in a reusable skill instead of the instructions. Instructions are not capped at 8,000 characters. And because the workspace and semantic model IDs sit in one configuration block, the agent can be retargeted from a development tenant to production by changing those IDs. If the harness name is new to you, see The GitHub Copilot Harness Is Now the Microsoft Copilot Harness.

Two foundations before any pattern

The guidance is direct that the pattern is not the first decision. It asks for two foundations, and warns that without them a pattern might look effective in a demo but stay difficult to validate for production.

It also lists six questions to answer first: who will use the agent and in which channel, which questions it must answer, how fast answers need to be, how mature the model is, who will maintain the agent’s knowledge of the model, and which data each user may or may not see. The last two are governance questions, and they are the ones most often skipped in a pilot.

What the recommended pattern asks of admins

The reference architecture for pattern 4, Copilot Studio analytics agent over a Microsoft Fabric semantic model, spells out the security model. The Power BI connector uses each user’s identity, so a user can only query data they are already allowed to see, and users sign in to Power BI the first time they use the agent. That is good news for data protection, but it means access has to be designed before rollout.

Diagram titled Access setup for a Fabric analytics agent, in five steps: create Entra security groups, define row-level security roles, grant Viewer plus Read and Build, turn on the Semantic Model Execute Queries REST API tenant setting, and add only the read-only query action. Contributor, Member and Admin roles bypass row-level security.
  1. Create Microsoft Entra security groups for each set of users with the same access requirements.
  2. Define row-level security roles on the semantic model and assign the groups to them.
  3. Grant the groups Viewer on the workspace and Read and Build on the semantic model. Viewer alone is not enough to run queries.
  4. Ask a Fabric administrator to enable the tenant setting Semantic Model Execute Queries REST API.
  5. Add only the read-only action, Run a query against a dataset, to the agent. Do not add actions that write to or refresh the dataset.

Two cautions in the reference architecture deserve attention. First, do not give agent users the Contributor, Member or Admin workspace roles, because those roles bypass row-level security. Second, Build permission also lets users create their own reports, so confirm that is appropriate for the audience. The page also notes that developer access rarely matches business-user access, so testing must use accounts that represent real roles.

Worked example: a regional sales agent

Fictional organization and sample names. Northwind Traders wants an agent that answers monthly sales questions for regional managers in Teams. Its sales semantic model already has governed measures such as [Sales Volume], [Forecast Volume] and [Sales Volume PY], a marked date table, and a Region dimension. East managers must see only East figures, and West managers only West.

Access. The Fabric admin creates two security groups, SG-Sales-East and SG-Sales-West, defines two row-level security roles that filter the Region table, and assigns each group to its role. Both groups get Viewer on the workspace and Read and Build on the model, and nobody in them holds Contributor, Member or Admin. The admin confirms the query tenant setting is on.

A question. An East manager asks: “How did September sales volume compare with forecast and last year?” The agent identifies the metric, comparison and time window, then writes a query that reuses the governed measures. An illustrative example of the kind of DAX it might generate (your model’s names will differ):

EVALUATE
SUMMARIZECOLUMNS (
    'Region'[Region],
    TREATAS ( { "September 2026" }, 'Date'[Month] ),
    "Volume", [Sales Volume],
    "Forecast", [Forecast Volume],
    "Prior year", [Sales Volume PY]
)

The connector runs it with the manager’s own identity, so row-level security returns only the East row even though the query does not filter by region. If the query fails, for example because of a misspelled column, the agent on the Microsoft Copilot harness reads the error, fixes the DAX and reruns it in the same turn. It then formats the answer to the agreed output contract, and a person signs off before the answer is shared further.

The test that matters. A West manager asks the same agent for East figures. With row-level security working, the query returns nothing for East, and the reference architecture expects the agent to say what is missing instead of estimating a value. This test, run with real West and East test accounts in the published Teams channel, is the one to keep in the evaluation pack. A test run by the developer, who probably has broader workspace access, would not catch a gap.

Moving between patterns

The guidance includes a finance example that moves through the patterns, and each step has an admin angle:

StepMicrosoft’s reasonWhat admins should check
Start with pattern 2Separate numerical accuracy from narrative; Copilot Studio can break a question into several data questions.Connected agent support in the target channels, and who maintains instructions in two agents. Sharing behavior of connected agents also matters.
Test with pattern 1Run the evaluation prompts against the data agent alone to see whether problems are in the model or the orchestration.Whether the data agent needs to be published to users at all for this diagnostic step.
Move to pattern 3Analysts need interactive response times.Per-user identity now applies: row-level security, workspace roles, Read and Build, and the tenant setting.
Move to pattern 4 for productionSkills, longer instructions and automatic recovery from query errors.Who owns the skill as the model changes, and rerunning the full evaluation pack after any change.

Microsoft’s own caution is worth repeating: you can switch patterns later, but it means rewriting instructions, retesting and resetting user expectations. Choose based on the outcomes needed in production, not on how quickly a demo can be built. For background on pattern 2, see Your Fabric Data Agent Just Got a Seat at the Copilot Studio Table.

What the guidance does not cover

  • Licensing and cost. Neither the patterns page nor the reference architecture mentions licensing, Copilot Credits or Fabric capacity for any pattern. Check those separately before choosing, especially for pattern 2, which makes several calls per question.
  • Monitoring and full ALM. The reference architecture covers evaluation, synthetic test data and portable configuration, but not monitoring tooling or a complete lifecycle process.
  • MCP servers and agent-to-agent connections. These get one paragraph, which says the options continue to evolve and asks you to run your evaluation pack in the published channel and confirm network and endpoint requirements before adopting one.
  • Feature status. The pages do not label pattern 4’s harness features as preview or generally available. Check the status of the Microsoft Copilot harness features you rely on in your tenant before committing to them for production.

Admin checklist

  • Confirm the semantic model is governed: documented measures, a marked date table and documented names.
  • Agree an output contract and an evaluation pack with the business before choosing a pattern.
  • Decide which data each user may see, and implement it with Entra security groups and row-level security roles.
  • Grant Viewer on the workspace and Read and Build on the model; keep agent users out of Contributor, Member and Admin.
  • Decide whether Build permission’s report-creation ability is acceptable for the audience.
  • Have a Fabric admin review the Semantic Model Execute Queries REST API tenant setting.
  • Allow only the read-only Run a query against a dataset action on the agent.
  • Name an owner for the skill and rerun the evaluation pack after any change to instructions, skill, model or semantic model.
  • Test with accounts that match real business roles, in the published channel, and confirm cost and licensing separately.

For the wider picture of moving Copilot Studio work from pilot to production, see Copilot Studio Enterprise Architecture: From Prototype to Production.

Last verified November 27, 2026 against the Learn pages updated November 26, 2026. Product details change quickly; recheck before acting.

Sources