azure-dev icon indicating copy to clipboard operation
azure-dev copied to clipboard

azd.exe process hanging around after VS exit

Open mitchdenny opened this issue 1 year ago • 1 comments

This may be a solar flare but I was cleaning up some code on my cloud hosted DevBox and I noticed that azd.exe was running and had a handle open on my source folder:

image

I suspect this process was launched by VS, but VS wasn't running so perhaps it didn't clean itself up. I can't remember interacting with the VS publish features on this devbox though so I'm not entirely sure where it came from.

Filing an issue just in case others have seen it.

mitchdenny avatar Jun 24 '24 21:06 mitchdenny

image

Was definitely launched by VS.

mitchdenny avatar Jun 24 '24 21:06 mitchdenny

@anvillan @abpiskunov can you triage this for anything on VS side? cc @ellismg @weikanglim

rajeshkamal5050 avatar Jul 10 '24 06:07 rajeshkamal5050

@rajeshkamal5050 @mitchdenny

I gave it a try but could not repro: the azd.exe process is always terminated along with VS.

Remember that VS starts the azd vs-server as soon as it detects the current project is an Aspire project. Thus, even if you do not perform and 'Deploy' related tasks, the azd.exe process should be started already.

I tried...

  1. Create Aspire project, add new Environment, Publish
  2. Running the project, stopping it
  3. Intentionally terminating the azd.exe process while VS is running, so we recover it
  4. Closing VS while we are in the middle of a (long running) RefreshEnvironment operation
  5. Terminating (kill process) VS IDE in the middle of a RefreshEnvironment and/or running the project

If you could find a way to repro it consistently, that would help to see if there is any issue

anvillan avatar Jul 11 '24 21:07 anvillan

Let's pencil it in as a solar flare for now.

mitchdenny avatar Jul 21 '24 11:07 mitchdenny