Azure Container Apps dynamic sessions are Microsoft's managed sandboxes for running code that should not run next to your app, including code an LLM wrote. If your stack…
Azure Container Apps dynamic sessions are Microsoft's managed sandboxes for running code that should not run next to your app, including code an LLM wrote. If your stack is on Azure, they are the obvious candidate. This post compares them with Sandscale sandboxes using Microsoft's documentation as of November 2026: dynamic sessions overview, code interpreter sessions, using sessions and custom container sessions. Check them before you decide; several APIs carry preview version strings.
The models differ Dynamic sessions are organized around a session pool: an Azure resource with prewarmed, unallocated sessions. You do not create a session explicitly. You send a request to the pool's management endpoint with an identifier query parameter, a string you choose (Microsoft suggests a user ID or conversation ID). If no session has that identifier, the pool allocates one; if one does, the request goes to it.
A session stays allocated while requests keep coming and is destroyed after a cooldown period with no activity. You can also delete one explicitly. There are two pool types. Code interpreter pools use platform-provided containers; the Python sessions come with packages such as NumPy, pandas and scikit-learn. Custom container pools run your own image, and requests are forwarded to your container's target port, so you write the server inside. Sandscale sandboxes are explicit.
sandboxes.create starts one from a template (builtin:python, builtin:node, builtin:go, builtin:base, builtin:minimal, or your organization's image pinned by digest) or from a snapshot, and returns its id. You run commands with sandboxes.run, move files with writeFile and readFile, and end it with sandboxes.stop, which deletes its disk. There is no server for you to write inside the box. Isolation Microsoft says sessions use Hyper-V isolation and are isolated from each other and from the host.
Sandscale runs each sandbox as its own Firecracker microVM with its own kernel. Both are hardware-virtualization boundaries rather than shared-kernel containers, which is what you want for untrusted code. Isolating agent code with containers, gVisor or Firecracker explains why the boundary matters. How long code can run Dynamic sessions. For code interpreter sessions, each code execution is limited to a maximum runtime of 220 seconds. The session itself lives until its cooldown period passes with no requests. Sandscale.
This is a source-linked briefing. Read the original report from Dev Community .