Target architecture

The production system
you’ll deploy by week 16.

A conceptual view of the architecture every cohort builds in its own Azure lab: a hardened edge, agents on Kubernetes, one AI gateway around every model, state that commits before the reply, and a trace for every turn. You deploy the baseline in Mission 01, then harden it mission by mission.

  • Conceptual view
  • Your own Azure lab
  • Dev → pre-production → production

Founding cohort expected Q1 2027 · Enrolment not yet open · Join the waitlist

01 / The architecture

Eight zones,
one request path.

Production grade is more than the agent. It’s the edge in front of it, the gateway around its models, the stores behind it and the telemetry across all of it. This is the whole system, at the level you’ll design, deploy and defend it.

Agentic AI platform · target production architecture Edge → Application Gateway → AKS (agent frontend + agent service) → API Management → Microsoft Foundry, with Cosmos DB for state Conceptual · your Azure lab
Target production architecture for an agentic AI platformIsometric diagram. Users reach an edge proxy and an Application Gateway with a web application firewall, then the ingress and the agent frontend on AKS. The frontend calls the agent service through API Management, which also carries every model call to Microsoft Foundry chat and embedding models. The agent service commits conversations, turn receipts and feedback to Cosmos DB, which also holds a knowledge store with a vector index fed by data pipelines, and reaches a system of record through an MCP tool server. A platform zone holds CI/CD, a container registry, identity and secrets, and observability.PLATFORMUSERSEDGEAKS · AGENT RUNTIMEAI GATEWAYMODELS · MICROSOFT FOUNDRYSTATE · COSMOS DBENTERPRISE SYSTEMSDecision engineOrchestrator · agentsTurns · guardrailsRoutes · SSEconversationsknowledgefeedback12345678ObservabilityApplication Insightsalerts → on-callIdentity & secretsworkload identityKey VaultContainer registryversioned imagesCI/CDGitHub Actions · Bicepevaluation gatesApplication Gatewayweb application firewalltimeouts sized for streamingEdgeDNS · TLS · DDoS protectionUsersweb and chat · Entra ID sign-inAgent servicestreaming API · autoscaled podsAPI Managementin: checks the caller’s Entra identityout: managed identity to the modelsquotas · routing · failover · auditFoundry · chat modelssmall model: agents + validatorlarger model: interpretationFoundry · embeddingsfor retrievalData pipelinespublish knowledgeSystem of recordreached only via MCPMCP tool servertyped tools · least privilegeCosmos DBvector index on knowledgezone-redundant · continuous backupprivate endpoint · key access offAgent frontendchat UI · calls the agent APIIngresscluster entry pointBusiness apps & peoplehand-off and escalation
  • User request / streamed reply
  • Model call via the AI gateway
  • Tool call via MCP
  • Durable state / knowledge publish
  • Entra token
  • Traces and metrics
  • Image build and pull
  • Hand-off to a person or app

Conceptual view. Resource names, sizes and regions in your lab will differ.

02 / One request, end to end

From a question
to a streamed answer.

What happens on a single turn, in the order it happens. The numbers match the markers on the diagram.

  1. 1

    Edge

    The edge terminates TLS, absorbs abusive traffic and passes the request to the Application Gateway and its web application firewall.

  2. 2

    Ingress

    The Application Gateway forwards to the cluster’s ingress, which serves the agent frontend.

  3. 3

    Identity check

    The frontend calls the agent service’s API through API Management, which checks the caller’s Entra ID identity before forwarding.

  4. 4

    Agents

    Sensitive data is redacted, then the agents run, reaching real systems only through governed MCP tools. Deterministic code makes the final decision.

  5. 5

    AI gateway

    Every model call leaves the pod through API Management, with quotas, routing, failover and an audit record on each one.

  6. 6

    Models

    API Management calls Microsoft Foundry with its own managed identity, so no model key exists anywhere in the code.

  7. 7

    Commit

    The conversation and its turn receipt commit together in one Cosmos DB batch, over a private endpoint.

  8. 8

    Reply

    Only after the commit does the reply stream back to the user, as server-sent events.

Each step emits telemetry to Application Insights, so one distributed trace follows the turn across the gateway, the agents and their tools.

03 / Layer by layer

Four layers a request crosses.
Three disciplines across all of them.

The diagram maps onto the reference architecture on the programme page. Each layer lists the parts of the diagram it covers and the missions that build it.

A request passes through

Layer 1 · Entry point

Users & enterprise applications

Every request arrives with a signed-in identity through a hardened path, and the agent hands over to a person when it should stop.

Users · Edge · Application Gateway · Ingress · Agent frontend

Mission 01 Mission 02 Mission 03

Layer 2 · Control point

AI Gateway & governance

One front door between every agent and every model: identity checks, token quotas, routing, failover and cost attribution, enforced once.

API Management · Microsoft Foundry

Mission 05 Mission 07

Layer 3 · Reasoning

AI agents

Streaming routes, a turn service with guardrails, an orchestrator running bounded agents, and a deterministic engine that makes the final decision.

Agent service on AKS

Mission 02 Mission 03

Layer 4 · Systems of record

Enterprise data

Governed MCP tools in front of real systems, least-privilege identities with no keys in code, and stores the agents can cite and audit.

MCP tool server · Cosmos DB · Data pipelines · Identity & secrets

Mission 04 Mission 08

Across every layer

Quality & safety

Evaluation

Golden datasets, quality and safety scorers, and attack packs that gate every change to a prompt, model or tool before it ships.

CI/CD evaluation gates

Mission 06 Mission 07 Mission 08

CI/CD & rollback

Deployment

Bicep for every environment, and images promoted from dev to pre-production to production with approvals, an A/B test and a rollback you have run.

CI/CD · Container registry

Mission 01 Mission 10

Tracing & recovery

Operations

Traces, alerts on cost, latency, errors and behaviour drift, autoscaling tested to the breaking point, and a staged incident you recover.

Observability · Autoscaling

Mission 09 Mission 11

04 / Production properties

Built in,
not bolted on.

The properties that separate this system from a demo, and the ones a release board will ask you to prove.

  • No keys anywhere

    Pods use workload identity, the gateway reaches the models with a managed identity, and key access to the data store is switched off. Key Vault holds anything that must stay secret.

  • Private by default

    Traffic enters only through the edge and the web application firewall, and the data store is reachable only over a private endpoint.

  • One gateway for every model

    Quotas, routing, failover and cost attribution are enforced once, in API Management, instead of being rebuilt in every agent.

  • The model advises, code decides

    Agents interpret and draft. A deterministic engine applies the rules, so the same input always gets the same decision.

  • Commit, then reply

    The conversation and its turn receipt are stored together before the answer streams, so every reply can be traced to what was recorded.

  • Scales, alerts and recovers

    Pods autoscale, the store is zone-redundant with continuous backup, alerts reach a person before users notice, and the rollback has been rehearsed.

05 / Next step

See it,
then build it.

The architecture walkthrough tours the platform you inherit, from the agents and the gateway to the evaluation gates and the pipeline, with the full mission outline.