Skip to content
| Marketplace
Sign in
Visual Studio Code>Azure>ACA Sandbox RunnerNew to Visual Studio Code? Get it now.
ACA Sandbox Runner

ACA Sandbox Runner

Preview

Konstantinos Passadis

|
1 install
| (0) | Free
Run code (and AI-generated code) in isolated Azure Container Apps Sandboxes instead of on your machine. Includes a Copilot agent tool.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ACA Sandbox Runner

Run code — your own snippets or code written by an AI agent — in an isolated Azure Container Apps Sandbox instead of on your machine.

Preview. Built on @azure/containerapps-sandbox 2.0.0-beta.1 (API version 2026-09-01-preview). APIs may change.

Features

  • Run Selection or File in Sandbox — select code (or nothing, to run the whole file) and press Ctrl+Alt+Shift+R (Cmd+Alt+Shift+R on macOS), use the editor context menu, or the Run button in the editor title bar. Output streams live into the ACA Sandbox output panel as your code produces it, followed by the exit code and timing.
  • Cancel or time out cleanly — cancelling a run (or hitting acaSandbox.execTimeoutSeconds) stops the process and everything it started inside the sandbox.
  • Open Terminal in Sandbox — a real interactive shell (colors, resizing, Ctrl-C) inside the sandbox, right in VS Code's terminal panel. Also available as the ACA Sandbox terminal profile.
  • Open Sandbox Files in Explorer — browse the sandbox's file system in the Explorer next to your own files: open, edit and save files in place, create, rename, copy and delete files and folders, and drag files in from your machine to upload them. Pick /tmp/aca-sandbox-runner (where runs happen: your snippets and any files your code writes with relative paths), /root (home), /, or any other folder. Use Refresh Sandbox Files (Explorer context menu) to see changes made by running code; the Explorer refreshes on its own after runs and when a sandbox terminal closes.
  • Open Sandbox Port in Browser — start a web app in the sandbox (for example python3 -m http.server 8000 in the sandbox terminal) and open it on http://localhost:<port>. Each new connection takes about a second to set up, so the first page load is slower than local.
  • Copilot agent tool — #acaSandbox lets Copilot (agent mode) run code it wrote in your sandbox. Every run asks for confirmation first.
  • Reuse or ephemeral — keep one warm sandbox per workspace (fast, keeps installed packages), or create and delete a fresh one for every run.
  • Stopped sandboxes resume automatically, and a deleted sandbox is replaced transparently.
  • Choose Public Disk Image — pick from the images available in your sandbox group.
  • Clean Up Sandboxes in Group — lists every sandbox in the group with its state, how long it has been stopped, labels, exposed ports and stored size, and deletes the ones you pick. Only stopped sandboxes this extension created and no workspace on this machine uses are pre-selected; sandboxes created by other apps or people are listed separately, never pre-selected, and get an extra warning.
  • Status bar menu — click the ☁ item for all sandbox actions.

Getting started

  1. Sign in with az login (or azd auth login).
  2. Run ACA Sandbox: Select Sandbox Group… from the Command Palette and pick your subscription and sandbox group.
    • No sandbox group yet? Choose Create a new sandbox group…. It opens the create wizard of Microsoft's Azure Container Apps extension (installed on request), or you can create one in the Azure portal.
    • Access denied? Your account needs the Container Apps SandboxGroup Data Owner role on the group. Choose Grant Me Access when prompted. That needs Owner or User Access Administrator rights; without them, the extension copies the command for an admin to run. New role assignments can take a few minutes to apply.
  3. Open a file and press Ctrl+Alt+Shift+R, or open a terminal in the sandbox.

You can still enter the four values yourself with ACA Sandbox: Enter Sandbox Group Details Manually….

Settings

Setting Default Description
acaSandbox.subscriptionId, resourceGroup, sandboxGroup, region — Which sandbox group to use.
acaSandbox.auth azureCli azureCli (Azure CLI / azd) or vscode (experimental).
acaSandbox.diskImage ubuntu Public disk image for new sandboxes. Must include your interpreters.
acaSandbox.sandboxMode reuse reuse or ephemeral.
acaSandbox.runners python, node, bash… Command per language ID; {file} is the uploaded snippet path. The ubuntu image ships python3 and bash but not node.
acaSandbox.streamOutput true Stream output live. Falls back to showing output at the end if the stream can't be opened.
acaSandbox.terminalShell /bin/bash Shell for Open Terminal in Sandbox (a single executable path).
acaSandbox.cpu / memory 1000m / 2048Mi Resources for new sandboxes.
acaSandbox.readyTimeoutSeconds / execTimeoutSeconds 180 / 120 Timeouts.

Cost and safety

Sandboxes are billable Azure resources in your subscription. In reuse mode the sandbox is left in place between runs (it suspends when idle, but its disk is still stored); use ACA Sandbox: Delete This Workspace's Sandbox when you're done, or Clean Up Sandboxes in Group to remove leftovers from other workspaces and machines. Both ask before deleting, and neither deletes the sandbox group itself. Sandboxes don't see your local files — only the code you send, and files you save or drag into a sandbox folder. The terminal, sandbox files and forwarded ports always use the workspace's reused sandbox, also in ephemeral mode.

Sandbox files: good to know

  • Adding a sandbox folder to a window that has one folder open turns it into a multi-root (untitled) workspace, and VS Code restarts extensions once. Save the workspace to keep the sandbox folder.
  • Every file operation is a network call (about 50 ms). Browsing is quick, but very large folders are slow to list.
  • VS Code's Quick Open (Ctrl+P) and Find in Files don't search custom file systems like this one. Use grep or find in the sandbox terminal instead.
  • If the sandbox has suspended, the first file operation resumes it. If it was deleted, a new one is created, and its folders start out empty.

Development

See CONTRIBUTING.md for development setup, test and build instructions, and pull request expectations.

Security

Please report security vulnerabilities responsibly as described in SECURITY.md.

License

This project is licensed under the MIT License.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft