> This page is for Building secure agent workspaces with NVIDIA OpenShell Reference Architecture.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/reference-architectures/llms.txt.

# Microsoft Azure Reference Implementation

The cloud reference implementation uses **Microsoft Azure** as the managed workspace substrate for Secure Agent Workspace. In this proposed profile, each Azure subscription and deployment region uses a dedicated untrusted VNet for the workspace fleet, not a separate VNet for each user or VM. Within that VNet, a shared sandbox subnet hosts many ephemeral, single-user Azure Linux VMs provisioned on demand; users access their assigned VM through enterprise SSO and a trusted access broker. The local endpoint remains a presentation surface; agent execution and enterprise-tool access occur inside the VM boundary, which is ephemeral — one user per VM, demolished after use.

This implementation is intended for enterprises that need a cloud-native deployment of agent workspaces on Microsoft Azure that keeps a simple containment posture — *the VM is the sandbox* — realized with Azure-native primitives (Azure Virtual Network, Azure Firewall Premium, NAT Gateway V2, Workload Identity Federation, Microsoft Entra ID, Azure Key Vault, Azure Compute Gallery).

The Phase I and Phase II subsections below project the same maturity progression onto Microsoft Azure. The baseline control surface is taken as given; each subsection names only the Azure-specific primitives — Azure resource types, identity flows, network controls — that realize each control on this substrate. **Phase II (in-VM runtime-enforced agent policy) adds in-runtime enforcement at the tool-call boundary on the same Azure-native footprint**; the proposed initial profile provides Phase I, while Phase II requires a separately qualified runtime integration.

![Proposed Azure VM topology. Broker-mediated sessions, private-resource access and internet egress are distinct paths. The initial profile uses the VM boundary and perimeter controls; Phase II requires a qualified runtime integration. Bootstrap metadata is not attestation, and credential exposure follows the declared Phase I exception.](/reference-architectures/_fern-files/_img/430cb5b2cac38812e1b6f6e5c86ce922fb460271e98fe71b7e2526214a5d4301.webp)

## Reference Shape

The baseline v1 deployment consists of:

* **Azure Virtual Machines** running Azure Linux, one per user, ephemeral and disposable. Each VM is a single-user workspace, thrown away after use — *"the VM is the sandbox."* The agent runs root-capable inside its own VM (sudo + docker, no in-box confinement); the VM boundary plus the egress allow-list are the load-bearing controls.
* **Cloud-neutral control plane** with an Azure compute adapter behind a cloud-neutral interface, added without disturbing existing cloud paths (strangler refactor). ARM VM lifecycle is restart-safe — long-running-operation polling resumes after a worker restart, so no duplicate or orphaned VMs.
* **Dedicated untrust VNet** (separate subscription preferred), region West US 2 for v1, holding a /19 sandbox subnet (\~8,187 usable addresses) and a /26 AzureFirewallSubnet, wrapped in a /16 reservation as growth runway. Hub/spoke is permitted only against an untrust hub, never the trusted corporate hub.
* **Trusted access broker** providing the inbound SSH path into the workspace and the outbound reverse tunnel for app-level corp access — the broker agent dials out (reverse tunnel), so there is no inbound door; the same tunnel is how the agent reaches the internal source-control service. No public IP, no inbound path, no Azure Bastion, no graphical desktop (headless / SSH-only).
* **Network boundary controls** using Azure-native primitives: a route table (UDR) directing 0.0.0.0/0 through the firewall's private IP with **gateway/BGP route propagation disabled** (the single highest-impact control — corp prefixes learned over ExpressRoute would otherwise win on longest-prefix-match and bypass the firewall); a subnet-level NSG with higher-priority rules denying traffic between sandbox VMs, access to corporate CIDRs, and direct DNS (:53), with no public or corporate inbound path, as defense in depth; **Azure Firewall Premium** (L7 FQDN/app rules with SNI, L3/4 network rules, DNS proxy, IDPS in alert/detect mode, with TLS inspection as a Phase II toggle); and **NAT Gateway V2 (StandardV2)**, zone-redundant on the firewall subnet, for SNAT capacity at fleet scale.
* **Agent runtime** inside the VM, running root-capable on Azure Linux. No in-box agent confinement in v1; Phase II adds a kernel-level in-box runtime sandbox (OpenShell), on the same footprint.
* **Image catalog** built with Packer (azure-arm) + Cinc from shared configuration-management cookbooks, published to **Azure Compute Gallery**, headless, with OS disks encrypted under a customer-managed encryption key and the golden image rebuilt on a schedule and for critical CVEs.
* **Logging** of Azure Firewall allow/deny events plus NSG / VNet flow logs (the latter keeping Private-Endpoint and east-west traffic observable even where it bypasses the firewall logs by design), emitted to Azure Monitor / Log Analytics, Microsoft Sentinel, or the enterprise SIEM.

## Identity and Provisioning Model

Azure identity has two distinct trust planes — control-plane → Azure for provisioning, and VM → Azure at runtime:

* **Control-plane → Azure: Workload Identity Federation (secretless).** The control plane proves its identity to Azure ARM via a federated token exchange — no stored credential ever sits on a control-plane host.
* **VM → Azure.** Use a reviewed managed-identity design with only the permissions required by each bootstrap and runtime role. Complete privileged bootstrap and establish the intended runtime identity exposure before agent code runs. Account for already-issued tokens when removing bootstrap access. Choose identity granularity and subscription sharding against the actual fleet and current quotas.
* **Bootstrap reporting via ARM tags.** The control plane does not require a direct connection into the private VM; readiness signals may return as ARM tags under narrowly scoped permissions. Treat these as bootstrap metadata, not hardware attestation or independent proof of guest integrity. Inbound user access remains broker-mediated SSH.
* **Login via Microsoft Entra ID** — cloud-native, with no corporate-AD dependency. Corporate AD / SSSD is the regular-desktop path, not the sandbox's.
* **Fleet planning.** Size subscriptions, resource groups, role assignments, regional compute quotas and IP address space against current Azure limits and the actual deployment. Where sharding is required, give each shard an approved untrust-network and egress mapping.

## Phase I: Deployable Managed VM Controls

Phase I is the proposed initial Azure profile, assembled from Azure primitives and enterprise operations practices. Validate the complete access, identity, egress, private-resource, audit and recovery paths before claiming production readiness.

Controls include:

* One ephemeral Azure VM per user, with idle, maximum-run and inactivity limits set by the approved workload and operating policy.
* Approved golden images only — built with Packer + Cinc, published to Azure Compute Gallery, OS disk encrypted with a customer-managed encryption key.
* Workspace lifecycle through the cloud-neutral control plane (Azure compute adapter), with bootstrap readiness reported through scoped ARM metadata.
* Microsoft Entra ID login with broker-mediated SSH; no public IP, no inbound path, no Azure Bastion.
* Default-deny network egress through Azure Firewall Premium against the egress allow-list (owned day-to-day by the platform team), **fail-closed** (if the firewall is down the sandbox cannot reach the model — safer than failing open).
* Dedicated untrust VNet with **gateway/BGP route propagation disabled** and a subnet-level NSG that denies traffic between sandbox VMs, access to corporate CIDRs, and direct DNS. VMs can reach corporate services only through approved brokered paths.
* NAT Gateway V2 (StandardV2) for SNAT at fleet scale; Azure Key Vault and Blob Storage reached over Private Endpoints locked to the sandbox.
* Azure Firewall allow/deny logs and VNet flow logs to Azure Monitor / Log Analytics, Microsoft Sentinel, or the enterprise SIEM.

In this phase, containment lives in the two walls the design names: the VM (one user, one task, then destroyed) and the door (a single fail-closed firewall with a short, reviewed allow-list, no inbound path, and no route to corp). The Azure egress allow-list is a reachability control, not data-loss prevention — data could still leave through an already-allowed service such as a code-hosting or package-registry service.

## Phase II: Runtime-Enforced Agent Policy on Azure

Phase II adds an in-VM runtime enforcement layer beneath the VM boundary, so containment no longer rests on the VM wall and the egress allow-list alone. v1 establishes Phase I — *the VM is the sandbox*: the agent runs root-capable inside the VM (sudo + docker), with the VM boundary plus the egress allow-list as the containment. Phase II then adds, on the same Azure-native footprint, an in-runtime policy layer (NVIDIA OpenShell or equivalent) that enforces a signed policy bundle at the tool-call boundary:

* **In-box agent confinement / runtime sandbox.** A kernel-level sandbox inside the VM confines all agent operations — shell, hooks, MCP servers, skills — with filesystem and process scope restricted to the workspace, so the agent no longer runs unconfined as root-in-VM.
* **Credential / egress proxy.** A layer separate from the agent injects per-service authorization at egress and keeps raw secrets out of the agent process — the integration records and validates the actual credential or handle semantics, scope and lifetime. Deny-by-default egress is enforced in-runtime, not only at the network boundary. In v1 the user's own model access lives on the short-lived VM; Phase II moves it behind the proxy.
* **Routed inference.** Model calls are brokered to approved endpoints under the same capability rule, so credentials never reach the agent.
* **TLS inspection of model traffic.** Optional for approved standard-inference traffic on Azure Firewall Premium. Where inference-data confidentiality is selected, preserve the trusted termination boundary defined in [Confidential Computing Inference Profile](./confidential-computing-inference-profile); an external inspection service must not decrypt that protected path.
* **Signed policy and controlled release.** Policy is authored centrally, signed, distributed to the workspace, verified on load, and enforced per tool call; the agent cannot widen its own scope or policy.

Phase II is **additive** — it does not replace Phase I. It brings the agent's runtime behavior under enforcement at the actual tool-call boundary, below the prompt layer, rather than relying on the VM wall and egress allow-list alone.

## Storage and Key Management Notes

Azure storage and secret handling for the sandbox follow a few load-bearing rules:

* Bootstrap secrets in **Azure Key Vault**, build artifacts in **Azure Blob Storage**, both reached over **Private Endpoints + Private DNS** so traffic stays on Azure's private backbone.
* Lock every Private-Endpoint resource to the sandbox (resource-level firewall allowing only the Private Endpoint) so the private path cannot be repurposed for exfiltration.
* A Private Endpoint's specific route may bypass the default firewall route. Declare whether the path is approved direct access or inspected access, and configure Private Endpoint network policies, suitable user-defined routes and Private DNS accordingly. Verify effective routing and resource-access logging; collect applicable flow records at the source VM.
* Customer-managed encryption keys for OS disks.
* DNS through the firewall DNS proxy; all :53 forced through the proxy (NSG-deny direct outbound 53). Corp names clean-fail rather than silently hang; no blanket corporate DNS forwarder in v1.
* Treat Azure platform communication at 168.63.129.16 separately from Instance Metadata Service at 169.254.169.254. Permit the required platform functions and configure DNS controls for this special path; a generic outbound port-53 deny does not by itself block Azure platform DNS. Review metadata and managed-identity access against the agent's privileges and verify that neither exception creates a bypass.

## Operating Invariants

The Azure implementation should preserve these invariants:

* **The endpoint attaches over broker-mediated SSH;** it does not execute autonomous work.
* **The Azure VM is the user's single-user, ephemeral workspace and the primary isolation boundary** — one VM per user, deleted when the task is done.
* **The control plane does not require direct inbound access to the private VM.** Bootstrap readiness metadata is not attestation. Establish minimal runtime Azure permissions before agent execution and validate residual token exposure and revocation separately.
* **Bootstrap secrets live in Azure Key Vault**, reached over a Private Endpoint. In v1 the user's own model login does sit on the VM (bounded to that one user's own model access on a short-lived VM); a qualified Phase II credential / egress proxy keeps raw credentials outside the agent process; any guest exposure remains explicit.
* **Workspace state is disposable;** the agent's app-level corp access is over the broker's reverse tunnel — there is no corp-routable network from the VM.
* The egress firewall is **fail-closed**: if it is down, sandboxes cannot reach the model — a deliberate availability choice in favor of containment.
* **Disposal resets the selected execution instance according to the approved retention policy.** It does not revoke downstream credentials, undo completed side effects, or remove persistence from retained storage and upstream systems. Apply the revocation and recovery requirements in [Security and Governance Model](./security-and-governance-model).

## Why This Matters

Microsoft Azure gives enterprises a cloud-native path to host single-user agent workspaces on infrastructure they already operate, with a simple, reference containment posture — the VM is the sandbox, egress is allow-listed, the control plane is secretless, and there is no inbound path or route to corp. The proposed initial profile maps that posture with Azure-native primitives; Phase II then adds in-runtime enforcement at the tool-call boundary (in-box containment / OpenShell, a credential / egress proxy, routed inference, signed policy, TLS inspection), on the same Azure-native footprint.

The result is a practical Azure-native Secure Agent Workspace pattern: ephemeral single-user VMs for isolation, Azure Firewall Premium and NAT Gateway V2 for egress, Workload Identity Federation for secretless provisioning, Microsoft Entra ID and a trusted access broker for access, and Azure Compute Gallery for image governance — with Phase II adding in-runtime enforcement at the tool-call boundary (in-box containment, a credential / egress proxy, routed inference, signed policy, TLS inspection) on the same footprint.