October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
Redmond desk4 min

Code Interpreter Internals in Microsoft Foundry: What Happens Inside the Sandbox

Microsoft documents Foundry Code Interpreter’s managed Python sandbox, Hyper-V session isolation, file workflow, network limits, timeouts, and per-session billing, but not its exact runtime image or package versions.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Microsoft Foundry’s built-in Code Interpreter runs Python in a Microsoft-managed sandbox using dynamic sessions in Azure Container Apps. Microsoft says each session is isolated by a Hyper-V boundary. The public documentation explains the main operational behavior—where sessions run, how they handle files and network access, and how long they remain active—but does not disclose the runtime image, kernel, package versions, or detailed host configuration.

How does Microsoft Foundry Code Interpreter work?

An agent can use the Code Interpreter tool to execute Python for analysis, chart generation, and iterative problem solving. Microsoft documents the execution environment as dynamic sessions in Azure Container Apps, with each session isolated by a Hyper-V boundary. This describes the published architecture; it is not a detailed account of how Microsoft constructs the virtualized environment or configures its hosts. Microsoft Learn’s Code Interpreter documentation provides the service-level description.

The sandbox runs in the same Azure region as the Foundry project. Sessions are isolated from one another: if an agent invokes Code Interpreter in separate conversations at the same time, Microsoft says those calls create separate sessions.

Can Code Interpreter access the internet or the agent’s network?

Microsoft says the Code Interpreter dynamic session cannot make outbound network requests and does not inherit the agent subnet configuration. These limits apply to the documented Code Interpreter session; they should not be read as a statement that every component of Foundry lacks network access. For a custom runtime, network behavior depends on its separately configured environment.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
Microsoft Surface Laptop (2026), 13.8-inch Premium Performance Laptop, Snapdragon X2 Elite Processor, Touchscreen Display, 16GB RAM, 512GB SSD Storage, Windows 11 Copilot+ PC Built for AI, Platinum
  • Brilliant Display – Stunning 13.8" PixelSense touchscreen[1], with brilliant LCD display[2], unleashes luminous whites, deeper blacks and colors so richly saturated bringing vivid life into every frame – perfect for work, school, streaming and creative tasks.
  • Power that lasts all day – With 20 hours of battery life[3], the new Surface Laptop powers through your entire day, so you can create, work and stream from morning to night without reaching for a charger.​
  • Work at the speed of your ideas – Built with the latest Qualcomm Snapdragon X2 Elite (12 Core) processors, Surface Laptop delivers fast, AI‑accelerated performance—making it the most powerful Surface laptop for everything from multitasking to demanding workloads.
  • The ports you need – Charge on-the-go, transfer data fast, or create the ultimate desktop set up with two USB-C / USB4[4] ports.
  • Built-in AI Companion – Work smarter, create freely, and communicate with confidence—Copilot[5] on Windows 11 is always there to help.​

How does it handle files?

The built-in tool can use files attached for analysis and return generated outputs, such as charts, for download. In Microsoft’s documented upload workflow, an uploaded file is mounted at /mnt/data/{file-id}-{original-filename}. The example workflow uploads a CSV, enables the tool for an agent, requests a chart, and downloads the resulting file.

Microsoft lists supported formats including CSV, DOCX, PDF, PPTX, Python, TXT, XLSX, and ZIP, among others. An attachment does not imply that the interpreter can browse arbitrary local-machine files, user storage, or tenant data.

Rank #2
Microsoft Surface Laptop 5 13.5" Touchscreen Notebook - 2256 x 1504 - Intel Core i7 12th Gen i7-1265U - Intel Evo Platform - 16 GB Total RAM - 512 GB SSD (Platinum) (Renewed)
  • With 16 GB of memory, runs as many programs as you want without losing the execution
  • The 13.5" 2256 x 1504 screen provides a great movie watching experience
  • 512 GB SSD is enough to store your essential documents and files, favorite songs, movies and pictures
  • 8 Hours battery run time helps you stay unwired and work longer non-stop

How long does a session last, and how is it billed?

Microsoft Learn’s Code Interpreter article, last updated August 5, 2026, documents a default session active period of up to one hour and a 30-minute idle timeout. These are operational settings, not a guarantee that a particular workload will finish within that time. The tool documentation also notes that separate conversations using the tool concurrently create separate sessions.

Microsoft’s Foundry Agent Service FAQ, last updated September 25, 2026, says Code Interpreter is charged per session. Its example says continued instructions in the same thread during the one-hour active period incur the session charge once; concurrent sessions are charged separately. The pages establish that session charges apply, but do not provide a price to quote here. Check current pricing for the relevant service and region.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Microsoft Surface Laptop (2026), 13.8-inch Premium Performance Laptop, Snapdragon X2 Elite Processor, Touchscreen Display, 16GB RAM, 512GB SSD Storage, Windows 11 Copilot+ PC Built for AI, Black
  • A PREMIUM PERFORMANCE LAPTOP — Ready for work, school, and creativity. Built for busy days, big projects, and nonstop multitasking. Run video calls, school and work apps, 20+ browser tabs, and AI tools at the same time without slowing down.
  • WITH AI BUILT IN — With a dedicated AI chip (Qualcomm Snapdragon X2 Elite), this Copilot+ PC[5] on Windows 11 helps you work smarter and faster. Prompt, create, and automate with ease - ready for even your most demanding tasks.
  • A 13.8" TOUCHSCREEN YOU'LL ACTUALLY USE — Sharp colors, real detail, smooth 120Hz scrolling on the PixelSense touchscreen[1] with LCD display[2]. Tap, scroll, or pinch to zoom - whichever feels right for streaming, editing photos, or daily work.
  • 20 HOURS OF BATTERY (LEAVE THE CHARGER) — Up to 20 hours of video playback[3] on a single charge. Work from a coffee shop, take it to class/work, or binge an entire season on a long flight — it'll keep up.
  • THE PORTS YOU NEED — Two USB-C / USB4[4] ports for fast charging, big file transfers, or hooking up to three 4K monitors when you want a full desktop. Wi-Fi 7 keeps you online and fast wherever you are.

What is public—and what remains undisclosed?

Microsoft’s public documentation establishes the broad execution model and several practical behaviors, but not every low-level detail a reader might associate with “internals.”

Documented Not stated in the reviewed Microsoft pages
Python execution in a Microsoft-managed sandbox using Azure Container Apps dynamic sessions Exact base image or operating-system build
Hyper-V isolation, same-region placement as the Foundry project, and no outbound network requests from the dynamic session Kernel version and complete installed-package inventory or versions
Attached-file access, downloadable generated outputs, and documented session timing and concurrency behavior Runtime image patching process, detailed host configuration, or per-session CPU and memory allocation
Per-session billing, with separate charges for concurrent sessions Exact file deletion and retention mechanics after session expiry

Those details should not be inferred from generic Azure Container Apps behavior or from other products called “Code Interpreter.” The documented claims above apply to the built-in Code Interpreter tool for current Microsoft Foundry agents.

Rank #4
Sale
Microsoft Surface Laptop (2026), 15-inch Premium Performance Laptop, Snapdragon X2 Elite Processor, Touchscreen Display, 16GB RAM, 1TB SSD Storage, Windows 11 Copilot+ PC Built for AI, Black
  • A PREMIUM PERFORMANCE LAPTOP — Ready for work, school, and creativity. Built for busy days, big projects, and nonstop multitasking. Run video calls, school and work apps, 20+ browser tabs, and AI tools at the same time without slowing down.
  • WITH AI BUILT IN — With a dedicated AI chip (Qualcomm Snapdragon X2 Elite), this Copilot+ PC[5] on Windows 11 helps you work smarter and faster. Prompt, create, and automate with ease - ready for even your most demanding tasks.
  • A 15" TOUCHSCREEN YOU'LL ACTUALLY USE — Sharp colors, real detail, smooth 120Hz scrolling on the PixelSense touchscreen[1] with LCD display[2]. Tap, scroll, or pinch to zoom - whichever feels right for streaming, editing photos, or daily work.
  • 19 HOURS OF BATTERY (LEAVE THE CHARGER) — Up to 19 hours of video playback[3] on a single charge. Work from a coffee shop, take it to class/work, or binge an entire season on a long flight — it'll keep up.
  • Two USB-C / USB4[4] ports and a microSD card reader for fast charging, big file transfers, or hooking up to three 4K monitors when you want a full desktop. Wi-Fi 7 keeps you online and fast wherever you are.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

When should you consider Custom Code Interpreter?

Microsoft offers a separate Custom Code Interpreter approach built around an MCP server and Azure Container Apps Dynamic Sessions. It is intended for deployments that need control over Python packages, container images, compute resources, or environment settings—for example, when an application needs custom packages or dedicated compute. These are options for the custom deployment, not settings Microsoft says users can change inside the built-in managed sandbox.

Consideration Built-in Code Interpreter Custom Code Interpreter
Runtime control Microsoft-managed runtime Control over packages, images, compute, and environment settings
Maturity Documented built-in tool Preview; Microsoft says preview features do not carry an SLA and may have constrained capabilities
Networking Documented dynamic session cannot make outbound requests Depends on the custom deployment’s configuration
Operations and cost Tool use is billed per session Requires provisioning and managing the custom Azure Container Apps resources and their governance

See Microsoft’s custom Code Interpreter configuration guide for the preview approach. A separate classic-agent Code Interpreter page discusses a planned retirement date for classic agents; that schedule is not a retirement date for current Foundry agents or this built-in tool. The classic-agent documentation is relevant only when dealing with that legacy experience.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Sale
Microsoft Surface Laptop (2026), 13.8-inch Premium Performance Laptop, Snapdragon X2 Elite Processor, Touchscreen Display, 16GB RAM, 512GB SSD Storage, Windows 11 Copilot+ PC Built for AI, Dune
  • Brilliant Display – Stunning 13.8" PixelSense touchscreen[1], with brilliant LCD display[2], unleashes luminous whites, deeper blacks and colors so richly saturated bringing vivid life into every frame – perfect for work, school, streaming and creative tasks.
  • Power that lasts all day – With 20 hours of battery life[3], the new Surface Laptop powers through your entire day, so you can create, work and stream from morning to night without reaching for a charger.​
  • Work at the speed of your ideas – Built with the latest Qualcomm Snapdragon X2 Elite (12 Core) processors, Surface Laptop delivers fast, AI‑accelerated performance—making it the most powerful Surface laptop for everything from multitasking to demanding workloads.
  • The ports you need – Charge on-the-go, transfer data fast, or create the ultimate desktop set up with two USB-C / USB4[4] ports.
  • Built-in AI Companion – Work smarter, create freely, and communicate with confidence—Copilot[5] on Windows 11 is always there to help.​

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.