Skip to content

Unable to attach a VNET to Container App environment after the env was created #851

@RajakumaranC

Description

@RajakumaranC

Please provide us with the following information:

This issue is a: (mark with an x)

  • bug report -> please search issues before submitting -- no similar issue found.
  • documentation issue or request
  • regression (a behavior that used to work and stopped in a new release)

Issue description

A clear and concise description of the observed issue.
I have created a container app environment without a VNET then tried to attach a VNET to existing container app environment. However, there are no CLI command nor portal option to do this, so I followed the steps for ARM template and populated the arm template with the VNET configuration with incremental build. Now this ARM template says it successfully deployed however, I still don't see the VNET getting attached to the Container App environment. Please help understand if we can add a VNET to a container App env after it was created without it. and should the arm throw error if it's not allowed.

Steps to reproduce

  1. Create an env either via cli or portal without a VNET.
  2. Create a vent with the required subnet CIDR.
  3. export the template of the ACA env and modify the Infra subnet settings and populate with the Subnet Id.
  4. Deploy the arm template via cli using az deployment group create --resource-group <RGNAME> --template-file .\<file>.json

Expected behavior [What you expected to happen.]
VNET should be attached to the container app environment

Actual behavior [What actually happened.]
ARM template says succeeded but VNET config is not updated in ACA env.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context

Ex. Did this issue occur in the CLI or the Portal?
CLI

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions