An Azure service that provides a general-purpose, serverless container platform.
There is no documented Container Apps job setting or workload-profile option that enables unprivileged user namespaces; move the untrusted command execution to Azure Container Apps Dynamic Sessions—preferably a custom container session pool when the existing image and dependencies must be retained.
What can be concluded about the regression
Your old and current images now failing identically is strong evidence against an image-specific regression, but it does not identify which host control changed. The same bwrap message can result from multiple Linux controls, including a user-namespace limit, seccomp blocking unshare, or another host policy. Upstream bubblewrap uses this generic error for namespace restrictions ^1^.
No public Microsoft notice currently confirms that Container Apps Consumption hosts changed user.max_user_namespaces, AppArmor, or seccomp around November 20, 2026. The November Container Apps extension notes include job ownership hardening and other runtime changes, but do not list a user-namespace change ^2^.
A recent MXC issue separately documents the same important behavior: software can detect bwrap as installed even though the hosting platform does not permit it to create namespaces ^3^. That supports treating successful binary detection as insufficient, but it does not establish the Container Apps host change.
No supported namespace-enablement control
Container Apps does not permit privileged containers with host-level access ^4^. The published Container Apps job schema exposes containers, init containers, volumes, and workload-profile selection, but not sysctls, seccomp profiles, AppArmor profiles, hostUsers, or privileged mode ^5^.
Therefore:
- There is no documented per-job switch to allow
CLONE_NEWUSERor setuser.max_user_namespaces. - Changing from Consumption to Dedicated is not a documented fix. Dedicated provides reserved compute resources; it does not document customer control over host namespace or security policies ^6^.
- A different Container Apps environment type likewise does not expose these kernel controls.
- Adding
CAP_SYS_ADMINor running as root would not be a supported workaround for the absence of privileged host access.
AKS has explicit security-context and node-level configuration surfaces, but those AKS capabilities should not be inferred to exist in managed Container Apps. For example, AKS documentation explains that seccomp can block unshare and that user namespaces have specific node OS and Kubernetes prerequisites ^7^.
Recommended replacement for bwrap
For short-lived, untrusted shell commands:
- Create a Dynamic Sessions session pool in East US 2, which is listed as supported.
- Choose:
- Code interpreter sessions when their built-in runtimes are sufficient.
- Custom container sessions when you need your Debian image, shell tools, or other custom dependencies.
- Submit each untrusted execution under a separate session identifier.
- Apply network controls appropriate to the command.
- Allow the session to expire after its cooldown period, or stop it explicitly when execution finishes.
Dynamic Sessions provide Hyper-V isolation, isolate sessions from one another and from the host, and automatically deprovision ephemeral environments ^8^. Custom container sessions run your supplied image in its own Hyper-V sandbox and are specifically documented for user-provided code, cloud shells, and hostile multitenant scenarios ^9^.
This removes the need to construct another sandbox with bwrap inside an ordinary job container. Microsoft’s Container Apps architecture guidance also recommends Sandboxes for isolated environments with state or explicit lifecycle control, and Dynamic Sessions for managed ephemeral execution ^10^.
Escalating the apparent platform regression
Because the same immutable image previously succeeded and now fails, open an Azure support request for Container Apps → Jobs / Runtime, including:
- Subscription, environment, job, region, and execution IDs.
- UTC timestamps of the last known successful and first failed executions.
- Image digest—not only its tag—for both tests.
- The exact
bwrapcommand and stderr. - Confirmation that both manual executions used the same job definition.
- A request for the service team to check host rollout history and effective user-namespace/seccomp policy for those replicas.
Only the Container Apps service team can confirm the effective host sysctl and security profile, because those host controls are not exposed through the job configuration surface.
References
- bwrap: No permissions to creating new namespace · Issue #324 · containers/bubblewrap
- Azure Container Apps extension release notes
- [Bubblewrap] platform_support () reports bubblewrap available where bwrap cannot create namespaces, and run () returns bwrap's failure as the workload's exit code · Issue #1494 · microsoft/mxc
- Containers in Azure Container Apps
- Microsoft.App jobs 2026-07-01 (deployment-language-terraform)
- Workload profiles in Azure Container Apps
- Secure container access to resources for Azure Kubernetes Service (AKS) workloads using built-in Linux security features (apparmor)
- Dynamic sessions in Azure Container Apps
- Azure Container Apps custom container sessions
- Architecture best practices for Azure Container Apps