Help needed regarding setting up application on Azure Container application (ACA)

Siddhartha Chandra 0 Reputation points
2025-07-25T04:43:22.3466667+00:00

We have an application that is running as an azure container application and listens in on tcp://0.0.0.0:3000 (on the host where it is deployed), and allows access via the configured ingress over target port 3000. Although, we have confirmed that the application is running fine, and that the ingress endpoint can also be accessed, when we try to access the application it doesn’t pass the request. Doing a curl on the the ingress-endpoint that maps (with target port as 3000) returns no result and the logstream also does not show activity apart from that the services are listening on the designated ports curl -X POST "https://<HOSTNAME>/submissions?base64_encoded=false&wait=true" \ -H "Content-Type: application/json" \ -H "X-Judge0-Token: (Your auth token)" \ -d '{ "language_id": 71, "source_code": "print(" Azure Judge0 is working!")" Expected Reply: { "stdout": " Azure Judge0 is working!\n", "time": "0.001", "memory": 3840, "stderr": null, "token": "abcdef-12345...", // token returned if wait=false "compile_output": null, "message": null, "status": { "id": 3, "description": "Accepted" } } Received Reply: (none)

Please find the original post here:
https://www.reddit.com/r/MSFTAzureSupport/comments/1m7jqb2/help_needed_with_regards_to_setting_up/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
{count} votes

1 answer

Sort by: Most helpful
  1. Anurag Rohikar 285 Reputation points Microsoft External Staff Moderator
    2025-08-08T09:56:10.8266667+00:00

    Hello Siddhartha Chandra, Thanks for reaching out on Microsoft Q&A and really appreciate your patience while we looked into this.
    Based on the common pitfalls with ACA, the most likely solution involves correcting a misconfiguration in the ingress and application port settings.

    1. Use HTTP Transport: Ensure that the ingress transport protocol is set to HTTP and not TCP, as the curl command is sending an HTTP POST request.
    2. Match the Target Port: Confirm that the ingress target port (3000) exactly matches the port that your application is listening on inside the container.
    3. Use EXPOSE in the Dockerfile: The EXPOSE instruction in your Dockerfile acts as documentation and helps the platform identify the container's listening port. Add EXPOSE 3000 to your Dockerfile.
    4. Listen on Environment Variable: A best practice is to configure your application to listen on a port provided by an environment variable (e.g., $PORT) instead of hardcoding 3000. This provides greater flexibility and is how many platforms, including ACA, manage container port assignments.

    A corrected configuration would look something like this:

    • Azure Container App Ingress Settings:
      • Ingress Enabled: Yes
      • Ingress Type: External
      • Target Port: 3000
      • Transport: HTTP
    • Dockerfile:
    EXPOSE 3000
    CMD ["your-app-start-command", "--port", "3000"]
    

    Related Official Documentation:

    If the above steps resolve the issue, that’s great! If not, please help us with the following details so we can investigate further:

    1. Ingress Type & Transport – Is the ingress set to External or Internal? Is the transport protocol set to HTTP or TCP? (For REST APIs like Judge0, it should be HTTP.)
    2. Container Port Mapping – Does your Dockerfile explicitly expose port 3000 (EXPOSE 3000)? Is this same port set as the Target Port in ACA?
    3. Health Probes – Are readiness and liveness probes configured? Are they passing? Failed probes can prevent traffic routing.
    4. Application’s Listening Port – Is the application listening on a hardcoded port (3000) or dynamically using the $PORT environment variable?
    5. ACA Logs – Have you checked ACA system logs and Revision details for any ingress or startup errors?
    6. Networking Setup – Is your ACA running inside a VNet with NSG/firewall rules that may be blocking inbound traffic?

    Happy to assist you further once we have this information. Thanks again for your patience and for working with us on this!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.