Enterprises with thousands of AI agents keep asking the same question: should we buy an agent governance platform or build our own control plane? After building one end to end against a live Microsoft tenant, our answer is that the question is framed wrong. Build the control plane you want, and license Microsoft Agent 365 as the foundation it stands on.
The reason is simple. Everything a control plane shows can be rebuilt by a good team. The things a control plane does to stop an agent cannot, because they happen inside the identity provider and the Microsoft 365 service. This article walks through what we built, where we hit that wall, and what it means for anyone planning their own.
What we built
The Agentic Control Plane is a web app in Azure App Service that gives a CISO one view of every agent, whichever platform built it. Admins sign in with Microsoft Entra ID, four Entra app roles decide what each person can do, and the app reads the tenant through a managed identity with no stored secrets.
- Unified inventory: every agent with its agent ID, blueprint, sponsor, permissions, risk score and cost, plus shadow agents found by heuristics.
- Security signals: Entra sign-in and audit logs, Defender XDR alerts and hunting, Purview audit, and Defender for Cloud findings, mapped to each agent.
- Kill switch: a six-step containment playbook behind four-eyes approval, where the approver can approve all or only some of a batch.
- Compliance: the OWASP Non-Human Identities Top 10 and Agentic Top 10, plus EU AI Act, NIST AI RMF, ISO/IEC 42001 and SOC 2, with an evidence pack.
- Governance: 14 policies as code, sponsor attestation, a blast-radius graph and FinOps chargeback.
Agent 365 is one adapter among several, so the same views also cover Microsoft Foundry, Amazon Bedrock, Google Vertex AI and Anthropic agents. Since the first version we added four more sources, all on Microsoft APIs: Foundry agents (each matched to the Entra agent identity it runs as), shadow-agent discovery of Azure Bot Services, an OpenTelemetry collector for any agent runtime, and export of findings to Log Analytics for Microsoft Sentinel. When we traced where each live number came from, every one still led back to Agent 365 and Microsoft APIs.
A quick tour
The screenshots below come from the control plane’s synthetic demo tenant: 6,000 Contoso agents across eight platforms, with demo personas standing in for the people who request and approve changes. No real tenant data appears in them; the live-tenant figures are in the evidence section further down.

Command center. One screen answers the questions a CISO asks first: how many agents exist, how many are shadow or ownerless, how many hold the “lethal trifecta” of private data, untrusted input and an outbound channel, and how risk is spread across platforms. Every tile opens the matching filtered list in the inventory.

Agent inventory. One register across Copilot Studio, Foundry, Bedrock, Vertex, Anthropic and shadow agents, each with its agent ID, blueprint, sponsor, violations and cost. Tick any agents, a page, or everything a filter matches, and act on just those: the kill switch, permission clean-up or an attestation request.

Security signals. Entra sign-in and audit logs, Defender XDR alerts, Defender for Cloud identity and CIEM findings, and Purview audit of agent interactions, all mapped to the agent they concern and merged into one feed. Every card is a Microsoft API reading data Agent 365 and its security stack already collect.

Compliance. The OWASP Non-Human Identities Top 10 is the headline view, with each risk broken into checks the control plane can prove from identity data: offboarding, secrets, third-party access, authentication, privilege. Select a failing count to see the agents behind it, or export the evidence pack for auditors.
The wall: stopping an agent that already has a token
We expected the kill switch to be the easy part. It turned out to be the clearest argument for Agent 365. Microsoft Entra cannot force-expire an access token that has already been issued to an app, so disabling an agent only stops new tokens. A compromised agent keeps working on its cached token for up to 60 to 90 minutes.
No third-party control plane can close that gap, because only the token issuer can. With Agent 365 and Microsoft Entra, our kill switch became a playbook that cuts every path it can:
- Disable the agent identity, so it gets no new tokens.
- Disable the agent’s user account and revoke its refresh and session tokens.
- Delete delegated consent, so refresh tokens cannot mint on-behalf-of tokens.
- Mark the identity compromised in ID Protection. High risk is a Continuous Access Evaluation (CAE) event, so Microsoft Graph rejects the agent’s CAE tokens within minutes.
- Optionally, remove application permissions and credentials, so a re-enable or a stolen secret is useless.
Whatever is left expires on its own. The control plane shows that remaining window on the agent’s page and checks the Entra sign-in logs on every refresh: a successful sign-in after the kill raises a critical alert. To demonstrate it, we deployed five real Entra Agent ID agents that call Microsoft Graph every 30 seconds with their own tokens, so a kill can be watched live.
The kill switch, step by step

1. Choose how far to go. The dialog is honest about tokens: it explains what can and cannot be revoked, then lists each containment step with the Microsoft Graph call it makes. Disabling the identity is always on; the rest are on by default or optional.

2. A second person approves. Destructive actions need four eyes. The approver sees the chosen steps and every agent in the request, and can untick any agent they don’t want contained. Here they approve two of three.

3. Results per agent, per step. Each step reports done, not applicable, or failed with the reason, so a missing licence or permission on one step never hides that the others worked. The excluded agent is recorded as such in the audit trail.

4. The agent page shows what’s left. The containment card lists what was cut and how long any token issued before the kill could still work. On every refresh the control plane checks the Entra sign-in logs and raises a critical alert if the agent signs in successfully after the kill.
Six perspectives on what Agent 365 gave us
Across identity, security, data and developer tooling, the pattern repeated: Agent 365 supplied the signal or the control, and our code supplied the view and the workflow.
| Perspective | What Agent 365 brings | What the dashboard used it for | What you build without it |
|---|---|---|---|
| Identity | Entra Agent ID: agent identities, blueprints, sponsors, agent users, Conditional Access for agents | Agent ID and blueprint columns, ownership, offboarding, least privilege; Foundry agents linked to the identities they run as | Generic service principals with no lineage or sponsor; ownership in spreadsheets |
| Agentic identity security | ID Protection risk on agents, CAE revocation, session revocation, sign-in and audit logs | Kill switch, post-kill verification, sign-in anomalies | Can only stop new tokens; cached tokens keep working |
| Microsoft Defender | XDR alerts and hunting over agent activity, Defender for Cloud CSPM and CIEM | Runtime trends, alerts per agent, overprivileged identity findings, findings exported to Sentinel | Own telemetry pipeline, SIEM rules, detection engineers and a separate CIEM tool |
| Microsoft Purview | Audit of Copilot and agent interactions with sensitivity labels, jailbreak and XPIA flags, DLP for agents | Data access per agent, prompt-injection evidence for OWASP ASI01 | Instrument every runtime and store prompts yourself; no Microsoft 365 Copilot coverage |
| Registry and governance | Agent 365 registry, SDK and CLI registration, Foundry Agent Service, curated MCP tools, access reviews | Registered versus shadow agents, Foundry agents with model and tools, attestation campaigns | Heuristic discovery by name; manual onboarding |
| APIs and SDK | Microsoft Graph and Azure Resource Graph, Agent 365 SDK observability (OpenTelemetry), a365 CLI, Logs Ingestion API, managed identity | 25 connectors, an OTLP collector, SIEM export, governed writes, five demo agents with no secrets | Your own agent SDK, telemetry schema, collectors, export pipeline and connectors |
What to license and what to build
Think of it as two layers joined by documented APIs. Agent 365 is the system of record and enforcement; your control plane is the system of engagement that correlates, scores, routes approvals and reports.

Signals flow up through Microsoft Graph and Azure Resource Graph, and governed actions such as the kill switch flow back down. Agent runtimes can also send OpenTelemetry spans straight to the control plane, and its findings flow out to Log Analytics for Microsoft Sentinel. That is why our custom layer stayed thin: no endpoint agents, no log shipping pipeline and no detection content of our own.
| Capability | On Agent 365 | Without Agent 365 |
|---|---|---|
| Agent identity issuance and lineage | Read identities and blueprints through Graph | Not feasible: generic app registrations only |
| Stop a compromised agent quickly | Disable plus CAE, ID Protection and session revocation | New tokens only; cached tokens keep working |
| Agent-aware Conditional Access | Policies scoped to agent identities | Not feasible |
| Threat detection on agent behavior | Defender alerts and hunting, maintained by Microsoft | Own pipeline, SIEM rules and detection team |
| Audit of agent interactions | Purview audit with labels and XPIA flags | Instrument every runtime; no Microsoft 365 Copilot coverage |
| Cross-platform view, scoring, workflow | Build: this is your differentiation | Build |
Evidence from a live tenant
We connected the control plane to a Microsoft demo tenant with read-only permissions, and added write permissions later for the kill switch. These figures came straight from Agent 365, Microsoft Graph, Microsoft Foundry and Defender for Cloud on 3 December 2026; they change as the tenant changes.
| Signal | Result |
|---|---|
| Sources connected | 10 of 13 (the other 3 are AWS, Google and Anthropic, outside the tenant) |
| Connectors live with no errors | 25 |
| Live agents in the inventory | 89, including 5 KillSwitchDemo test agents |
| Agent identity blueprints | 25 |
| Agent 365 registry packages | 708 |
| Foundry agents matched to their Entra agent identity | 6 of 6 |
| Azure Bot Services not tied to a known agent | 3 of 7 |
| Agent sign-ins reviewed (7 days) | 767 |
| Directory audit events reviewed (30 days) | 6,473 |
| Defender for Cloud open findings | 38 identity and CIEM, 8 AI workload |
| OpenTelemetry spans received from demo agents | 23,110 |
| Findings and events exported to Log Analytics | 553, covering 90 agents |
| OWASP Non-Human Identities Top 10 pass rate | 87.5% across live agents |
| Secrets stored by the control plane | None |
The last row matters as much as the others. The control plane and the five demo agents run on managed identities and federated credentials, so there is no secret to leak.
How to start
Identity first, then telemetry, then the security stack, then your own control plane on top:
- License Agent 365 for production agents first, starting with those that touch sensitive data or act on their own.
- Standardize on Entra Agent ID: issue agents from blueprints with managed-identity credentials and named sponsors, and retire API keys and client secrets.
- Instrument with the Agent 365 SDK, so agent activity reaches Defender and new agents register themselves.
- Turn on the security stack for agents: Conditional Access and ID Protection, Defender, Purview audit and DLP, and Defender CSPM with permissions management.
- Build your control plane on the APIs with a least-privilege managed identity. Start read-only and add write actions behind four-eyes approval once the team trusts the signals.
- Extend to other platforms by making Entra the identity provider for Foundry, Bedrock, Vertex and Anthropic agents through workload identity federation.
Licensing notes and sources
Licensing changes, so confirm entitlements with your Microsoft account team and the Microsoft Product Terms before buying.
- Microsoft’s Entra licensing documentation states that Agent 365 is included with Microsoft 365 E7 and is an add-on to Microsoft 365 E5, A5 or Business Premium, or to Defender Suite plus Purview Suite.
- Third-party guides (o365hq, SAM Expert) report that Conditional Access for agents needs E7, or Agent 365 with at least Entra ID P1 or Microsoft 365 E3, and that Defender agent security for Copilot Studio and Foundry agents has required Agent 365 since July 2026.
- Some capabilities have their own requirements. Confirm compromised needs Workload ID Premium, Defender for Cloud CIEM needs the Defender CSPM plan, and Purview audit of non-Microsoft AI apps uses pay-as-you-go billing.
- Some agent features are in public preview, and several Graph endpoints used here are beta.
Further reading: Continuous access evaluation for workload identities, Create an agent identity blueprint, OWASP Non-Human Identities Top 10.
¶ Discussion
Comments are powered by Giscus / GitHub Discussions. They appear here once configured — see
Configure Giscusin the project README and updateGISCUSinsrc/consts.ts.