Skip to main content

Azure Container Apps Environment deployment - Missing Subnet

ยท 2 min read

When attempting to deploy a Container Apps Environment integrated into a VNET (Virtual Network) that was pre-created, you may have issues selecting a subnet which your Container Apps Environment should be deployed into, as your subnet may not be appearing in the Azure Portal to select.

Container App Environment - Missing subnet

Before we continue, make sure that the subnet address ranges match at least the following:

Workload ProfileMinimum Subnet Size for Virtual Network Integration

If you have a subnet that meets the requirements, you can proceed with trying the following steps.

  1. Delete the Subnet you want to use to deploy your Container Apps environment into it.
  2. Now we need to recreate the subnet using the Azure CLI (you can use the Azure CloudShell) by running the following command (replace the values with your own):
az network vnet subnet create --resource-group RG1  --vnet-name VNET1  --name ACASubnet  --address-prefix ''

After running the command, you should now be able to select the subnet created in the Azure Portal.

Azure Container Apps - ACASubnet

If we look at the differences between a subnet created in the Azure Portal Container Apps Environment experience and one created using the Azure CLI, we can see that there are differences:

Subnet - Diff


"properties": {
"addressPrefix": ""


"properties": {
"addressPrefixes": [

In the non-working example, the addressPrefixes property is used instead of addressPrefix.

The difference lies in how the address prefix is represented:

  • Working Example: Uses addressPrefix as a single-string property.
  • Non-working Example: Uses addressPrefixes as an array with one element

๐Ÿ“– References: