You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Azure Container Apps dynamic sessions provide fast access to secure sandboxed environments that are ideal for running code or applications that require strong isolation from other workloads.
16
16
17
-
Dynamic sessions offer prewarmed environments through a [session pools](./session-pool.md) that starts the container in milliseconds, scales on demand, and maintains strong isolation. This makes them ideal for interactive workloads, running LLM generated scripts, and secure execution of custom code.
18
-
17
+
Dynamic sessions offer prewarmed environments through [session pools](./session-pool.md) that start the container in milliseconds, scale on demand, and maintain strong isolation. This makes them ideal for interactive workloads, running LLM generated scripts, and secure execution of custom code.
19
18
20
19
## Benefits
20
+
21
21
With sessions, you get:
22
22
23
23
-**Secure isolation**: Hyper-V isolation and optional network controls protect your environment. Sessions are isolated from each other and from the host environment, providing enterprise-grade security and isolation.
24
24
-**Sandboxed environments**: Each session runs in its own isolated environment, ensuring that workloads don't interfere with each other.
25
25
-**Instant Startup**: Prewarmed pools enable subsecond launch times for interactive workloads. New sessions are allocated in milliseconds thanks to pools of ready but unallocated sessions.
26
-
-**Scalable by Design**: Handle hundreds or thousands of concurrent sessions without manual intervention.
27
-
-**Managed lifecycle**: Sessions are automatically deprovisioned after use or after a configurable cooldown period, ensuring efficient resource usage.
28
-
26
+
-**Scalable by Design**: Handle hundreds or thousands of concurrent sessions without manual intervention.
27
+
-**Managed lifecycle**: Sessions are automatically deprovisioned after use or after a configurable cooldown period, ensuring efficient resource usage.
29
28
30
29
## Common Scenarios
30
+
31
31
Dynamic sessions are useful in a variety of situations, including:
32
+
32
33
-**AI/LLM Workflows**: Safely execute AI-generated code in isolated environments without risking your production systems.
33
34
-**Interactive Development**: Provide developers with fast, disposable environments for testing scripts or prototypes without provisioning full apps.
34
35
-**Secure Code Execution**: Run untrusted or user-submitted code in a sandboxed environment with strong isolation.
35
36
-**Custom Compute Tasks**: Execute short-lived jobs that require custom dependencies or runtime environments without long startup times.
36
37
-**Burst Workloads**: Handle unpredictable spikes in demand by scaling sessions up and down automatically.
37
38
38
-
39
39
## Key Concepts
40
+
40
41
-**Session Pool**: A session pool is the foundation for dynamic sessions. It contains a set of prewarmed, ready-to-use sessions that enable near instant startup. When a request comes in, the system allocates a session from the pool instead of creating one from scratch, which dramatically reduces latency.
41
42
42
43
-**Session**: A session is the actual execution environment where your code or container runs. Sessions are ephemeral and isolated, designed for short-lived tasks. When you create a session, it's allocated from the session pool, ensuring fast startup. After the task completes or the cooldown period expires, the session is destroyed and resources are cleaned up.
@@ -49,8 +50,7 @@ Dynamic sessions are useful in a variety of situations, including:
49
50
-**Code interpreter session pools**: These use platform built-in containers that provide preconfigured environments for running code, including AI-generated scripts. Ideal for scenarios like LLM-driven workflows or secure code execution.
50
51
-**Custom container session pools**: Bring-your-own-container for custom workloads that require specific dependencies or runtime environments.
@@ -59,11 +59,10 @@ Dynamic sessions are useful in a variety of situations, including:
59
59
|**When to choose**| Choose this for simplicity, fastest startup, and minimal setup. | Choose this when you need full control over the execution environment or rely on custom dependencies. |
60
60
|**Ideal use cases**| LLM workflows, code interpretation, educational/sandbox scenarios, safe execution of user code. | Custom compute tasks, proprietary interpreters, specialized environments, or workloads with specific OS/library requirements. |
61
61
|**Language and protocol**| Limited to the built-in runtimes and the REST API surface provided by the code interpreter. | Any language or stack supported by your container, with any TCP protocol you choose to expose. |
62
-
|**Image requirement**| None—uses platform built‑in interpreter environments. | Required—supply your own container image URI. |
62
+
|**Image requirement**| None, uses platform built‑in interpreter environments. | Required, supply your own container image URI. |
63
63
64
64
For more information, see [Usage](./sessions-usage.md).
65
65
66
-
67
66
## Supported regions
68
67
69
68
Dynamic sessions are available in the following regions. Both code interpreter and custom container sessions are supported in all listed regions.
@@ -89,14 +88,14 @@ Dynamic sessions are available in the following regions. Both code interpreter a
89
88
> Regional availability may change. To verify current availability, check the **Location** dropdown when creating a session pool in the Azure portal.
90
89
91
90
## Security
92
-
Dynamic sessions are designed to run untrusted code in isolated environments. For information about securing your sessions, see [Security](./sessions-usage.md#security).
93
91
92
+
Dynamic sessions are designed to run untrusted code in isolated environments. For information about securing your sessions, see [Security](./sessions-usage.md#security).
94
93
95
94
## Billing
96
-
Custom container sessions are billed based on the resources consumed by the session pool. For more information, see [Azure Container Apps billing](./billing.md#dynamic-sessions).
97
95
96
+
Custom container sessions are billed based on the resources consumed by the session pool. For more information, see [Azure Container Apps billing](./billing.md#dynamic-sessions).
98
97
99
98
## Next steps
100
-
- Learn how to configure [session pools](./session-pool.md)
101
-
- Learn how to use [dynamic sessions](./sessions-usage.md), including security and best practices
102
99
100
+
- Learn how to configure [session pools](./session-pool.md)
101
+
- Learn how to use [dynamic sessions](./sessions-usage.md), including security and best practices
0 commit comments