Hi Rob,
It seems like there might be a misconfiguration in your container app's deployment settings. Let's try for possible fixes:
- Unhealthy State: The fact that your new revision is showing as "degraded" indicates that something isn't working correctly with the new deployment. This could be due to various reasons such as code errors, missing dependencies, or incorrect configurations.
- Listening on localhost: You mentioned that despite the hosting environment being set to production, the log shows that it is listening on
http://localhost:5000
. This indeed seems unusual for a production environment because typically, a production environment would listen on a public-facing IP address or domain name rather than localhost. so please remove it and put the needed URL here , this could be a fix for it for example , check revision details and change it for prod as per your values - Verify health probes configuration For all health probe types (liveness, readiness, and startup) that use TCP as their transport, verify their port numbers match the ingress target port you configured for your container app.
- Sign in to the Azure portal.
- In the Search bar, enter your container app's name.
- Under Resources, select your container app's name.
- In the navigation bar, expand Application and select Containers.
- In the Containers page, select Health probes.
- Expand Liveness probes, Readiness probes, and Startup probes.
- For each probe, verify the Port value is correct.
- Select Edit and deploy to create a new revision.
- In the Create and deploy new revision page, select the checkbox next to your container image and select Edit.
- In the Edit a container window, select Health probes.
- Expand Liveness probes, Readiness probes, and Startup probes.
- For each probe, edit the Port value as per your value
- Select the Save button.
- In the Create and deploy new revision page, select the Create button. Verify health probes configuration For all health probe types (liveness, readiness, and startup) that use TCP as their transport, verify their port numbers match the ingress target port you configured for your container app.
kindly try all these solutions ,if it works please accept and if not please update us with details