# Microsoft Copilot Studio

Copilot Studio does not load the SparkLogs skills plugin.
You connect the SparkLogs **MCP** server and paste the [instruction template](https://sparklogs.com/docs/it-fleet-intelligence/connect/agent-instructions.md).

> **Use the standard harness, not the New experience**
>
> Create this agent on the **standard harness** (classic Copilot Studio authoring).
> If Studio offers a New experience toggle, leave it **off**.
> The New experience is the GitHub Copilot harness.
> The harness is chosen when the agent is created and **cannot be changed** later.
>
> Generative orchestration on the standard harness, with the SparkLogs MCP server, is all this agent needs.
>
> The two also bill differently.
> On the standard harness, a tech with a Microsoft 365 Copilot license can chat with this agent in Teams and Copilot Chat under Microsoft's included, fair-use terms, with no charge per token.
> The GitHub Copilot harness bills **Copilot Credits** for building, testing, and every run.
>
> Microsoft's comparison: [Standard harness vs GitHub Copilot harness](https://learn.microsoft.com/en-us/microsoft-copilot-studio/agents-experience/classic-vs-new).

Studio controls for MCP: [Connect an existing MCP server](https://learn.microsoft.com/en-us/microsoft-copilot-studio/mcp-add-existing-server-to-agent).

## Before you start

- A SparkLogs workspace with data (typically the [SparkLogs Agent](https://sparklogs.com/docs/agents.md) on the endpoints you manage).
- A **Microsoft 365 Copilot** per-user license (sometimes sold as Copilot Business) for each person who will talk to the agent.
  The Copilot Chat that ships with some Microsoft 365 plans is not that license.
- A SparkLogs role that can query data, for each person who chats with the agent: Administrator, Organization Administrator, Engineer, Analyst, or Analyst (no raw logs).
  Analyst (no raw logs) gets counts, patterns and device health, and no raw log events.
  No SparkLogs administrator has to set anything up first, because Copilot Studio registers itself when it connects.
- A **Power Platform** environment you created for this agent.
  Follow the environment setup below before creating the agent.

As of August 2026, Microsoft documents that employee-facing Copilot Studio agents used in Copilot Chat, Teams, and SharePoint are included for a Microsoft 365 Copilot-licensed user, subject to fair use.
Microsoft sets those terms and can change them.
See Microsoft's [Copilot Studio billing rates](https://learn.microsoft.com/en-us/microsoft-copilot-studio/requirements-messages-management) (footnote on licensed-user inclusion), [standard harness licensing](https://learn.microsoft.com/en-us/microsoft-copilot-studio/billing-licensing), and [Copilot extensibility cost considerations](https://learn.microsoft.com/en-us/microsoft-365/copilot/extensibility/cost-considerations).

## Set up the Power Platform environment

Use a non-default environment for this setup.
We have encountered agent creation and Overview errors in **Default** that cleared after switching to a new environment created for Copilot Studio use.

1. In the **Power Platform admin center**, open **Manage → Environments → New** in the same tenant as Copilot Studio.
2. Choose a [supported region](https://learn.microsoft.com/en-us/microsoft-copilot-studio/requirements-licensing-region) and add a **Dataverse** data store.
3. Set **Type** to **Production** for live use or **Sandbox** for development and testing.
   Naming an environment "Production" does not set its Type.
4. Once provisioning completes, select the environment in Copilot Studio **before** creating the agent.
   Have your administrator grant the maker access if it is missing from the picker.

Microsoft recommends a non-default production environment for deployed agents.
See [environment setup](https://learn.microsoft.com/en-us/microsoft-copilot-studio/environments-first-run-experience) and [development-to-production deployment](https://learn.microsoft.com/en-us/microsoft-copilot-studio/guidance/alm).
Publishing an agent to Teams uses that agent's environment.
It does not move the agent into a separate Production environment.

## Create the agent

In Copilot Studio, confirm the Environment picker shows your dedicated environment, not Default.
Create a new agent on the **standard harness**, with the New experience toggle **off**.

Name the agent **SparkLogs AI** (or **SparkLogs**).
Language: English, unless your techs work in another language Studio supports.
Solution: **Common Data Services Default Solution** is fine inside a dedicated environment.
You do not need the auto-generated schema name.

![Name your agent dialog with SparkLogs, English, and Common Data Services Default Solution](https://sparklogs.com/img/ux/copilot-std-create-agent.png)

### Model

Choose a generally available model that supports the agent's generative orchestration and is enabled for your intended users.
Microsoft generally recommends `GPT Chat Latest`, and it has worked well in our testing.

Use Microsoft's current [model selection guidance](https://learn.microsoft.com/en-us/microsoft-copilot-studio/authoring-select-agent-model) and the choices shown in your environment.

Certain models may only be available if you accept the data processing terms in **Copilot → Settings → View all → AI providers operating as Microsoft subprocessors**.
See Microsoft's [provider access settings](https://learn.microsoft.com/en-us/microsoft-365/copilot/connect-to-ai-subprocessor).

### Instructions and orchestration

The create wizard's Instructions box takes a short persona.
A first paragraph like this is enough to get the agent created:

![Instructions field with the SparkLogs engineering-companion persona](https://sparklogs.com/img/ux/copilot-std-specify-instructions.png)

```text
You are an engineering companion for IT pros, including for MSPs who manage IT for many end-clients. You help investigate issues, surface likely root-causes, and hunt for serious problems before end-users would see them. You do not focus on trivial matters that would not cause material IT issues unless it's directly relevant to a specific request. You focus on good business and IT outcomes, following best practices and applying general knowledge as a seasoned IT engineer.
```

After the agent exists, replace Overview **Instructions** with the **full** [instruction template](https://sparklogs.com/docs/it-fleet-intelligence/connect/agent-instructions.md).
At a minimum, keep the "SparkLogs instructions" section.
Customize the rest if you want.

Turn **generative orchestration** on.
Skip knowledge sources.
If you add web search, add it **after** SparkLogs so fleet questions hit SparkLogs first.

### Agent authentication for Teams

Open **Settings → Security → Authentication** and select **Authenticate with Microsoft** for the built-in Teams and Microsoft 365 channel.
Save.
The change takes effect when you publish, at the end of this setup.

This setting identifies the person chatting with the agent.
The MCP OAuth connection below separately authorizes that person's access to SparkLogs data.
See Microsoft's [agent authentication guidance](https://learn.microsoft.com/en-us/microsoft-copilot-studio/configuration-end-user-authentication).

## Connect SparkLogs MCP

Open **Tools** → Add a tool → **Model Context Protocol**.

Fill in:

- **Server name:** `SparkLogs MCP`
- **Server description:** `Query and analyze SparkLogs data for IT Fleet Intelligence`
- **Server URL:** https://mcp.sparklogs.app/mcp
- **Authentication:** OAuth 2.0
- **Type:** **Dynamic discovery**

![Add a Model Context Protocol server: SparkLogs MCP, OAuth 2.0 Dynamic discovery](https://sparklogs.com/img/ux/copilot-std-create-mcp-server-1.png)

**Add and configure** stays disabled until the connection exists.
That is expected.

![Add tool for SparkLogs MCP showing Not connected, Add and configure disabled](https://sparklogs.com/img/ux/copilot-std-create-mcp-server-2.png)

Create the connection.
Display name can be `SparkLogs MCP Connection` (or `SparkLogs`).

![Create connection, display name SparkLogs MCP Connection](https://sparklogs.com/img/ux/copilot-std-create-mcp-server-3.png)

### Sign in to SparkLogs

Studio sends you to SparkLogs consent.
The app name **Credential Manager** and the redirect `global.consent.azure-apim.net` are Azure's labels for this connector, not a second product.

- Pick the **workspace** that has your fleet data.
- Leave **Analyze and query patterns in collected data**, **Read raw log events** and **Query device health and state** on for a fleet agent.
  Turn off **Read raw log events** if the agent should work from counts, patterns and device health only.
- **All organizations I have access to** is the usual MSP choice.
  **Selected organizations** if this agent should see a subset of clients.

![SparkLogs consent for Credential Manager: workspace, scopes and organizations](https://sparklogs.com/img/ux/oauth-consent-azure.png)

Back in Studio, **Create or pick a connection**, then Submit.

![Create or pick a connection, SparkLogs MCP Connection selected](https://sparklogs.com/img/ux/copilot-std-create-mcp-server-5.png)

The tools list should show **Connected**.

![SparkLogs MCP row with status Connected](https://sparklogs.com/img/ux/copilot-std-create-mcp-server-6.png)

### Who the agent runs as

Open the SparkLogs MCP tool details:

- **Ask the end user before running:** **No**.
  Otherwise Studio prompts on every SparkLogs call.
- **Credentials to use:** **End user credentials**.
  Each tech signs in to SparkLogs as themselves.
  The agent can do only what that person's role and organization access allow.
  Use **Maker credentials** only when you want everyone who chats with the agent to query as you, with your role and organizations.
  If you do, restrict who can use the agent and limit the scope it is granted.

![SparkLogs MCP tool details: do not ask before running, end user credentials](https://sparklogs.com/img/ux/copilot-std-create-mcp-server-4.png)

### Stop Studio asking for tool inputs

Studio still treats some MCP inputs as required (`start`, `end`, `external_investigation_id`) and asks the user for them, including timestamps in RFC 3339 format.
After the tools appear, open **Inputs** on each SparkLogs tool and set those fields to **Don't prompt**.
The instruction template already says never to ask for RFC 3339 timestamps, and this Studio setting is what stops the prompts.

## Test, then publish

Confirm the Environment picker still shows your dedicated environment.

![Copilot Studio header for SparkLogs AI with Environment, Publish, and Test](https://sparklogs.com/img/ux/copilot-std-create-mcp-server-9.png)

Open **Test**.
Try a fleet question such as: "What data is available? Any problems in my fleet over last week?"

![Test your agent pane with a fleet question in the input box](https://sparklogs.com/img/ux/copilot-std-create-mcp-server-7.png)

A good answer cites coverage and health, names what is in scope, and offers a follow-up.
Example:

![SparkLogs AI test reply summarizing telemetry, organizations, and follow-ups](https://sparklogs.com/img/ux/copilot-std-create-mcp-server-8.png)

> **If a test stalls**
>
> Start a **new conversation** and retry once.
> If it still stalls, use the troubleshooting steps below to distinguish agent, connection, and query failures.

When Test looks right, **Publish**.
Publishing does not put the agent in front of techs by itself.
You still connect a channel, share it, and tell them how to open it.

Microsoft's channel and install steps: [Connect an agent for Teams and Microsoft 365 Copilot](https://learn.microsoft.com/en-us/microsoft-copilot-studio/publication-add-bot-to-microsoft-teams).
Sharing: [Share agents with other users](https://learn.microsoft.com/en-us/microsoft-copilot-studio/admin-share-bots).

### Channels

1. Open **Channels** and select the **Teams and Microsoft 365 Copilot** tile.
2. Under Turn on Microsoft 365, leave **Make agent available in Microsoft 365 Copilot** selected so techs can use it in both Teams and Microsoft 365 Copilot.
   If you clear that, it is Teams only.
3. Select **Add channel**.

Install it for yourself first: **See agent in Teams** → **Add**.
The agent should appear in your Teams agent list (left rail), like a 1:1 chat.

If **Add** is blocked, your Teams admin must allow Power Platform apps in the Teams admin center.

### Validate the published agent

Use a **private 1:1 chat** in Teams with the same account used for the Studio test.
After you publish a change, enter `Start over` so the chat picks up the new version.
Then try:

1. "Reply with hello without using any tools."
2. "Use SparkLogs to list the organizations I can access."
3. The fleet question you tested in Studio.

Complete the connection card if Teams requests SparkLogs sign-in.
A working Studio test does not verify the published user's tool connection.
Repeat these checks with an engineer's account after sharing.
Microsoft documents the [tool connection and consent flow](https://learn.microsoft.com/en-us/microsoft-copilot-studio/configure-enduser-authentication).

### Share with engineers

Share so other engineers can _use_ the agent (not edit it in Copilot Studio).

1. **Share** (overflow menu next to Publish).
2. Add the security group for your service desk (or named engineers).
3. Permission: **User - can use the agent**.
   Do not grant authoring unless someone else should change the agent.
4. Open **Channels**, select **Teams and Microsoft 365 Copilot**, then **Availability options**.
   **Copy link** and send it to the group.

On the same panel, **Show to my teammates and shared users** (and **Show in Built By Your Colleagues**) puts the agent in the Teams app store under **Built with Power Platform**, visible only to people you shared with.

Leave **Allow your users to add this agent to a team** off for the initial setup.
Before you turn it on, review Microsoft's [Teams channel limitations](https://learn.microsoft.com/en-us/microsoft-copilot-studio/publication-add-bot-to-microsoft-teams#known-limitations).
Channel replies are visible to everyone in that channel, including a client's staff when the team belongs to a client.

Org-wide catalog (**Built for your org** / Microsoft 365 Agent Store) needs a Teams admin approval.
Skip that until the 1:1 path works for the desk.

Republish after you change instructions or tools.
In an already-open Teams chat, the engineer may need to type `Start over` before they see the new version.

## How engineers chat with the agent

Use a **private 1:1 chat** with SparkLogs AI for this setup.

**Teams (usual path)**

1. Open the install link you sent, or go to **Apps**, search **SparkLogs AI** under **Built with Power Platform**, and **Add**.
   Install it as a personal app.
2. Open a chat with **SparkLogs AI** from the left rail (same as starting a chat with a person).
3. On first use, complete SparkLogs OAuth (end-user credentials): pick the workspace and org scope as appropriate.
   Any workspace member with access can approve.
4. Ask in plain language: a client, a device, a time window, or a whole fleet-wide analysis.

**Microsoft 365 Copilot**

Open Copilot, pick **SparkLogs AI** from the agent list (or type `@` and select it), then ask.
Until they leave that conversation, Copilot is talking to this agent only.

If an engineer cannot find the agent, see [If something fails](#if-something-fails).

## If something fails

- Agent creation or Overview errors: check the Environment picker and complete the dedicated-environment setup above.
  If the error persists there, capture the exact error for your Power Platform administrator.
- Wrong harness: you cannot convert a GitHub Copilot-harness agent to standard.
  Create a new agent with New experience off.
- Techs cannot **Add** the agent in Teams: the tenant may block Power Platform apps.
  That is a Teams admin setting.
- Techs cannot find SparkLogs AI: they need a Microsoft 365 Copilot license and membership in the group you shared.
  Sign out of Teams and back in, or wait; the store caches.
- The agent reports access denied when it queries: your access in that workspace does not include querying data (for example, Finance Admin only).
  Ask a workspace Administrator for the Engineer or Analyst role.
- The consent screen says you have no access to give the app: you have no access in that workspace.
  Ask a workspace Administrator for access, then start again from the app.

  ![Consent screen stating you have no access to give this app](https://sparklogs.com/img/ux/oauth-consent-no-access.png)
- Raw log queries are refused while counts work: your role has no raw log access (Analyst (no raw logs)), or the connection lacks the `events:read` scope.
  Reconnect and approve that scope, or ask an Administrator for a role with raw log access.
- Queries succeed but return nothing: your organization access, or the organizations you chose when approving, may not include the clients you asked about.
  Disconnect the app on the **Access** page and approve again with the right organizations, or ask an Administrator to check your organization access.
- OAuth for the wrong workspace: disconnect in SparkLogs [Workspace Access](https://sparklogs.com/docs/workspace/access.md) and approve again.
- Studio asks for a timestamp in RFC 3339 format: set SparkLogs tool inputs to **Don't prompt**, and keep the instruction template's time-window rules.
- Do not put an API key or bearer header on this connector unless you intend to skip OAuth.
  API tokens: [Workspace Access](https://sparklogs.com/docs/workspace/access.md).

### Works in Studio, but Teams does not respond

First run the published-agent checks above in Teams web and desktop, using the same account.
If the greeting works but the SparkLogs request fails, check the user's MCP connection, consent, and workspace access.
If neither the greeting nor the SparkLogs request gets a reply, check these settings:

- **Teams app policy:** ask your Teams administrator to review **Teams apps → Manage apps → Actions → Org-wide app settings**, especially **Let users interact with custom apps in preview**.
  Confirm the agent is allowed for the user and **Shared Power Apps** is allowed for Power Platform distribution.
- **Model access:** confirm the affected user can use the selected provider.
  If a third-party model is blocked, test an available Microsoft-provided model, publish, and start a new conversation.
- **Authentication and sharing:** verify **Authenticate with Microsoft**, **User - can use the agent**, and any environment permissions reported by the sharing dialog.
  Installing an app does not grant permission to chat with it.
- **Published version:** confirm the Teams install link comes from the intended agent and environment.
  Publish changes, then enter `Start over`.

Microsoft lists [known Teams failures and remedies](https://learn.microsoft.com/en-us/microsoft-365/copilot/extensibility/known-issues), including blocked custom-app interaction and missing Entra app registrations.
If the registration is missing, have your administrator follow Microsoft's channel reconnection procedure.

If it is still unresolved, collect:

- the failing prompt, and its time with the timezone
- the error or conversation ID
- the model, and the environment's Type and region
- whether the test used Studio, Teams or Microsoft 365 Copilot
- whether it was a private chat or a shared conversation, and whether a connection card appeared

Your administrator can inspect the published conversation transcript using Microsoft's [Agent Debugger](https://learn.microsoft.com/en-us/microsoft-copilot-studio/guidance/kit-agent-debugger).
Then share the failure details with SparkLogs support without including tokens or secrets.

---

Source: <https://sparklogs.com/docs/it-fleet-intelligence/connect/copilot>
All SparkLogs documentation in Markdown: <https://sparklogs.com/llms.txt>
