Azure Web App (Linux): “Error: Container didn't respond to HTTP pings on port: 8080” - when using: “start”: “pm2 start server.js”

Solution 1:

Try adding the application setting PORT with the value of whatever port your app is listening on.

Ref: https://github.com/MicrosoftDocs/azure-docs/issues/34451