Skip to content

Commit 441ec7c

Browse files
authored
Enhance Power BI Copilot Studio documentation
Updated the document to include new sections on Fabric data agent concepts, creating a Fabric data agent, and examples of questions to ask. Enhanced the steps for deploying the Fabric MCP Server and configuring the custom connector in Power Platform.
1 parent 82f7f53 commit 441ec7c

1 file changed

Lines changed: 90 additions & 62 deletions

File tree

3_PowerPlatform/2_CopilotStudio/2_connecting-PowerBI-CopilotStudio.md

Lines changed: 90 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ Last updated: 2025-07-17
2020
- [Connect to an existing Model Context Protocol (MCP) server](https://learn.microsoft.com/en-us/microsoft-copilot-studio/mcp-add-existing-server-to-agent) - MCP
2121
- [Connecting an Agent in Copilot Studio to an MCP Server](https://techcommunity.microsoft.com/blog/microsoft365copilotblog/connecting-an-agent-in-copilot-studio-to-an-mcp-server/4448362) - blog
2222
- [Connect AI Agents to Fabric API for GraphQL with a local Model Context Protocol (MCP) server](https://learn.microsoft.com/en-us/fabric/data-engineering/api-graphql-local-model-context-protocol)
23+
- [Fabric data agent concepts (preview)](https://learn.microsoft.com/en-us/fabric/data-science/concept-data-agent)
24+
- [How to create a Fabric data agent (preview)](https://learn.microsoft.com/en-us/fabric/data-science/how-to-create-data-agent)
25+
- [Fabric data agent example with the AdventureWorks dataset (preview)](https://learn.microsoft.com/en-us/fabric/data-science/data-agent-scenario): `This example sets up a Fabric data agent to enable conversational AI over enterprise data`. It connects to a lakehouse with the AdventureWorks dataset and allows users to ask natural language questions. The agent interprets queries, accesses data from sources like warehouses, semantic models, and KQL databases, and returns insights. It simplifies data interaction without requiring code or SQL.
2326

2427
</details>
2528

@@ -34,70 +37,95 @@ Last updated: 2025-07-17
3437
3538
<img width="1309" height="944" alt="image" src="https://github.com/user-attachments/assets/c633ed23-55dd-46a0-855b-df11894bd324" />
3639

37-
## Step 1: Prepare Your Environment
38-
39-
Before you begin, make sure you have:
40-
- Access to **Microsoft Copilot Studio**: https://studio.copilot.microsoft.com
41-
- Access to **Power Platform**: https://make.powerapps.com
42-
- A **Power BI dataset** published in **Microsoft Fabric**
43-
- An **Azure subscription** (for secure deployment)
44-
- Admin rights to create **custom connectors**
45-
46-
## Step 2: Deploy the Fabric MCP Server
47-
48-
Microsoft provides a Fabric MCP server that supports:
49-
- Listing workspaces and datasets
50-
- Executing DAX queries
51-
- Triggering dataset refreshes
52-
53-
You can deploy it using Azure Container Apps or run it locally using Docker.
54-
55-
> To deploy:
56-
1. Clone the official repo:
57-
[Microsoft Fabric MCP GitHub](https://github.com/snahrup/microsoft-fabric-mcp)
58-
2. Follow the instructions in the `README.md` for:
59-
- Local development
60-
- Azure deployment
61-
- Authentication setup (OAuth 2.0 recommended)
62-
63-
## Step 3: Create a Custom Connector in Power Platform
64-
65-
1. Go to https://make.powerapps.com
66-
2. In the left menu:
67-
- Click **More****Discover all**
68-
- Under **Data**, pin **Custom connectors**
69-
3. Click **Custom connectors****New custom connector****Create from blank**
70-
4. Name your connector (e.g., `FabricMCPConnector`) → Click **Continue**
71-
72-
## Step 4: Configure the Connector
73-
1. Toggle **Swagger editor**
74-
2. Paste the OpenAPI (Swagger) YAML from the MCP repo:
75-
- Replace `dummyurl.azurewebsites.net` with your deployed MCP server URL
76-
3. Click **Create connector**
77-
78-
## Step 5: Add the MCP Connector to Copilot Studio
79-
80-
1. Go to https://studio.copilot.microsoft.com
81-
2. Open your **agent**
82-
3. Go to **Tools****Add a tool**
83-
4. Choose **Model Context Protocol (MCP)**
84-
5. Fill in:
85-
- **Name**: Fabric MCP
86-
- **Description**: Connects to Power BI datasets via Fabric
87-
- **Server URL**: `https://your-mcp-server-url/mcp`
88-
6. Choose **Authentication**:
89-
- Use **OAuth 2.0** with Azure AD App credentials
90-
7. Click **Create**
91-
92-
## Step 6: Test the Integration
93-
94-
1. In Copilot Studio, create a **topic** like “Ask about sales data”
95-
2. Use the MCP tool to invoke:
96-
- `tools/list` → to list available datasets
97-
- `tools/query` → to run DAX queries
98-
3. Validate responses and format them using adaptive cards or plain text
40+
## Prepare your data
9941

42+
> [Medallion Architecture](./AzurePortal/1_MedallionArch/): Explore the structured approach to data management.
10043
44+
<div align="center">
45+
<img src="https://github.com/user-attachments/assets/2c5141ea-4f3a-4054-b8bd-313efde24ff0" alt="Centered Image" style="border: 2px solid #4CAF50; border-radius: 2px; padding: 2px; width: 900px; height: auto;"/>
46+
</div>
47+
48+
> Or if you need to handle `complex data transformations and large-scale data processing`, you can use our combined solution of **Fabric + Databricks**. This powerful combination leverages the strengths of both platforms to provide a robust data processing pipeline. This workshop on [Fabric with Databricks for Data Analytics](https://microsoft.github.io/TechExcel-Fabric-with-Databricks-for-Data-Analytics/) offers a comprehensive step-by-step guide on developing Medallion Architecture using Fabric and Databricks. <br/>
49+
50+
<p align="center">
51+
<img width="650" alt="image" src="https://github.com/user-attachments/assets/58431d3b-e294-46fe-89a4-92a046168ec4" />
52+
</p>
53+
54+
Click [here to read more about Azure Databricks + Fabric](https://github.com/MicrosoftCloudEssentials-LearningHub/DemosScenarios-TechTalks/blob/main/0_Azure/2_AzureAnalytics/3_Databricks/1_demos/0_MedallionArch_Fabric%2BDatabricks/README.md) `better together`
55+
56+
## Use Fabric Data Agent (Preferred for Semantic Models)
57+
58+
> AI skills in Microsoft Fabric enable users to `create conversational AI experiences that answer questions about data stored
59+
> in lakehouses, warehouses, Power BI semantic models, and KQL databases`. These skills make data insights accessible and
60+
> actionable, allowing users to `interact with data naturally and receive relevant answers without needing technical expertise`.
61+
> You can create custom Q&A systems using generative AI, guiding the AI with instructions and examples to ensure it understands your organization's context and data.
62+
63+
Key Features:
64+
65+
- Customizable Q&A Systems: Tailor the AI to answer specific questions relevant to your organization.
66+
- Generative AI: Leverage advanced AI to interact with your data, enhancing data-driven decision-making.
67+
- Ease of Use: Once set up, users can simply ask questions and get accurate answers without needing deep technical knowledge.
68+
69+
E.g:
70+
71+
<img width="1886" height="831" alt="image" src="https://github.com/user-attachments/assets/79f455c8-da0e-4187-b370-f98aff2985ed" />
72+
73+
<img width="1897" height="837" alt="image" src="https://github.com/user-attachments/assets/3e92d177-c0e6-456c-b965-980aff12a16d" />
74+
75+
<details>
76+
<summary><b> Setup required</b> (Click to expand)</summary>
77+
78+
1. Please ensure you read all the [prerequisites](https://learn.microsoft.com/en-us/fabric/data-science/how-to-create-data-agent#prerequisites)
79+
2. **Tenant switch enabled**: These features must be activated as mentioned here [prerequisites](https://learn.microsoft.com/en-us/fabric/data-science/how-to-create-data-agent#prerequisites)
80+
81+
<https://github.com/user-attachments/assets/f0df6fb9-e139-4c97-9b68-a6ea05eb6584>
82+
83+
3. **F2 Fabric capacity or higher**: Ensure you have the appropriate Fabric capacity.
84+
4. **Workspace configured with Fabric Capacity**:
85+
86+
<img width="200" height="300" alt="image" src="https://github.com/user-attachments/assets/7fbfb16d-a32a-4540-bd03-e6b3c0412a5b">
87+
88+
<img width="700" height="300" alt="image" src="https://github.com/user-attachments/assets/1cb31d49-6138-4c95-835a-a61ccb08661b">
89+
90+
5. At least one of these: A warehouse, a lakehouse, one or more Power BI semantic models, or a KQL database with data.
91+
92+
</details>
93+
94+
<details>
95+
<summary><b> How it works (Click to expand)</summary>
96+
97+
1. Go to the `workspace`, click on `+ New item`, search for `Data agent`, and select it.
98+
99+
<img width="550" alt="image" src="https://github.com/user-attachments/assets/42ff0a1c-3e61-4e24-8bb5-e56db6fe9b7e" />
100+
101+
2. Choose the name for the Data agent instance:
102+
103+
<https://github.com/user-attachments/assets/752734e4-f7f6-44a3-8ccb-069ac005a410>
104+
105+
3. Add data:
106+
107+
<https://github.com/user-attachments/assets/9800e74e-cbca-45ff-a712-bb2e8a095bb5>
108+
109+
4. Relate tables, and start asking!
110+
111+
<img width="550" alt="image" src="https://github.com/user-attachments/assets/77d5ddbe-8230-440d-9617-d937da48b3cd" />
112+
113+
</details>
114+
115+
> [!NOTE]
116+
> Or use: MCP Server (For Custom Integrations) you create it and connect via Power Platform for example.
117+
118+
## Examples of what to ask
119+
120+
| **Question** | **Example of it looks** |
121+
|------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------|
122+
| **Data Exploration** | |
123+
| - Can you provide an overview of this dataset? <br/> - Are there any missing values or anomalies in this dataset? | <img width="500" alt="image" src="https://github.com/user-attachments/assets/2a43117e-3b29-46f8-98b7-f097df425429"> |
124+
| What are the key variables in this data? | <img width="500" alt="image" src="https://github.com/user-attachments/assets/621c6237-7c79-4c67-981a-e9d7afccf29f"> |
125+
| **Data Insights** | |
126+
| What patterns or trends can you identify in this data? |<img width="500" alt="image" src="https://github.com/user-attachments/assets/899653c3-fa41-4834-8606-37759a7f1ad6"> |
127+
| Can you highlight any correlations between variables? | <img width="500" alt="image" src="https://github.com/user-attachments/assets/a9442f38-ade1-45ee-9cb6-4adf8bdbf0f7"> |
128+
| What are the outliers in this dataset? | <img width="500" alt="image" src="https://github.com/user-attachments/assets/1c0d07b2-91fe-4335-9760-886c10e77bb9"> |
101129

102130
<!-- START BADGE -->
103131
<div align="center">

0 commit comments

Comments
 (0)