Azure Support Case — Container Apps Environment stuck in "Failed" provisioning state

Iryna Pytlovana 0 Reputation points
2026-08-16T14:28:00.2733333+00:00

Summary

Our Azure Container Apps Managed Environment is stuck in provisioningState: "Failed", blocking all new deployments (container image updates) to every Container App running in it. The application itself continues serving traffic normally — this only blocks control-plane operations (deployments), not the data plane.

Resource details

  • Resource: Container Apps Managed Environment
  • Environment type: Consumption-only (no workload profiles)
  • Created: 2026-01-15

What happened

  1. The environment's infrastructure subnet (snet-aca) had a delegation to Microsoft.App/environments configured since the environment's original creation in January 2026 (via Terraform).
  2. Today, running az containerapp env update (a routine reconcile operation) surfaced an error that had apparently never been triggered before:
   (ManagedEnvironmentV1SubnetDelegationNotAllowed) The subnet for consumption-only 
   environment must not have delegations. Please remove the delegation 
   'Microsoft.App/environments' from the subnet and retry the environment creation.
  1. We removed the delegation from the subnet (az network vnet subnet update --remove delegations). The az containerapp env update reconcile then completed without that specific error — but provisioningState remained "Failed" across three subsequent reconcile attempts, with no further error detail exposed in the resource body or via CLI.
  2. We subsequently re-added the delegation, but this did not change the Failed state either way — it was already stuck before and after.

Current state

  • provisioningState: "Failed" (confirmed via az containerapp env show)
  • Subnet currently has the delegation re-added (back to original January 2026 configuration)
  • No delegation-related error is currently returned by reconcile attempts
  • No NAT Gateway is currently attached to this VNet/subnet (confirmed via az network nat gateway list — empty)
  • Data plane confirmed healthy throughout: frontend and backend_api both serving HTTP 200 on health checks
  • All az containerapp update (image deployment) calls fail with:
  (ManagedEnvironmentNotProvisioned) The environment '.../managedEnvironments/environment-sayhub-dev' 
  has not been provisioned successfully.

What we suspect

Based on documented patterns for this error class (Azure/AKS GitHub issues referencing "orphaned service association link"), we suspect the subnet delegation removal did not fully clear an internal service association link tracked separately from the visible delegation object, leaving the environment's provisioning state unable to reconcile to Succeeded even after the configuration was corrected.

What we're asking for

Please investigate and clear whatever internal state is preventing environment-*****-dev from reconciling to provisioningState: "Succeeded". We are not able to diagnose or fix this further from the client side — CLI/ARM calls return no additional error detail beyond "Failed".

Impact

  • Severity: Moderate (not production-down) — this is our dev environment, application traffic is unaffected, but all new code deployments to dev are currently blocked, halting the development team's ability to ship and test changes.
Azure Container Apps
Azure Container Apps

An Azure service that provides a general-purpose, serverless container platform.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.