Giter VIP home page Giter VIP logo

Comments (2)

ahmelsayed avatar ahmelsayed commented on July 28, 2024

if you're using the cli, you can create such app on ACA using

properties:
  environmentId: '{Your Env Id}'
  configuration:
    ingress:
      # set `external: true` if you want to be able to access these ports from _outside_ the environment.
      # setting it to `external: false` means this is only available to apps running _inside_ the environment. 
      external: false
      targetPort: 90
      exposedPort: 90
      transport: tcp
      allowInsecure: false
      additionalPortMappings:
        # you can have up to 5 additional port mappings in here
        - external: false
          targetPort: 310
          exposedPort: 310
        - external: false
          targetPort: 456
          exposedPort: 456
  template:
    containers:
      - name: my-app
        image: <image_name>:<version>
    scale:
      minReplicas: 1
      maxReplicas: 1

Then create your app using

az containerapp create \
    --name <app-name>
    --resource-group <resource-group> \
    --yaml /path/to/app.yaml # file with above content.

from azure-container-apps.

dummy-andra avatar dummy-andra commented on July 28, 2024

Great, I will try. I thought is only implemented for ARM/Bicep with api-version=2023-05-02-preview.

If I create the ACA from portal the api is 2022 and I can not update it after.

I tried to patch the existing ACA using a json config with no luck.

Updating an existing container ACA to expose multiple ports failed.

I will try the method you provided to create an ACA with multiple ports and also update the existing one.

Using Bicep with the latest version was with success.

I will test via CLI too and circle back.

Thanks 😊

from azure-container-apps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.