azure-dev
azure-dev copied to clipboard
azd.exe process hanging around after VS exit
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:
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.
Was definitely launched by VS.
@anvillan @abpiskunov can you triage this for anything on VS side? cc @ellismg @weikanglim
@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...
- Create Aspire project, add new Environment, Publish
- Running the project, stopping it
- Intentionally terminating the
azd.exeprocess while VS is running, so we recover it - Closing VS while we are in the middle of a (long running)
RefreshEnvironmentoperation - Terminating (kill process) VS IDE in the middle of a
RefreshEnvironmentand/or running the project
If you could find a way to repro it consistently, that would help to see if there is any issue
Let's pencil it in as a solar flare for now.