Hi @Ayush Verma like Hossein mentioned above, it will be hard to find the specific cause of this issue without more information from your container logs.
The error message suggests looking at the container logs for debugging clues. Access the container logs using Azure Portal or Azure CLI commands like az container logs --name add-product-appa2_0_197c3c4b
. The logs might reveal specific errors preventing your application from starting. Look for exceptions, startup failures, or missing dependencies.
since you've already tried setting environment variables to expose port 8080, I recommend making sure the environment variable name (e.g., WEBSITES_PORT
or PORT
) matches what your application expects.
also, what is your start command? If you’re using a start command like pm2 start server.js
, try changing it to node server.js.
Best,
Grace