microsoft / azure-container-apps

Roadmap and issues for Azure Container Apps
MIT License
362 stars 29 forks source link

Additional Port Mappings within Ingress Definition has no effect when using az containerapp update/create #1073

Closed moelliDo closed 7 months ago

moelliDo commented 7 months ago

This issue is a: (mark with an x)

Issue description

When trying to update the ingress definition with additionalPortMappings using the Azure CLI, the changes have no effect on the container app. No additional tcp port mappings are created.

Steps to reproduce

  1. create a app.yaml Deployment file and added additionalPortMappings as shown here and here
    ...
    properties:
    configuration:
    activeRevisionsMode: Single
    ingress:
      allowInsecure: false
      external: false
      targetPort: 8025
      transport: tcp
      additionalPortMappings:
        - external: false
          targetPort: 8125
          exposedPort: 8125
        - external: false
          targetPort: 8224
          exposedPort: 8224
    maxInactiveRevisions: null
    ...
  2. updated containerapp/recreated containerapp using az containerapp update --name "name" --resource-group "rg-name" --yaml app.yaml

Expected behavior Container app should expose additionally added TCP ports

Actual behavior No additional TCP ports are exposed.

Screenshots
image

Additional context

This issue occurred using the azure CLI

anthonychu commented 7 months ago

Can you please ensure you have the latest Azure Container Apps CLI installed? az extension add -n containerapp --upgrade

moelliDo commented 7 months ago

You're right. Upgrading the Azure Container Apps CLI solved the issue for me. Thank you!