unable to access my webapp

Rohan Panda 1 Reputation point
2020-09-14T15:11:43.03+00:00

i have created a node app using azure web app and deployed it but im unable to access it
i can see deployment logs that deployment is success that npm install and build are working fine.
i can see from the kudu logs that npm start is working fine. it says application is running successfully.
since my app is running on port 3000, i have created a WEBSITES_PORT key in application settings and set is value as 3000.

but im still unable to access my app

im getting "Application error - If you are the application administrator, you can access the diagnostic resources."

Also when i git clone my app inside a VM and open the port 3000 using the internal firewall and open the port in inbound rules its working fine.

can someone help me please

Azure Web Apps
Azure Web Apps
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,320 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ajkuma 13,456 Reputation points Microsoft Employee
    2020-09-15T06:25:41.13+00:00

    @Rohan Panda , Thanks for posting this good question and closing the thread by sharing the solution that worked for you.

    To benefit the community, I have re-opened the thread to share the solution you posted "I added a key called PORT in application setting and set it to value 3000 and the app is now working".

    Just adding this document: Yes, the recommendation is to use app setting WEBSITES_PORT to set the port for your own docker image while for blessed images use PORT environment variable as the listening port.

    -------------------------------------------------------------------------------------------------------------------------------------------------

    Please do mark the post which was helpful by clicking on ‘Accept Answer’ & ‘Up-Vote’ to help the community find the right answers.

    No comments