unable to access my webapp

Rohan Panda 1 Reputation point

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 App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
4,899 questions
0 comments No comments
{count} votes

1 answer

Sort by: Oldest
  1. ajkuma 14,851 Reputation points Microsoft Employee

    @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.

    0 comments No comments