Microsoft Agent 365 SDK and CLI

New to Agent 365?

If you're just getting started, choose the path that fits you best:

I want to... Start here
Get up and running quickly with AI assistance AI-guided setup — An AI coding agent (GitHub Copilot, Claude Code, or OpenAI Codex) walks you through installation, configuration, deployment, and publishing from a single instruction file.
Follow a hands-on example step by step Quickstarts — pick a sample in your language (Node.js, Python, or .NET) and build a working agent.
Understand the full workflow before diving in Get started with Agent 365 development — agent types, phases, setup, and publishing in one guide.
Understand which type of agent to build Types of agents — explains the agent types and their identity models.
Enable Google Vertex AI or Amazon Bedrock agents Registration for these agents requires no development work — agents are pulled automatically via the Google and Amazon APIs. No SDK integration, no blueprint, and no code changes are required. Once registered, you can use the Agent 365 SDK to add observability, Work IQ tool access, and other capabilities incrementally. See Registering Google Vertex AI and Amazon Bedrock agents to get started.

Agent 365 SDK

Use the Agent 365 SDK to extend agents built using any agent SDK or platform, with enterprise‑grade identity, observability, notifications, security, and governed access to Microsoft 365 data.

Tip

Looking for pre-built agents? See ecosystem partner agents available in Agent 365 for agents that are pre-integrated at launch.

Agents have unique identities. People invoke them using common gestures (such as @mentions) in apps that enterprise users typically operate in (such as Teams, Word, Outlook, and more). They demonstrate observable behaviors that build trust, take auditable actions, and do so via secure access to tools and data.

With the Agent 365 SDK, agents can:

  • Use Entra-backed Agent Identity with their own user resources like mailbox for secure authentication and controlled access to tools and data.
  • Receive and respond to notifications from Teams, Outlook, Word comments, and emails—just like a human participant in Microsoft 365 apps.
  • Gain full observability via Open Telemetry, enabling audited, traceable agent interactions, inference events, and tool usage.
  • Invoke governed Model Context Protocol (MCP) servers to access Microsoft 365 workloads (for example, Mail, Calendar, SharePoint, Teams) under admin control.
  • Function within an IT‑approved blueprint system, ensuring each agent instance inherits compliance, governance, and security policies.

Learn more about the Agent 365 SDK.

Agent 365 CLI

Agent 365 CLI is the command-line backbone for Agent 365 throughout the agent development lifecycle - automating setup, identity, configuration, MCP integration, publishing, and Azure deployment for enterprise-ready agents.

With the Agent 365 CLI, developers can:

  • Create agent blueprints and all supporting resources required by them.
  • Manage out-of-box and custom Work IQ tools, permissions, and tooling for agents.
  • Deploy agent code to Azure.
  • Publish agent application packages to Microsoft admin center.
  • Clean up agent blueprints, identities, and other Azure resources created by the CLI.

Learn more about the Agent 365 CLI

Agent 365 Agent Development lifecycle

Agent 365 works with agents built on any agent SDK or platform. This includes low‑code platforms like Copilot Studio and Azure AI Foundry. It also supports pro‑code options such as Microsoft Agent Framework, Microsoft Agents SDK, OpenAI Agents SDK, Claude Code SDK, and LangChain SDK. Agent 365 also works with agent code hosted on any endpoint, be it Azure, Amazon Web Services (AWS), Google Cloud Platform (GCP), or any other cloud provider.

Important

To fully appreciate how the Agent 365 SDK and CLI work together, review the workflow described in Get started with Agent 365 development

Agent 365 agent blueprint

Before working with instances of Agent 365 agents, it's helpful to understand what we mean by the blueprint of an Agent 365 agent. This comes from Microsoft Entra agent blueprint and is an IT-approved, pre-configured definition of an agent type, essentially the enterprise "template" from which compliant agents can be created. It defines the agent's capabilities, required Work IQ tool access, security and compliance constraints, audit requirements, lifecycle metadata, and any linked governance policy templates such as DLP, external access restrictions, or logging rules. When a blueprint is activated for use in a tenant, users can request their admins for new agent instances created from the agent blueprint in the Microsoft 365 admin center. Every agent instance inherits its blueprint's rules, ensuring consistent governance across mail, calendar, Teams, SharePoint access, and any other Microsoft 365 workloads the agent touches. This prevents shadow/rogue agents, enforces observability, and anchors each agent in a secure Entra-backed identity and permissions model.

How is the Agent 365 SDK different?

The Agent 365 SDK differs from agent frameworks like Microsoft Agent Framework or Microsoft Copilot Studio as it does not create or host agents. Instead, it enhances agents you've already built - regardless of the underlying stack by adding enterprise capabilities such as Entra-based Agent identity, governed Work IQ tool access, OpenTelemetry (OTel) based observability, notifications through the Activity protocol, and agent ID-driven governance.

Although very similar in name, it doesn't replace the Microsoft 365 Agents SDK and the functionality it provides for hosting, activity protocol, and identity. On the contrary, the Agent 365 SDK complements it by layering governance, compliance, and lifecycle controls on top of agents built with it or other platforms.

Diagram shows how existing agents can be Agent 365 enabled

Agent 365 SDK and the agent ecosystem

This table summarizes the layered agent architecture, showing how the Agent 365 SDK adds enterprise capabilities above your agent logic and the LLM orchestrator runtime provided by your chosen framework.

Layer Role Provided by
Enterprise Capabilities Identity, notifications, observability, tooling Agent 365 SDK
Agent Logic Prompts, workflows, reasoning Your implementation in code
LLM Orchestrator Runtime Model invocation and tool orchestration Agent SDK/Framework of your choice

Next steps