Task 3 — Publish your agent to Microsoft 365 Copilot
Part of the Integrate agents with enterprise knowledge and Microsoft 365 lab. New here? Start with Getting started.
Check your access before you start
This task needs: A Microsoft 365 Copilot licence, and permission to publish agents to Copilot in your tenant.
In the Foundry portal, open your agent and select Publish. If Microsoft 365 Copilot is greyed out or returns a consent error, you don’t have the rights this task needs.
Don’t have it? Skip this task. Nothing else in this lab depends on it, and you can still read through the steps to see how it works.
Set up (start here): This task publishes the grounded
caldova-knowledge-agentfrom Task 1. If you don’t have that agent yet, complete Task 1 first (or create and ground it in code withpython ../setup/bootstrap_agent.pyfrom thePythonfolder you opened in VS Code). This task is completed entirely in the portal and Copilot — no local code or.envfile is required.
Continuing from a previous task? If you already published to Teams in Task 2, the same publishing flow makes the agent available in Copilot too — go straight to Publish to Microsoft 365 Copilot below.
Publishing to Microsoft 365 Copilot makes your agent a Copilot agent that staff can reach directly inside Copilot. This task focuses on the publishing workflow — you won’t write any code.
What is a Microsoft 365 Copilot agent?
When you publish to Copilot, your agent becomes a Copilot agent (also called an extension or declarative agent). Staff can invoke it with @mentions in Copilot, access its knowledge alongside Copilot’s own capabilities, and switch between Copilot and your agent seamlessly.
Publish to Microsoft 365 Copilot
When you publish to Copilot, users can:
- Invoke your agent using @mentions in Copilot
- Access your agent’s knowledge alongside Copilot’s capabilities
- Switch between Copilot and your agent seamlessly
Publish from the portal
-
Return to the Foundry portal (https://ai.azure.com)
-
Navigate to your agent (Build → Agents → caldova-knowledge-agent)
-
Select the Publish button
-
Select Publish to Teams and Microsoft 365 Copilot
-
Select Continue
Note: This is the same publishing flow used for Teams. The agent becomes available in both Teams and Copilot through a single publishing process.
Configure publishing details
If you haven’t already published this agent, fill in the configuration (same as the Teams section):
- Name: Caldova Knowledge Assistant
- Description: AI assistant for Caldova staff
- Icons: Upload your 192x192 and 32x32 icons
- Publisher information: Your name and placeholder URLs
Choose publish scope
Select your distribution scope:
| Scope | Visibility | Admin Approval | Best For |
|---|---|---|---|
| Shared | Under “Your agents” in agent store | Not required | Personal testing, small teams |
| Organization | Under “Built by your org” for all users | Required | Organization-wide distribution |
For this lab, select Shared scope for immediate access without admin approval.
Complete publishing
-
Select Prepare Agent and wait for packaging (1-2 minutes)
-
Select Continue the in-product publishing flow
-
Confirm your scope selection and select Publish
-
Wait for publishing to complete
Access in Microsoft 365 Copilot
Once published with shared scope, your agent is immediately available:
-
Open Microsoft 365 Copilot (copilot.microsoft.com or in Microsoft 365 apps)
-
Look for the agent store or Extensions panel
-
Find your agent under Your agents (for shared scope)
-
Start a conversation:
@Caldova Knowledge Assistant How much headroom does Calderwood have? -
Or select your agent and ask directly:
When should we reorder sterile vials, and who is our component supplier? -
Copilot routes the query to your agent and returns information from the Caldova knowledge base
Note: For organization scope, an admin must first approve the app in the Microsoft 365 admin center under Requests. Once approved, the agent appears under Built by your org for all users.
✅ Checkpoint: Your grounded knowledge agent is now reachable inside Microsoft 365 Copilot, answering staff questions from the enterprise knowledge base.
Cleanup
To avoid unnecessary charges, clean up resources when done.
Delete the agent
-
In the Foundry portal, go to Build → Agents
-
Find caldova-knowledge-agent
-
Select the … menu → Delete
-
Confirm deletion
This also removes:
- The Azure Bot Service
- Associated configurations
- Published deployments
Uninstall from Teams
-
Open Microsoft Teams
-
Go to Apps → Manage your apps
-
Find Caldova Knowledge Assistant
-
Select … → Uninstall
-
Confirm uninstallation
Remove Copilot agent
If you published to Copilot:
- The agent becomes inactive when the underlying agent is deleted
- Users will see an error if they try to use it
- An admin may need to remove it from the organization catalog
Next (optional): Task 4 — Work IQ: bring Microsoft 365 signals into an agent