ACA App Shows Running State but Endpoint URL Returns 404 Error

ramprasad.r 40 Reputation points
2025-07-30T13:51:00.3966667+00:00

I have a container image previously deployed to AKS using Azure Container Registry (ACR). I am now deploying the same image to Azure Container Apps (ACA).

The image successfully pulls from ACR.

The Container App deployment shows Running state.

Ingress is enabled with a valid FQDN.

  • But when I click the Endpoint URL, it throws a 404 - Not Found error.
    User's image

I have followed the documentation: https://learn.microsoft.com/en-us/azure/container-apps/rule-based-routing-custom-domain. Please suggest a solution. The same image that was pulled and worked fine in AKS is now deployed in ACA, but it is not accessible at all. The URL under the Ingress section also returns a 404 error.
User's image

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

Accepted answer
  1. Jose Benjamin Solis Nolasco 4,986 Reputation points
    2025-07-30T16:38:03.7+00:00

    @ramprasad.r Hello I hope you are doing well,

    Please check the following items most of the time could be a missed configuration

    1. Container Port Configuration
    • Ensure the container listens on the same target port configured in ACA (default is 80).
    1. Ingress & Routing Rules
    • Verify that routing rules include a path to / or match your app’s endpoints.
    • Add a catch-all rule like /* if needed.
    1. Test Image Locally
    • Run the container locally (docker run -p) and test if / or intended routes respond properly.
    1. Readiness & Startup
    • App might not be ready when traffic arrives. Add readiness probes to delay traffic until it's ready.
    1. Check Logs
    • Use Live Logs in the ACA portal or az containerapp logs show to see if the app is throwing errors or serving 404s internally.
    1. Missing Root Route
      • If your app doesn’t define a route for /, hitting the root URL will result in a 404. Add a default route if needed.

    😊 If my answer helped you resolve your issue, please consider marking it as the correct answer. This helps others in the community find solutions more easily. Thanks!


1 additional answer

Sort by: Most helpful
  1. ramprasad.r 40 Reputation points
    2025-08-04T14:49:30.3533333+00:00

    @Jose Benjamin Solis Nolasco , Yes, the APIs are now exposed and accessible through the Ingress endpoint URLs.User's image

    However, we have configured a custom DNS suffix for our Azure Container Apps environment, which hosts around 20 container apps. We’ve also added a subdomain configuration under the Custom DNS suffix setting for the environment.

    We have correctly created the required DNS records, including both A and TXT records, in our DNS provider’s record set.User's image

    Despite this setup, the custom subdomain (e.g., dev1.******.com) is not resolving or exposing the API endpoints as expected.

    Our goal is to expose the container apps using URLs like:

    https://dev1.******.com/api

    https://dev1.******.com/reports

    https://dev1.******.com/webapp

    However, even after the proper configuration, accessing the subdomain results in a 404 error or the endpoints fail to resolve.
    User's image

    Could you please help us identify what might be missing or misconfigured?

    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.