1 min readfrom InfoQ

Run Untrusted AI Agent Code Safely with Azure Container Apps Sandboxes

Our take

Microsoft’s public preview of Azure Container Apps Sandboxes introduces a powerful new way to run untrusted AI agent code safely. This innovative ARM resource type, designated Microsoft.App/SandboxGroups, leverages hardware isolation to protect your environment while enabling rapid scaling – up to thousands of instances – and zero cost when idle. Sandboxes launch from OCI disk images in under a second, offering a streamlined and secure pathway for agent-driven workflows.
Run Untrusted AI Agent Code Safely with Azure Container Apps Sandboxes

The announcement of Azure Container Apps Sandboxes marks a significant step toward safely integrating increasingly sophisticated AI agents into production environments. The ability to run untrusted code – code generated by these agents, often operating with a degree of autonomy – within isolated, rapidly deployable containers addresses a critical concern as AI continues to permeate workflows. As evidenced by the growing experimentation highlighted in articles like Local Agentic Programming on the Cheap: Claude Code + Ollama + Gemma4, the trend towards agentic AI is accelerating, but the security implications remain largely unaddressed. Sandboxes provide a crucial layer of defense, allowing organizations to explore and leverage these powerful capabilities without exposing their core infrastructure to undue risk. The fact that these sandboxes can spin up from OCI disk images in under a second, scale to thousands of instances, and incur no cost when idle further enhances their appeal for dynamic, event-driven AI workloads.

The hardware isolation element is particularly noteworthy. While containerization itself provides a degree of isolation, it's not a substitute for true hardware-level separation, especially when dealing with code whose behavior is unpredictable. This addresses a vulnerability that has been increasingly discussed within the AI security community. Microsoft’s approach offers a practical solution, allowing developers to experiment with emerging AI models and agent architectures, like those explored in Gemini Omni: AI Video Generation Inside Gemini, in a controlled and secure manner. The ARM resource type designation signifies Microsoft's commitment to integrating this functionality deeply into its cloud platform, anticipating widespread adoption and making it a seamless part of the Azure ecosystem. It’s also a pragmatic response to the growing demand for responsible AI practices, as highlighted by discussions surrounding AI's potential impact on sensitive topics, such as those explored in [Looking for papers/resources on AI responses to psychological distress prompts [P]](https://res.infoq.com/news/2026/06/untrusted-ai-agents-sandboxes/en/headerimage/generatedHeaderImage-1781187614455.jpg/post/looking-for-papers-resources-on-ai-responses-to-psychologica-cmqa6l7as00w9tqtw2h8d35o6).

Beyond the immediate security benefits, Azure Container Apps Sandboxes signal a shift in how we architect AI-powered applications. Traditionally, integrating external AI services has meant relying on third-party APIs and trusting their security posture. Sandboxes enable a more self-contained approach, where organizations can run their own AI agents, potentially fine-tuned on proprietary data, within a secure and isolated environment. This reduces dependency on external providers and provides greater control over data privacy and model behavior. The cost efficiency, particularly the zero-cost idle state, makes this an attractive option for workloads that experience intermittent demand, a common characteristic of many AI-driven processes such as automated data analysis or event-triggered decision-making. The rapid scaling capabilities also mitigate the challenges of unpredictable agent behavior, ensuring consistent performance even under heavy load.

Looking ahead, the success of Azure Container Apps Sandboxes will depend on their ease of integration with existing development workflows and the availability of robust tooling for managing and monitoring sandboxed agents. A key question will be how Microsoft addresses the challenge of auditing and tracing the behavior of agents running within these isolated environments – ensuring transparency and accountability will be paramount as AI systems become increasingly autonomous. Furthermore, the evolution of sandbox security measures to contend with increasingly sophisticated adversarial techniques will be a continuous process, requiring ongoing investment and innovation in both hardware and software security. The arrival of this technology doesn’t eliminate risk, but it dramatically lowers the barrier to safe experimentation and implementation of the next generation of AI-powered workflows.

Microsoft has announced the public preview of Azure Container Apps Sandboxes. This new ARM resource type is Microsoft.App/SandboxGroups, runs untrusted code generated by agents in hardware-isolated environments. Each sandbox starts from an OCI disk image in less than a second. It can scale to thousands of instances at once and costs nothing when idle.

By Claudio Masolo

Read on the original site

Open the publisher's page for the full experience

View original article

Tagged with

#no-code spreadsheet solutions#rows.com#financial modeling with spreadsheets#Azure Container Apps#Sandboxes#Untrusted Code#AI Agents#ARM Resource#Microsoft App#SandboxGroups#Hardware Isolation#OCI Disk Image#Scaling#Containerization#Public Preview#Cloud Computing#Azure#Instances#Idle#Resource Management