Set the PORT variable first
Azure Portal > Configuration > Application settings > Add a new application setting
PORT = 3000
then Check your app settings also
const port = process.env.PORT || 3000;
app.listen(port, () => {
console.log(`Server listening on port ${port}`);
});
then restart the application