Visual Studio 2022 > Connected Services > Storage Azurite emulator (Local)
On most searches I've read that Azurite is a Node.js process which can only be stopped from cmd.exe via ctrl-c or closing cmd.exe window ( or obviously restarting OS ).
On project startup VS will start Azurite process but without a cmd.exe window.
Azurite process will live on even after VS is closed.
It's not clear how to stop the Azurite process started by VS.
Also what I find peculiar is this exe :
C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\Extensions\Microsoft\Azure Storage Emulator\azurite.exe
If Azurite is Node.js then what is this ?
As you mentioned already, it is correct that Azurite is a Node.js process which can be stopped with
ctrl-ccmd.exe in cmd window.The
azurite.exefile works as a wrapper for theNode.jsprocess. Visual Studio uses this to launch Azurite with certain configurations and environment variables required for its integration.When Visual Studio is managing
Azurite, it utilizes this wrapper instead of directly executing theNode.jsexecutable.But there are few other approaches to stop the Azurite process completely which are detailed below.
You can use taskkill command to kill the azurite process by providing
process ID(PID) or directlyazurite.exename along with the command. Note: Obtain the process ID from VS Azurite running window. Or executetasklistcommand to get the process related details.taskmanagerby searching in thestartmenu in your pc and search forazurite >> end taskas shown below.storage emulatorunder your application and click ondisconnect. The process will get stopped automatically.References: Blog, taskkill