Azure just put a new trust boundary on the table: Agent Sandbox for AKS spins up VM-isolated sessions for agent-generated code, with pre-warmed pools to cut startup latency and an option to run agents serverlessly. Thats not a small tweak to pod-sandboxing its a different surface area, and it forces platform teams to choose where they want complexity to live.
Microsoft presented this as a compact set of primitives: VM-level isolation per session, pre-warmed VM pools to reduce cold starts, and a serverless-style mode that abstracts VM lifecycles. The company also described a control plane for authenticated, encrypted connectivity between agents, models, tools, and data sources, plus a managed developer experience and centralized security controls. Microsoft suggested optimized VM SKUs for these workloads, signaling an expectation of large-scale, compute-heavy agent use.
Why this matters
Treating agent-executed code as something that must run in a VM changes defaults in sensible ways. Agents will execute arbitrary code calling APIs, invoking binaries, and composing tools against your data. Pods with container-level isolation have always been an awkward trust boundary for guest code: container escapes, shared kernels, and host-level side channels remain real risks. VM-level sessions push the least-privilege model toward machine-level isolation instead of relying on namespaces and seccomp alone.
Thats the right call. Running agent code in a separate VM per session is the pragmatic way to reduce blast radius while preserving developer ergonomics. But it also moves a bunch of problems to platform engineering:
- Lifecycle and cost: pre-warmed pools help latency, but you now have to budget for idle VMs or pay a serverless-style premium. Tracking utilization across ephemeral VMs will be an ops problem.
- Identity and secrets: per-session VMs still need credentials to reach data and services. You need short-lived, auditable identities not long-lived service principals scattered across agents.
- Observability and audit: tracing agent actions across VM boundaries requires new correlations; logs, attestation, and immutable session records become mandatory.
The control plane is the other piece managers must plan for. Authenticated, encrypted channels between agents, models, and tools sound like a solved problem until you decide who issues identities, how you rotate them, and how you represent capabilities. Expect this control plane to act like a mesh for agent flows; teams will have to reconcile it with existing service meshes and network policies or adopt it as the primary enforcement point.
Where this fits in your stack
Microsoft is positioning a managed developer experience for building agents, with AKS reserved for teams that want tight control over performance, cost, and security. In practice that means: use the managed experience for rapid iteration and default guards, and use AKS + Agent Sandbox when you need custom runtimes, specialized GPUs, or strict regulatory isolation.
If you want a practical comparison, note parallels with other clouds' sandboxing approaches (for example, gVisor-based sandboxes on GKE). The important signals are centralized security controls and VM SKUs tuned for heavy agent workloads; Microsoft is clearly betting on vertically integrated infra for these scenarios.
One blunt take: this will bite teams that treat agent workloads as "just another microservice." If your security model still assumes pods are the unit of isolation, you're going to be surprised when auditors ask for attestation logs from ephemeral VMs. Conversely, teams that treat agents as a first-class workload and invest in ephemeral identity, policy-based networking, and cost attribution will be ahead.
What to do first
Start by modeling agent sessions as distinct assets in your billing, IAM, and observability layers. Design short-lived credential issuance (token brokers/STS), require session attestation for data access, and centralize policy through whatever control plane you run whether that's a managed security control, your service mesh, or a custom controller. If you haven't thought about idle VM costs and pre-warm strategies, you should: warm pools trade latency for spend; serverless-style modes trade control for simplicity.
Final thought
Azure's announcements are less about a single feature and more about setting a pattern: agents are going to be first-class cloud citizens with their own orchestration, networking, and hardware assumptions. Expect the ecosystem to split into teams who adopt VM-isolated agent runtimes and teams who try to bolt agent capabilities onto existing pod-centric platforms. The former will be safer; the latter will be cheaper until a bad agent makes that decision painfully obvious.