Skip to content
Book demo
Back to Tools

Azure AI Foundry Agent Service vs Augment Cosmos: Platform Comparison

Jul 8, 2026
Ani Galstian
Ani Galstian
Azure AI Foundry Agent Service vs Augment Cosmos: Platform Comparison

Azure AI Foundry Agent Service is for teams whose agents must publish to Teams or Microsoft 365 Copilot while staying within Entra ID permissions. Augment Cosmos is designed for teams that need agent execution across laptops, Dev VMs, Augment Cloud, and customer cloud environments, with model routing across Anthropic, OpenAI, Bedrock, and Vertex. I ran the same workflows on both platforms for two weeks. Those choices determine the hosting location, storage ownership, telemetry routing, provider selection, and renewal terms, and Foundry keeps each of them within Microsoft-controlled services.

TL;DR

Foundry Agent Service provides Microsoft-native shops with managed runtimes, OpenTelemetry tracing, XPIA guardrails, 1,400+ MCP tools, and Teams publishing, while keeping hosting, identity, and telemetry within Azure. Cosmos runs agents across laptops, Dev VMs, Augment Cloud, and customer cloud environments with shared memory and model-agnostic routing, keeping model choice outside one provider's renewal cycle.

Microsoft's Foundry updates cover capabilities that Agent Service previously needed teams to assemble across services. Managed runtimes provide session isolation and Azure-managed capacity management. OpenTelemetry tracing feeds Azure Monitor, Spotlighting adds cross-prompt injection defenses, and a publishing flow sends agents to Teams and Microsoft 365 Copilot. For CTOs already standardized on Entra ID and SharePoint, that feature set covers documented integration points.

The architecture choice determines where each component runs and who operates it. Foundry places runtime hosting, server-side observability, identity, and Standard setup storage on Azure services. Cosmos separates execution from a single cloud host by running agents across those environments. This comparison maps both platforms across runtime, memory, observability, ecosystem, and renewal terms so you can decide which trade-off fits your organization.

[ Coming up next ]

The New Code Review Workflow for AI-Native Engineering Teams

See how leading teams keep code review fast and rigorous as AI writes more of the code.

Save your seat
Thu, Jul 9 // 9:45 AM PDT

What Azure AI Foundry Agent Service Is and Who It Serves

Azure AI Foundry Agent Service homepage with headline 'Foundry Agent Service' on a light blue background with a product intro video thumbnail and colorful abstract shapes

Azure AI Foundry Agent Service is a cloud-native runtime environment that runs production agents on a managed Azure platform. It targets professional developers who need control over models, orchestration, and deployment inside the Microsoft stack. Teams can build custom code agents, and Foundry handles hosting, scaling, and identity.

Foundry groups runtime hosting, tools, models, tracing, and identity into separate layers:

LayerWhat it provides
Agent runtimeHosts Prompt Agents (fully managed, no runtime code) and Hosted Agents (bring Agent Framework, LangGraph, OpenAI Agents SDK, Anthropic Agent SDK, GitHub Copilot SDK, or custom code)
Tool layerWeb search and MCP servers
Model layerGPT-4o, Llama, DeepSeek, and others with code-free swapping
ObservabilityOpenTelemetry
IdentityEntra-based, handles security

Microsoft lists Hosted Agents as a public preview.

Foundry fits Microsoft-native shops specifically:

  • Your user surface is Teams or Microsoft 365 Copilot
  • Your knowledge lives in SharePoint behind Entra ID permissions
  • Your compliance posture already runs through Azure

When I built the Teams-facing knowledge agent, the Entra ID permission model carried straight through to SharePoint document access without a separate identity layer to configure, which is the actual advantage Microsoft-native shops are buying. Microsoft's own guidance recommends governed landing zones and Azure-managed infrastructure for compliance and governance. That guidance fits teams that want Azure-managed hosting and Microsoft-native identity, telemetry, and publishing without having to build separate runtime, identity, and telemetry services.

What Augment Cosmos Is and Who It Serves

Augment Code homepage with tagline 'Agentic software development at organizational scale' and a throughput stat card showing 2–3x engineering improvement

Augment Cosmos, the unified cloud agents platform, is generally available and included on every paid plan. It gives teams shared context and memory across the team and the software development lifecycle, coordinating AI agents so each one builds on the others' work.

The platform exposes three primitives that platform engineers compose into workflows:

  • Environments define where agents run across laptops, Dev VMs, and the cloud.
  • Experts define agent behavior, including prompts, integrations, triggers, and memory.
  • Sessions capture each run as an auditable, replayable workflow, preserving history for reuse.

Those primitives give teams reusable workflow components across agent runs. Reference Experts ship with the platform for deep code review, PR authoring, E2E testing, and incident response. When I ran the code review expert against a pull request with a cross-file correctness risk, it flagged a caller in a service that the diff never touched because it followed the dependency chain rather than reviewing the diff in isolation. Augment reports a 59% F-score for that expert on the public benchmark for AI-assisted code review, with 65% precision and 55% recall.

Cosmos serves engineering teams that want software development lifecycle agents across IDEs and delivery workflows. The buyer is a CTO or VP of Engineering at a cloud-native enterprise; the technical evaluator is a staff engineer or platform lead assessing primitives. It fits teams that need model-agnostic routing, cross-cloud execution, and shared memory across sessions.

When I pointed Context Engine at a monorepo well within its documented 400,000+-file processing boundary, it surfaced architectural-level dependencies through semantic dependency graph analysis that a file-scoped search would have missed entirely. Updates appeared within seconds of the next code change.

Platform Comparison Across Five Dimensions

The two platforms diverge most on execution placement, memory design, and who operates those layers. The table below maps across the dimensions that determine daily developer experience and long-term contract control.

DimensionAzure AI Foundry Agent ServiceAugment Cosmos
Runtime environmentsAzure cloud only, regional endpointsLaptops, Dev VMs, Augment Cloud, customer cloud (AWS, GCP)
Default memory locationMicrosoft-managed storage (Basic setup)Augment's cloud; file contents in Google Cloud Bigtable
Cross-session shared memoryNo out-of-the-box shared memory across threadsShared across agents, sessions, and teammates by design
Observability defaultAzure Monitor Application Insights (required)Platform-internal Sessions
Third-party observability exportClient-side OTLP to Datadog, Grafana Tempo, Jaeger, HoneycombSwap observability stacks stated; backends not named at the protocol level
MCP tool catalog1,400+ Microsoft and partner toolsNot enumerated in the available documentation
Model providersCode-free swapping; provider list not enumeratedAnthropic, OpenAI, Bedrock, Vertex via Prism routing
Renewal controlMicrosoft controls the agent surface, data plane and model contractModel-agnostic, BYOK, cross-cloud execution

Runtime: Azure-Locked Execution vs Cross-Cloud Portability

Foundry runs agents exclusively on Microsoft-managed Azure infrastructure. Cosmos runs agents in the environments listed above, including AWS and GCP for customer clouds. When I moved the same remediation agent from my laptop to a Dev VM mid-task, Cosmos preserved the session state during the move without a redeploy step, whereas the equivalent Foundry agent remained tied to the Azure region that hosted its container from the start. This placement determines whether you can move workloads off a single provider without a rewrite.

Foundry's Azure boundary shows up in five runtime constraints:

  • Foundry's runtime is framework-agnostic at the SDK level: agents built with Microsoft Agent Framework, GitHub Copilot SDK, LangGraph, or other SDKs deploy through Foundry's SDK path.
  • The managed runtime itself, though, runs only on Azure.
  • Hosted agents require images in Azure Container Registry, and agent identity is tightly coupled with platform-managed execution.
  • No documented option runs the Foundry managed runtime outside Azure.
  • Even in the standard setup, BYO resources remain Azure services and are not portable to other clouds.

Those constraints limit Foundry's portability to the framework layer and keep managed runtime hosting on Azure. The Cosmos Agent Runtime provides parallel agent coordination across workspaces and manages scheduling and isolation as agents run on laptops, Dev-VMs, and cloud environments. The platform is IDE-agnostic. Augment notes that the customer-cloud option is still in development. Cross-environment execution comes from the runtime design.

Memory: Per-Thread Isolation vs Shared Compounding Context

Foundry has no out-of-the-box shared memory across threads. Cosmos shares memory across agents, sessions, and teammates by architecture. That design determines whether later sessions can reuse context across teammates.

Foundry offers four documented storage and memory modes.

Foundry modeWhat it means
Basic setupKeeps agent data in Microsoft-managed storage with Microsoft-managed keys
Standard setupMoves data to your own Azure Storage, Cosmos DB, and AI Search with full ownership and control and customer-managed keys
BYO Cosmos DBDeploys three to five containers per project. Each project requires a minimum of 1,000 RU/s and uses the enterprise memory database
Managed long-term memoryMicrosoft offers preview memory for cross-session continuity and licenses it as part of the Azure subscription

That split improves Azure-side control in the Standard setup without changing the Azure-only boundary. Cosmos agents operate on a shared virtual filesystem, with system-wide and private memory for patterns, conventions, and corrections across sessions and teammates. Session history and the shared virtual filesystem store patterns, conventions, and corrections for subsequent agent sessions, so semantic codebase analysis can surface conventions, dependencies, and prior implementation patterns for engineers ramping up on an unfamiliar service.

One caveat affects both platforms. Cosmos documentation confirms agent execution portability. It does not confirm whether teams can export the Bigtable-backed memory plane or host it in customer infrastructure. That memory store is hosted in Augment's Google Cloud and is structurally similar to Foundry's Basic setup. Teams evaluating Cosmos as a data-control alternative should confirm memory-plane residency directly, because the Your Cloud option covers where agents execute, not where shared memory persists.

Cosmos supports encoding team standards into shared memory, so agents can use corrections and patterns from earlier sessions as team context in later runs. When I onboarded Cosmos to a service I hadn't worked with before, the shared filesystem surfaced prior implementation patterns and naming conventions from teammates' earlier sessions, rather than starting from a blank context window.

Observability: Azure Monitor by Default vs Platform-Native Sessions

Foundry uses tracing built on OpenTelemetry and integrates it with Azure Monitor Application Insights. When I attached Application Insights to a running agent, tool calls and token consumption appeared in the same dashboards our platform team already used for other Azure services, which reduced the setup to configuring a single connection string rather than standing up a separate observability stack. Cosmos captures observability as a property of Sessions. Telemetry follows different paths on each platform.

Foundry's observability path breaks into three pieces.

Foundry observability pathWhat it captures or requires
Captured telemetryUser inputs, agent outputs, tool usage, token consumption, latency, and agent decisions
Setup requirementRequires attaching an Application Insights resource and configuring APPLICATION_INSIGHTS_CONNECTION_STRING
Client-side exportCan export to any OTLP backend such as Datadog, Grafana Tempo, Jaeger, or Honeycomb
Default and server-side routeRoutes exclusively through Application Insights, and Foundry keeps evaluations turned on by default with consumption billing

That export path applies only to client-side instrumentation and requires explicit SDK configuration. Cosmos frames observability as structurally built-in through Sessions:

  • The platform audit trail is part of the platform itself.
  • Session-scoped traces connect LLM calls, tool invocations, decisions, and outputs.
  • Each run produces one auditable, replayable record because Sessions captures LLM calls, tool invocations, decisions, and outputs.
  • Teams can swap observability stacks in incident-response workflows.

Cosmos documentation does not specify OTLP emissions or named backend integrations at the protocol level, so it states stack independence only at the workflow level.

Ecosystem: Microsoft Depth vs Model and Cloud Breadth

Foundry documents 1,400+ Logic Apps-derived tools and Microsoft 365 publishing. Cosmos documents four execution targets and routing across Anthropic, OpenAI, Bedrock, and Vertex. Your existing stack determines which breadth matters.

Foundry's tool catalog contains 1,400+ tools from Microsoft and partners derived from Azure Logic Apps connectors, with named integrations for SAP, Salesforce, and Dynamics 365. Select Frontier organizations can use M365 MCP servers on Outlook, Teams, Word, OneDrive, SharePoint, and Dataverse. Developers can publish to Teams and Copilot through the Foundry publishing flow. One documented caveat: teams report that after they published to Teams agents with knowledge sources attached, those agents failed; the issue had no resolution through late December 2025.

Cosmos supports Anthropic, OpenAI, Bedrock, and Vertex via Prism routing, with GitHub, GitLab, and Bitbucket for version control, and AWS, Azure, GCP, and Docker for cloud services. When I connected Cosmos to a GitLab-hosted monorepo alongside a GitHub-hosted services repo, both flowed through the same Environments and Experts, with no separate integration work on my end. Cosmos documentation does not enumerate an MCP catalog size or named business integrations, so Foundry has the documented connector count and named business integrations that Cosmos documentation does not provide. That gap matters most for teams whose workflows already run through SAP, Salesforce, or Dynamics 365; those integrations exist in Foundry today and would require custom tool development on Cosmos.

Ownership: The Renewal Question That Defines the Choice

At renewal, compare who controls the user-facing agent surface, where data persists, which model contract governs requests, and how much migration work a provider change would require. Foundry concentrates those points inside Microsoft services. Cosmos separates model selection through model-agnostic routing and supports cross-cloud execution.

Open source
augmentcode/augment-swebench-agent874
Star on GitHub

Foundry's lock-in operates across three layers:

  • Control plane lock-in extends to the identity and telemetry layers: Foundry integrates tightly with Azure Active Directory and Azure Monitor, so moving to another cloud means replacing Azure-specific integrations.
  • Data lock-in follows because embeddings, fine-tuning datasets, and prompt libraries may fall outside the scope of standard portability clauses.
  • Model and API lock-in complete the set. Microsoft's model lifecycle is unilateral: at Retired, inference requests return a 410 Gone response, and Microsoft has already deprecated the Foundry Agent Service (classic), with March 31, 2027, as its retirement date.

Those layers turn renewal risk into migration work. Foundry does not support switching an existing agent's model as an in-place operation.

Cost spans multiple billing meters in the contract-control question. Charges span Foundry pricing meters, including model tokens, Foundry Tools, Foundry IQ, and connectors, each with its own renewal terms. Gartner calls this a GenAI blind spot: single-vendor dependency can affect future negotiating power over pricing and terms.

Cosmos is built for model routing and BYOK across Anthropic, OpenAI, Bedrock, Vertex, and open-source models. When I ran the same implementation task through Prism with two different model contracts configured, routing selected between them by task fit rather than defaulting to whichever provider was listed first, which is the behavior that actually matters at renewal: the agent strategy does not sit on top of one lab's roadmap or pricing. The limit remains the memory plane: Cosmos avoids model-contract lock-in, but its memory-plane residency is undocumented, so the ownership case is documented in the runtime and model layers and is unproven on the memory plane.

Renewal bargaining power weakens when embeddings, prompt libraries, observability, and model contracts are consolidated within a single provider's schemas and billing terms.

A Decision Framework for CTOs and Staff Engineers

Choose based on where your users live, where your bargaining power matters, and whether cross-cloud is a mandate or a hypothetical. The decision splits once you weigh those three factors.

Choose the Azure AI Foundry Agent Service if you needChoose Augment Cosmos if you need
Teams or Microsoft 365 Copilot as the primary agent surface, where a Foundry publishing flow configures Entra ID, Azure Bot Service, and manifest filesA multi-cloud mandate, where interoperability claims deserve scrutiny before wholesale Azure adoption
Entra ID-gated knowledge access, where permission-aware RAG from SharePoint is native rather than custom-builtPricing negotiation power, where model-agnostic routing keeps model selection outside one provider's roadmap
Production infrastructure using Azure-managed session isolation, capacity management, Entra ID, and Azure Monitor as default componentsShared memory across agents and teammates by design
A single-cloud strategy where migration is unlikely, which Martin Fowler's framework names as a valid Accepted Lock-inCross-cloud execution across laptops, Dev VMs, and multiple providers under one platform

If those conditions define your deployment surface, Foundry's Microsoft-native integration is the advantage. Cosmos fits when portability and model-choice control matter more than Microsoft-native publishing. When I ran Auggie CLI on a repeatable multi-file remediation task, it planned the steps, executed terminal commands with my approval at each step, and carried the task context forward throughout the run instead of losing it between commands.

Two guardrails apply regardless of choice. Portability is selective: an insurance policy for critical systems, not every workload. And operational work remains either way, because the technology reduces integration work but increases governance and SRE-like work for agents. Organizations should treat governance and SRE-like ownership as prerequisites on both platforms.

For a team already deep in AWS and GCP, Cosmos's model-agnostic BYOK design mattered more than Foundry's connector count because model contracts did not have to be consolidated into a single provider's schema.

Weigh Renewal Bargaining Power Before You Standardize

Foundry's documented capabilities fit Microsoft-native teams. Before standardizing, decide whether you want the agent surface, data plane, and model contract concentrated inside a single provider whose lifecycle decisions are unilateral. Cosmos maintains model routing and cross-cloud execution in line with your policy.

Check where your data, embeddings, and prompt libraries will be stored upon renewal, and confirm the migration cost. If that answer worries you, resolve the portability question now rather than at contract time.

Frequently Asked Questions About Azure AI Foundry Agent Service vs Augment Cosmos

These are the questions CTOs and staff engineers ask when they are deciding between a Microsoft-native agent runtime and a cross-cloud one.

Written by

Ani Galstian

Ani Galstian

Technical Writer

Ani writes about enterprise-scale AI coding tool evaluation, agentic development security, and the operational patterns that make AI agents reliable in production. His guides cover topics like AGENTS.md context files, spec-as-source-of-truth workflows, and how engineering teams should assess AI coding tools across dimensions like auditability and security compliance

Get Started

Give your codebase the agents it deserves

Install Augment to get started. Works with codebases of any size, from side projects to enterprise monorepos.