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: agents under management, posture score, critical-risk agents, spend, exposure tiles, fleet invocations and risk distribution

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 with three agents selected and the Kill switch (3) button in the selection bar

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, Defender for Cloud CSPM and Purview audit cards above a combined signal feed

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 page showing the OWASP Non-Human Identities Top 10 with evidence checks, failing agents and pass rate per risk

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:

  1. Disable the agent identity, so it gets no new tokens.
  2. Disable the agent’s user account and revoke its refresh and session tokens.
  3. Delete delegated consent, so refresh tokens cannot mint on-behalf-of tokens.
  4. 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.
  5. 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

Kill switch dialog listing the containment steps, what each does to tokens, and the Microsoft Graph call behind it

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.

Approver review dialog with three agents, one of them unticked, and the Approve 2 of 3 button

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.

Results dialog showing per-agent outcomes: two agents done with each step marked, one excluded by the approver

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.

Contained agent page showing the Kill switch applied card with the steps taken and the remaining token window

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.

PerspectiveWhat Agent 365 bringsWhat the dashboard used it forWhat you build without it
IdentityEntra Agent ID: agent identities, blueprints, sponsors, agent users, Conditional Access for agentsAgent ID and blueprint columns, ownership, offboarding, least privilege; Foundry agents linked to the identities they run asGeneric service principals with no lineage or sponsor; ownership in spreadsheets
Agentic identity securityID Protection risk on agents, CAE revocation, session revocation, sign-in and audit logsKill switch, post-kill verification, sign-in anomaliesCan only stop new tokens; cached tokens keep working
Microsoft DefenderXDR alerts and hunting over agent activity, Defender for Cloud CSPM and CIEMRuntime trends, alerts per agent, overprivileged identity findings, findings exported to SentinelOwn telemetry pipeline, SIEM rules, detection engineers and a separate CIEM tool
Microsoft PurviewAudit of Copilot and agent interactions with sensitivity labels, jailbreak and XPIA flags, DLP for agentsData access per agent, prompt-injection evidence for OWASP ASI01Instrument every runtime and store prompts yourself; no Microsoft 365 Copilot coverage
Registry and governanceAgent 365 registry, SDK and CLI registration, Foundry Agent Service, curated MCP tools, access reviewsRegistered versus shadow agents, Foundry agents with model and tools, attestation campaignsHeuristic discovery by name; manual onboarding
APIs and SDKMicrosoft Graph and Azure Resource Graph, Agent 365 SDK observability (OpenTelemetry), a365 CLI, Logs Ingestion API, managed identity25 connectors, an OTLP collector, SIEM export, governed writes, five demo agents with no secretsYour 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.

Two-layer model: what you build on what you license

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.

CapabilityOn Agent 365Without Agent 365
Agent identity issuance and lineageRead identities and blueprints through GraphNot feasible: generic app registrations only
Stop a compromised agent quicklyDisable plus CAE, ID Protection and session revocationNew tokens only; cached tokens keep working
Agent-aware Conditional AccessPolicies scoped to agent identitiesNot feasible
Threat detection on agent behaviorDefender alerts and hunting, maintained by MicrosoftOwn pipeline, SIEM rules and detection team
Audit of agent interactionsPurview audit with labels and XPIA flagsInstrument every runtime; no Microsoft 365 Copilot coverage
Cross-platform view, scoring, workflowBuild: this is your differentiationBuild

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.

SignalResult
Sources connected10 of 13 (the other 3 are AWS, Google and Anthropic, outside the tenant)
Connectors live with no errors25
Live agents in the inventory89, including 5 KillSwitchDemo test agents
Agent identity blueprints25
Agent 365 registry packages708
Foundry agents matched to their Entra agent identity6 of 6
Azure Bot Services not tied to a known agent3 of 7
Agent sign-ins reviewed (7 days)767
Directory audit events reviewed (30 days)6,473
Defender for Cloud open findings38 identity and CIEM, 8 AI workload
OpenTelemetry spans received from demo agents23,110
Findings and events exported to Log Analytics553, covering 90 agents
OWASP Non-Human Identities Top 10 pass rate87.5% across live agents
Secrets stored by the control planeNone

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:

  1. License Agent 365 for production agents first, starting with those that touch sensitive data or act on their own.
  2. Standardize on Entra Agent ID: issue agents from blueprints with managed-identity credentials and named sponsors, and retire API keys and client secrets.
  3. Instrument with the Agent 365 SDK, so agent activity reaches Defender and new agents register themselves.
  4. Turn on the security stack for agents: Conditional Access and ID Protection, Defender, Purview audit and DLP, and Defender CSPM with permissions management.
  5. 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.
  6. 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 Giscus in the project README and update GISCUS in src/consts.ts.