azure-cli
azure-cli copied to clipboard
Support to create Container App Environment in VNET (az containerapp compose create)
Related command az containerapp compose create -g resource_group_name --environment environment_name--location region --compose-file-path "./docker-compose.yml" --registry-server registry_name.azurecr.io --registry-username registry_username --registry-password registry_password
Is your feature request related to a problem? Please describe. The created Container App Environment and its Container Apps are not able to communicate with an App Service with enabled Regional VNET Integration on the different subnet.
Describe the solution you'd like It would be great if there is a way to deploy Container Apps to the same regional virtual network with an App Service. So, they can communicate to each others within the same vnet.
Describe alternatives you've considered Using the external ingress (Accepting traffic from anywhere) temporarily.
Additional context
Thank you for opening this issue, we will look into it.
Hi @vienleidl
With az containerapp compose create
the auto created environment(if specified environment does not exit) is not support vnet option, recommend using az containerapp env create
, for example:
az containerapp env create -g {resource_group} -n {env_name} --infrastructure-subnet-resource-id {subnetId}
Hi @vienleidl
With
az containerapp compose create
the auto created environment(if specified environment does not exit) is not support vnet option, recommend usingaz containerapp env create
, for example:az containerapp env create -g {resource_group} -n {env_name} --infrastructure-subnet-resource-id {subnetId}
Thanks for your info! I managed to make it worked by creating the environment before starting the az containerapp compose create command.