Skip to content
sandboxrouting

Azure Container Apps Sandboxes

azure-sandboxes, free every month, microVM isolation.

$5.40 every month

About 25 h of a 2 vCPU, 4 GiB sandbox a month, at $0.216/h with every vCPU busy. The router reserves that much for each live box, so it never runs past the tier.

Terms

Free usage
180k vCPU-s + 360k GiB-s (≈ $5.40)
Free limits
2 vCPU / 4 GiB is tier L
Paid after
$0.216/h (2 vCPU / 4 GiB)
Card
required
Adapter's note
Consumption-plan grant, 180,000 vCPU-seconds + 360,000 GiB-seconds per subscription a month (≈ 25 h at 2 vCPU / 4 GiB); Azure says sandboxes bill like the Consumption plan but doesn't list them separately. Stopped sandboxes have no compute charge.

Cloud Run sandboxes start only from inside a Cloud Run container, so each router sandbox is one Cloud Run instance (Preview) running templates/cloud-run-sandbox, which runs commands in a sandbox with sandbox exec. Cloud Run claims gVisor, the weaker of its two generations. Azure says Container Apps Sandboxes bill like the Consumption plan but lists no sandbox meter, so its Consumption rates and free grant are used; Azure deletes a sandbox a day after it stops, paused ones included. gke-agent-sandbox runs in your own cluster: it's priced at GKE Autopilot's pod rate. On a cluster whose nodes you already pay for, set "gke-agent-sandbox": { "pricing": { "vcpuSecondUsd": 0, "gibSecondUsd": 0 } }.

The adapter

Azure Container Apps Sandboxes (Microsoft.App/SandboxGroups; preview at Build 2026, GA at Ignite 2026): microVM sandboxes with create, exec, files, ports and stop/resume, inside a sandbox group you create once. Chosen over dynamic sessions, whose pool allocates a session on first request, caps code runs at 220 s and has no create or stop call for one session. https://learn.microsoft.com/azure/container-apps/sandboxes-overview https://sandboxes.azure.com/docs/sandboxes npm @azure/containerapps-sandbox 1.0.0-beta.1 (the wire calls below are what it sends), specification/app/data-plane/ContainerApps in Azure/azure-rest-api-specs https://management.{region}.azuredevcompute.io, token audience https://dynamicsessions.io, api-version 2026-02-01-preview, all under /subscriptions/{s}/resourceGroups/{rg}/sandboxGroups/{group} PUT /sandboxes {sourcesRef, resources, labels, environment, lifecycle} → Sandbox GET /sandboxes/{id} {id, state: Creating|Running|Stopping|Stopped|Idle|StopFailed} GET /sandboxes?labels=k=v {value, nextLink} DELETE /sandboxes/{id} POST /sandboxes/{id}/executeShellCommand {command, environment, workingDirectory} → {exitCode, stdout, stderr} GET|PUT /sandboxes/{id}/files?path=… raw bytes (PUT takes createDirs=true) GET /sandboxes/{id}/files/list?path=… {path, entries: [{name, path, size, isDirectory}]} POST /sandboxes/{id}/ports/add {port, auth: {anonymous}} → the port's url POST /sandboxes/{id}/stop | /resume Pricing: "Sandboxes follow the same pay-per-second pricing as Consumption Plan" (azure.microsoft.com/pricing/details/container-apps); the retail prices API has no separate sandbox meter, so the Consumption active rates and free grant are used.

Keys
AZURE_SUBSCRIPTION_ID , AZURE_RESOURCE_GROUP , AZURE_SANDBOX_GROUP , AZURE_REGION + AZURE_ACCESS_TOKEN or AZURE_TENANT_ID / AZURE_CLIENT_ID / AZURE_CLIENT_SECRET
Connects through
REST management.{region}.azuredevcompute.io
Capabilities
Public ports, Pause and resume, Native file listing
Isolation
microVM
Operating system
Linux
Longest sandbox
no limit declared
Longest command
no cap declared
Timeout
The provider keeps it alive, so the router deletes it at the deadline
Billing
Wall clock, every second it runs
Source
src/providers/azure-sandboxes.ts, and the provider’s site
Route only here
const sbx = await router.create({ providers: ["azure-sandboxes"] });
Override its terms in sandboxrouting.json
{
  "providers": {
    "azure-sandboxes": {
      "freeTier": {
        "kind": "monthly-credit",
        "usd": 5.4
      },
      "priority": 10
    }
  }
}