AWS and Microsoft both offer building blocks for production AI agents, but the products are not direct equivalents. Amazon Bedrock AgentCore is a modular set of runtime, identity, memory, gateway, and observability services that can work with different agent frameworks and model providers. Microsoft Foundry Agent Service is a managed platform for building, hosting, and operating prompt agents and code-based hosted agents within the Microsoft Foundry environment. Amazon Bedrock AgentCore overview Microsoft Foundry Agent Service overview
There is an important lifecycle distinction for AWS projects: Amazon Bedrock Agents is now called Amazon Bedrock Agents Classic and is no longer available to new customers. Existing customers can continue using it. New AWS designs should assess AgentCore and its modular services rather than assume the Classic agent API is the default starting point. AWS Bedrock Agents documentation
This article compares the architecture decisions that matter in production: runtime, models, tools, retrieval, identity, safety, and operations. The right choice depends on the workload and the organisation's cloud estate, identity boundaries, and operating model.
Architecture comparison
The diagram shows representative paths, not mandatory service bundles. Each platform can be combined with other services, and individual components such as retrieval, memory, and monitoring can be selected to fit the application.
Architectural starting points
| Area | AWS with AgentCore | Microsoft with Foundry Agent Service |
|---|---|---|
| Platform shape | Modular services that can be adopted together or independently. | Managed agent platform with runtime, tools, supported models, identity, and observability capabilities. |
| Agent execution | AgentCore Runtime hosts agent code and supports multiple frameworks and model providers. | Prompt agents run on the managed runtime; hosted agents let teams bring code and supported frameworks. |
| Tool integration | AgentCore Gateway exposes APIs, Lambda functions, and MCP-compatible tools through a governed endpoint. | Foundry tools include built-in capabilities and integrations such as functions, OpenAPI, and connected services. |
| Knowledge and retrieval | Bedrock Knowledge Bases or a customer-managed retrieval stack can provide context. | Foundry agents can use tools such as Azure AI Search or Foundry's managed knowledge capabilities. |
| Operations | AgentCore observability works with Amazon CloudWatch and OpenTelemetry-compatible telemetry. | Foundry provides tracing, metrics, evaluations, and Application Insights integration. |
AWS: composing an agent with AgentCore
AgentCore is designed as a collection of services rather than one fixed agent framework. Runtime can host agents built with supported open-source frameworks and use models inside or outside Amazon Bedrock. This gives teams room to keep their orchestration code or model choice while adopting managed runtime capabilities where they help. AgentCore overview
An AWS implementation may include:
- AgentCore Runtime to host and scale the agent, isolate sessions, and connect the agent to its runtime identity.
- AgentCore Gateway to expose APIs, Lambda functions, or existing MCP servers as tools.
- AgentCore Identity to configure agent and user authentication for tool access.
- AgentCore Memory when the application has a defined need for short-term or persistent memory.
- Amazon Bedrock Knowledge Bases for managed retrieval, or a team-operated search and vector stack when more control is needed.
- AgentCore Observability and Amazon CloudWatch for traces, metrics, logs, and investigation of production behavior.
These components are optional building blocks, not a checklist every agent must use. For example, a transactional agent may need Gateway and carefully scoped action tools but no long-term memory. A research assistant may use a knowledge base and session memory while having no permission to make changes to business systems. AgentCore Gateway concepts Amazon Bedrock Knowledge Bases
An agent should receive only the permissions its workflow needs. Runtime isolation does not replace application controls that map users to sessions, validate tool arguments, or authorize actions against business data. High-impact actions still need application-level checks and, where appropriate, human approval. AgentCore Runtime security best practices
Microsoft: using Foundry Agent Service
Foundry Agent Service supports managed prompt agents as well as hosted agents built with code and supported frameworks. Its runtime manages conversations and tool calls, while the agent can use models from the Foundry catalog and tools configured for the project. The hosted-agent option gives teams more control over orchestration logic while retaining managed hosting and platform integration. Foundry Agent Service overview
A Microsoft implementation may include:
- Foundry Agent Service for agent configuration, runtime, conversations, and tool orchestration.
- Microsoft Foundry models or supported model endpoints selected for the task.
- Azure AI Search or Foundry knowledge tools to retrieve enterprise information and ground responses.
- Azure Functions, Logic Apps, OpenAPI, or other connected tools for bounded business actions.
- Microsoft Entra ID and role-based access control for resource administration, agent callers, and downstream access.
- Content filters, network controls, tracing, evaluation, and Application Insights as part of the wider production design.
Identity is not a single switch. Foundry separates access to manage resources, access to call an agent endpoint, and access from an agent to downstream tools. Those boundaries need explicit configuration. A private endpoint on one dependency does not make every component in an agent workflow private. Foundry identity and access overview
If Azure AI Search is used for retrieval, hybrid queries can run keyword and vector search together and merge their ranked results with Reciprocal Rank Fusion. Retrieval quality, permissions, and source freshness still need to be measured against the application’s real questions and access model. Azure AI Search hybrid search
Compare the production boundaries
Orchestration and model choice
AgentCore emphasizes composable runtime services and framework flexibility. Foundry offers a managed path for prompt agents and a hosted path for code-based agents. Neither choice removes the need to define when an agent should call a tool, how it handles tool failures, when it stops, and what requires review.
Model choice should follow task quality, latency, cost, region, data handling, and operational constraints. Avoid designing around an assumption that the agent platform and model must come from the same provider; both platforms describe options that extend beyond a single framework or model family.
Tools and business actions
Treat tools as API boundaries. Give each tool a narrow purpose, validate arguments in application code, use idempotency for retryable writes, and record the actor and outcome. A model's decision to request an action is not authorization to perform it.
On AWS, AgentCore Gateway can present APIs, Lambda functions, and MCP servers through a common tool endpoint. In Foundry, agents can use built-in tools and connected functions, OpenAPI tools, and other supported integrations. The implementation details differ, but the engineering questions are the same: who can invoke the tool, which identity reaches the target, what data can be returned, and how failures are handled.
Retrieval and grounding
AWS Knowledge Bases can manage ingestion and retrieval or work alongside customer-managed vector stores. Microsoft workloads can use Azure AI Search and Foundry knowledge capabilities. These approaches differ in service boundaries and configuration, so compare them using the same representative documents and questions.
Measure whether relevant evidence is retrieved, whether access rules are applied before content reaches the model, whether citations support their claims, and whether the agent abstains when evidence is incomplete. A retrieval benchmark should include restricted documents, stale revisions, exact identifiers, and questions that require multiple sources.
Identity, safety, and network controls
Keep caller identity separate from agent identity. The application authenticates the caller; the agent then accesses tools and data through configured credentials or delegated access. Test each boundary with the least-privileged identity that will run in production.
AWS AgentCore provides runtime and gateway identity capabilities, while AWS IAM remains central to resource permissions. Microsoft uses Entra identity and role-based access control across Foundry and connected services. In both cases, validate the complete path from user to agent to retrieval or action service rather than relying on a platform diagram alone.
Content filters and guardrails are useful safeguards, but they do not replace authorization, input validation, domain-specific policy checks, or human review for consequential actions. Configure safety features for the model and workflow in use, then test them with normal, adversarial, and ambiguous inputs. Amazon Bedrock Guardrails Foundry Agent Service transparency note
Observability and evaluation
Agent traces should make it possible to follow a request through model calls, retrieval, tools, retries, and the final response. AgentCore can emit observability data to CloudWatch and supports OpenTelemetry-compatible instrumentation. Foundry includes tracing, metrics, evaluations, and Application Insights integration. AgentCore observability Foundry Agent Service overview
Define quality and safety evaluations before deployment. Include task completion, groundedness, tool correctness, access-control tests, latency, cost, and behavior when a dependency is unavailable. Keep trace access and retention aligned with privacy and data-handling requirements because traces can contain sensitive inputs and outputs.
Choosing a platform
Choose AWS AgentCore when its modular runtime and tool services fit the existing AWS operating model, or when framework and model flexibility is an important requirement. For existing Amazon Bedrock Agents Classic deployments, plan around the current service lifecycle and evaluate a migration path before extending the architecture.
Choose Microsoft Foundry Agent Service when its managed agent runtime and integration with Microsoft identity, Azure services, and the organisation's Microsoft estate simplify the solution. Confirm which agent type, tools, model, region, and networking configuration meet the workload's requirements.
For either platform, build a small proof of architecture around one real workflow. Measure answer quality and action correctness, test permissions with distinct users, inspect traces, and estimate operating cost before choosing the production design. The key decision is whether the system can access the right information, perform only approved actions, and give operators enough evidence to understand what happened.
The service marks in the comparison diagram come from the official Microsoft Azure architecture icon set and AWS architecture icon package.
References
- Amazon Web Services. Amazon Bedrock AgentCore overview.
- Microsoft Learn. What is Microsoft Foundry Agent Service?.
- Amazon Web Services. Automate tasks in your application using AI agents.
- Amazon Web Services. AgentCore Gateway core concepts.
- Amazon Web Services. Retrieve data and generate AI responses with Amazon Bedrock Knowledge Bases.
- Amazon Web Services. Security best practices for AgentCore Runtime.
- Microsoft Learn. Identity and access overview for Foundry Agent Service.
- Microsoft Learn. Hybrid search using vectors and full-text search in Azure AI Search.
- Amazon Web Services. How Amazon Bedrock Guardrails works.
- Microsoft Learn. Transparency note for Foundry Agent Service.
- Amazon Web Services. Observe your agent applications on Amazon Bedrock AgentCore.
- Microsoft. Azure architecture icons and terms of use.
- Amazon Web Services. AWS architecture icons.