Why running exe from Azure kudu portal only working once?

Aditya Dongre 20 Reputation points
2023-09-27T10:09:55.29+00:00

I am running an exe from kudu portal directly from path 'C:\home\site\wwwroot\abc.exe'. This exe is working fine the first time. But If I go to 'kudu->Process Explorer', and kill the process created by this exe, I am not able to rerun the same exe again.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,755 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ryan Hill 28,106 Reputation points Microsoft Employee
    2023-09-27T21:38:08.48+00:00

    Hi @Aditya Dongre

    Have a look at Definition of the sandbox for Windows Web Apps. If you're killing the parent process, you're killing the app's main web process. This process is used to spawn the lifetime of the app.

    I wouldn't advise continuing killing the main process unless absolutely necessary. I also wouldn't advise running an exe in this manner. You didn't elaborate on the reason for doing this, but if you need to run exe then I would suggest running it as a web job instead.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.