Clearing Azurite
Steps to clear and reset the Azurite storage on the local machine.
- Shut down Visual Studio
- Delete contents of these folders
- C:\Users\{CurrentUser}\AppData\Local\Temp\Azurite
- C:\Users\{CurrentUser}\AppData\Local\.vstools\azurite
Shortcuts to access the above folders:
- %USERPROFILE%\AppData\Local\Temp\Azurite
- %USERPROFILE%\AppData\Local\.vstools\azurite
If the clearing of the folders doesn’t fix the issue, there may be another process using that same port.
Error message in Visual Studio
Azurite emulator cannot be started because port 10000 is already in use. Another instance of the Azurite emulator or Azure Storage emulator might be already running on your machine.
Use the following command in a command prompt to find other processes using port 10000.
netstat -ano | findstr :10000
The above will output something like the following.
TCP 127.0.0.1:10000 0.0.0.0:0 LISTENING 26428
The last number on the line is the process ID.
Use the following command to kill the process.
taskkill /PID <process id> /F
Example to kill the process:
taskkill /PID 26428 /F