question

pragadeeshraju-2799 avatar image
0 Votes"
pragadeeshraju-2799 asked ryanchill answered

Nodejs application status on azure webapp for monitoring

Hello All,


I am running my nodejs application on webapp service. I have an agent to monitor the application health and status. In that application status is checked by WMIC and other status by API.
WMIC -- WMIC PROCESS get Caption,Commandline,Processid (where i can monitor something like this -- node.exe "D:\Program Files\iisnode\interceptor.js" "D:\home\site\wwwroot\run.js")


right now, I have few questions about it.


1) I couldn't run WMIC command in webapp as it is a sandbox. Is there any workaround for it to run WMIC. or any other way to monitor the process.


2) can i use the agent outside to webapp to check the other activity health by the API.


let me know any suggestions/solutions to overcome this. Thanks.


cc @brtrach-MSFT


azure-webappsazure-webapps-developmentazure-webapps-security
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ryanchill avatar image
0 Votes"
ryanchill answered

Hi @pragadeeshraju-2799,


I'm not sure if you've explored Heath Check which is still in preview, but I would look at that. You can create an alert that will trigger should the health check count not meet expectations.


As you are already aware, WMIC can't be accessed from the sanbox. One workaround you could do would be to host your app in a docker container. If you got that, make sure you use one of the cached images to avoid container start time timeouts.


  • I'm not aware of any 3rd party agents off hand, but you can easily create a service application that pings your app service and reports however you want/need it to. I will say though that Azure Monitor is quite comprehensive should you want to review 1st party service.



  • 5 |1600 characters needed characters left characters exceeded

    Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.