azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

Support to create Container App Environment in VNET (az containerapp compose create)

Open vienleidl opened this issue 9 months ago • 2 comments

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 image

vienleidl avatar May 07 '24 07:05 vienleidl

Thank you for opening this issue, we will look into it.

yonzhan avatar May 07 '24 07:05 yonzhan

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}

Greedygre avatar May 10 '24 03:05 Greedygre

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}

Thanks for your info! I managed to make it worked by creating the environment before starting the az containerapp compose create command.

vienleidl avatar May 17 '24 06:05 vienleidl