🇫🇷 Cet article est aussi disponible en français.

Agent Sandboxes Are Becoming Cloud Infrastructure: Isolation Is Only the Start

Agent Sandboxes Are Becoming Cloud Infrastructure: Isolation Is Only the Start
🇫🇷 Cet article est aussi disponible en français.
📑 Table of Contents

TL;DR

AWS says Lambda MicroVMs are now available in 21 regions, and Azure’s sandbox preview lets agents save and restore their working state. When comparing the two, check what a suspended job costs and which services it can access when it resumes.

Introduction

A coding agent that can write a patch needs somewhere to run tests. A data agent may need to execute a script, install a package or open a browser. Those activities are useful precisely because they interact with software outside the language model. They also create a problem that a better prompt cannot solve: the code needs a bounded execution environment.

AWS added seven regions for Lambda MicroVMs, including Paris, bringing the total to 21. Azure Container Instances offers serverless sandboxes in preview, with support for saving and restoring a running environment. (Source : AWS — Lambda MicroVMs expansion) (Source : Microsoft Learn — Serverless sandboxes in Azure Container Instances)

A sandbox is a boundary, not a verdict

AWS describes Lambda MicroVMs as a serverless compute primitive providing VM-level isolation, state preservation and launch and resume capabilities for user- or AI-generated code. Developers create an image from a Dockerfile and give each user or job a MicroVM with a dedicated HTTPS URL. (Source : AWS — Lambda MicroVMs expansion)

Azure’s sandboxes use Hyper-V micro-VMs for hardware isolation. The service supports virtual network integration and lets you assign a Microsoft Entra Agent ID to a sandbox. Your application decides when to save, pause or stop it. (Source : Microsoft Learn — Serverless sandboxes in Azure Container Instances)

These claims describe provider architectures; they are not comparative penetration tests. Isolation can reduce the blast radius of code execution, but it does not determine whether an allowed API call is appropriate. A sandbox with unrestricted access to a production database can still do harm through its authorized connection.

State changes the economics of waiting

A conventional job starts, runs and exits. Agent workflows often pause: a human must review a payment, another service must respond, or a test may take time. Retaining state lets an agent resume without reinstalling dependencies and reconstructing its workspace each time.

Azure snapshots capture memory, filesystem and runtime state. Azure stores those snapshots in a storage account in your subscription. When estimating the cost of a job that spends most of its time waiting, check what you pay for retained snapshots as well as compute, network traffic and model calls. (Source : Microsoft Learn — Serverless sandboxes in Azure Container Instances)

A useful evaluation should record at least four durations: provisioning, environment preparation, active execution and restoration. Comparing only launch latency can mislead if an agent must reinstall a large dependency tree after every start. Conversely, retaining a large snapshot for a rarely resumed job may cost more than rebuilding it. The crossover is workload-specific; neither announcement provides a universal benchmark.

Isolation and authorization need separate tests

A sandbox may be able to reach a database over the network without having permission to read its tables. Azure configures virtual network access and agent identity separately; access to a resource still depends on the permissions granted to that identity. (Source : Microsoft Learn — Serverless sandboxes in Azure Container Instances)

A sound deployment therefore asks separate questions. Can the process reach the destination? Which identity is used? Which operation is permitted? Is the authorization still valid after a role changes? And can an action be held for approval before it produces a side effect? Container or VM isolation answers none of these automatically.

The OWASP agentic risk taxonomy treats tool misuse, privilege abuse, unexpected code execution and cascading failures as separate risks. A sandbox may contain local code execution while a connector still grants the agent more access than it needs. (Source : OWASP — Agentic Applications Top 10)

Geography is not the same as data governance

AWS lists seven new regions for Lambda MicroVMs, including London and Paris. A closer region may help a team meet a latency or residency requirement, but geography alone does not establish where every model request, log, backup or external tool call goes. (Source : AWS — Lambda MicroVMs expansion)

The practical review is end-to-end: map the execution region, storage location, model endpoint, observability destination and any third-party integration. Then test the route with representative data and contract terms. Treating a region selector as a complete compliance assessment would be a category error.

What builders should measure

Run the same workload under the same tool permissions across candidate environments. Record task completion, time to useful execution, active compute, retained state size and recovery after interruption. Include network and model spend where applicable. A cloud announcement is a starting point for a test plan, not evidence that one provider is faster, cheaper or safer for a specific workload.

The trade-off is especially visible in approval-heavy workflows. Long-lived state can make resumption convenient, while a minimal ephemeral environment can reduce the amount of sensitive material retained. The right design depends on how frequently a job waits, what it stores and what an operator can reliably delete.

FAQ

Does a MicroVM prevent prompt injection?

No. It can isolate execution, but a manipulated agent may still misuse tools it is authorized to call.

What costs should I check when an agent pauses?

Check compute charges for the sandbox’s actual state and account separately for any snapshots you keep. Include network or model usage if other parts of the workflow keep running.

Is a local region sufficient for data residency?

No. Model endpoints, logs, backups and external integrations must also be assessed.

Which provider is better?

The cited announcements do not provide a controlled comparison. Test the actual workload, permissions and total bill before choosing.

Further Reading

— The Agent Report