The independent reference for AI agent sandboxesLast reviewed
Agent Sandboxesagentsandboxes.org
Sandbox profile · Cloud provider service

Azure Container Apps dynamic sessions

Answer in brief

Azure service that hands out Hyper-V-isolated sessions from prewarmed pools, either as a built-in code interpreter or running your own container image. A solid, locked-down code interpreter for Azure shops; not designed for long-lived coding agents.

By the Agent Sandboxes editors · Updated

Overview

Azure Container Apps dynamic sessions provide sandboxed execution from prewarmed pools. The built-in code interpreter runs Python, Node.js and shell; custom container sessions run any image. Each session sits behind a Hyper-V boundary and outbound network access is disabled by default.

First-party integrations with LangChain, LlamaIndex and Semantic Kernel make it straightforward to add a code tool to Azure-hosted agents.

Notable

  • Up to 600 concurrent sessions per code interpreter pool.
  • Hourly billing increments make very short sessions comparatively expensive.

Azure Container Apps dynamic sessions specifications

AttributeDetails
IsolationHyper-V isolation; each session is isolated by a Hyper-V boundary
DeploymentCloud provider service
Open sourceNo
SDKs and interfacesREST API, Azure CLI, LangChain, LlamaIndex, Semantic Kernel
Cold start (vendor claim)Prewarmed pools allocate sessions in milliseconds (no specific figure)
Max session lengthCode interpreter: 220 s per execution; sessions deleted after a 5–60 min idle cooldown
PersistenceSession reuse by identifier; files in /mnt/data for the session’s life. No snapshots; ephemeral
GPUNo
NetworkingPer-pool egress setting; egress disabled by default
PricingCode interpreter: $0.03 per session-hour (East US, Azure Retail Prices API), billed in one-hour increments. Custom container sessions billed on the Dedicated plan
Free tierNone stated for dynamic sessions
ComplianceNot documented
Regions40+ Azure regions

Facts from Azure Container Apps dynamic sessions’s public documentation, verified November 8, 2026. Performance numbers are vendor claims.

Strengths and trade-offs

Strengths

  • You build on Azure and want Hyper-V isolation without managing infrastructure
  • You want egress disabled by default
  • You use LangChain, LlamaIndex or Semantic Kernel

Trade-offs

  • 220-second execution limit on the code interpreter
  • Hourly billing increments penalize short sessions
  • No snapshots, pause/resume or GPU

Best for: Azure-native apps running LLM-generated Python or Node code with egress off by default.

Where Azure Container Apps dynamic sessions ranks

How Azure Container Apps dynamic sessions compares

SandboxIsolationOpen sourceSelf-host / BYOCCold start (vendor)Max sessionSnapshots / pauseGPUSDKs
Azure Container Apps dynamic sessionsHyper-V VMNoNo / NoSub-second (pooled)220 s / execNo / NoNoREST API, Azure CLI, LangChain, LlamaIndex, Semantic Kernel
AWS Bedrock AgentCoreMicroVM (Runtime)NoNo / NoNot documentedUp to 8 hNot documented / Not documentedNoPython (AgentCore SDK), AWS SDKs, AWS CLI
Google Agent Platform Code ExecutiongVisorNoNo / No<1 s (warm)14-day stateNo / Not documentedNoPython (Agent Platform SDK), REST API
OpenAI Code Interpreter & Hosted ShellVM (unspecified)NoNo / NoNot documented20 min idleNo / NoNoOpenAI Responses API, Containers API, OpenAI SDKs
E2BFirecracker microVMYesYes / YesNot documented1 h / 24 h (Pro)Yes / YesNoPython, JavaScript/TypeScript

Frequently asked questions

What is Azure Container Apps dynamic sessions?
Azure service that hands out Hyper-V-isolated sessions from prewarmed pools, either as a built-in code interpreter or running your own container image. A solid, locked-down code interpreter for Azure shops; not designed for long-lived coding agents.
How does Azure Container Apps dynamic sessions isolate code?
Azure Container Apps dynamic sessions documents its isolation as: Hyper-V isolation; each session is isolated by a Hyper-V boundary.
Is Azure Container Apps dynamic sessions open source?
No, Azure Container Apps dynamic sessions is not open source.
How much does Azure Container Apps dynamic sessions cost?
Code interpreter: $0.03 per session-hour (East US, Azure Retail Prices API), billed in one-hour increments. Custom container sessions billed on the Dedicated plan Check the official pricing page for current rates.
What are the best Azure Container Apps dynamic sessions alternatives?

Sources

  1. learn.microsoft.com/en-us/azure/container-apps/sessions
  2. learn.microsoft.com/en-us/azure/container-apps/sessions-code-interpreter
  3. learn.microsoft.com/en-us/azure/container-apps/session-pool
  4. azure.microsoft.com/en-us/pricing/details/container-apps/

Cite this page

Agent Sandboxes. (2026). Azure Container Apps dynamic sessions. agentsandboxes.org. Last reviewed November 8, 2026. https://agentsandboxes.org/sandboxes/azure-dynamic-sessions/

Found an error or a missing sandbox? Submit a correction — every entry links to the sources it relies on.