diff --git a/avm/res/app/container-app/README.md b/avm/res/app/container-app/README.md index 0c844c3c88..5ad671261d 100644 --- a/avm/res/app/container-app/README.md +++ b/avm/res/app/container-app/README.md @@ -239,12 +239,6 @@ module containerApp 'br/public:avm/res/app/container-app:' = { environmentResourceId: '' name: 'acamax001' // Non-required parameters - additionalPortMappings: [ - { - external: true - targetPort: 8080 - } - ] location: '' lock: { kind: 'CanNotDelete' @@ -354,14 +348,6 @@ module containerApp 'br/public:avm/res/app/container-app:' = { "value": "acamax001" }, // Non-required parameters - "additionalPortMappings": { - "value": [ - { - "external": true, - "targetPort": 8080 - } - ] - }, "location": { "value": "" }, @@ -454,6 +440,13 @@ module containerApp 'br/public:avm/res/app/container-app:' = { environmentResourceId: '' name: 'acavnet001' // Non-required parameters + additionalPortMappings: [ + { + exposedPort: 8080 + external: false + targetPort: 8080 + } + ] ingressAllowInsecure: false ingressExternal: false ingressTargetPort: 80 @@ -495,6 +488,15 @@ module containerApp 'br/public:avm/res/app/container-app:' = { "value": "acavnet001" }, // Non-required parameters + "additionalPortMappings": { + "value": [ + { + "exposedPort": 8080, + "external": false, + "targetPort": 8080 + } + ] + }, "ingressAllowInsecure": { "value": false }, diff --git a/avm/res/app/container-app/tests/e2e/max/main.test.bicep b/avm/res/app/container-app/tests/e2e/max/main.test.bicep index 51f14866fa..8c5ac2b4d4 100644 --- a/avm/res/app/container-app/tests/e2e/max/main.test.bicep +++ b/avm/res/app/container-app/tests/e2e/max/main.test.bicep @@ -62,12 +62,6 @@ module testDeployment '../../../main.bicep' = [ 'hidden-title': 'This is visible in the resource name' Env: 'test' } - additionalPortMappings: [ - { - external: true - targetPort: 8080 - } - ] roleAssignments: [ { name: 'e9bac1ee-aebe-4513-9337-49e87a7be05e' diff --git a/avm/res/app/container-app/tests/e2e/vnet/main.test.bicep b/avm/res/app/container-app/tests/e2e/vnet/main.test.bicep index 5a2e4c92e4..3c34893f8c 100644 --- a/avm/res/app/container-app/tests/e2e/vnet/main.test.bicep +++ b/avm/res/app/container-app/tests/e2e/vnet/main.test.bicep @@ -57,6 +57,14 @@ module testDeployment '../../../main.bicep' = [ ingressTransport: 'tcp' ingressAllowInsecure: false ingressTargetPort: 80 + additionalPortMappings: [ + { + external: false + targetPort: 8080 + exposedPort: 8080 + } + ] + containers: [ { name: 'simple-hello-world-container'