Open Universe07 opened 3 years ago
@Universe07
Azurite (installed with npm) currently can only be stop by send Ctrl+c.
One workaround is using some process manage tools like pm2. On my machine, following command works well to start and stop Azurite:
pm2 start C:\Users\[UserName]\AppData\Roaming\npm\node_modules\azurite\dist\src\azurite.js
pm2 stop azurite
BTW, It's better not kill Azurite, since it might cause some data not persist. (However, if you don't care persist data, you can try to kill it.)
If you have it as part of a test run or CI/CD pipeline, you can look in the /tests
folders to see how we start Azurite
server = createTableServerForTestHttps();
await server.start();
and then stop it again.
await server.close();
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Which service(blob, file, queue, table) does this issue concern?
All of four services
Which version of the Azurite was used?
3.14.3
Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)
npm
What's the Node.js version?
v16.13.0
What problem was encountered?
Steps to reproduce the issue?
If possible, please provide the debug log using the -d parameter, replacing \<pathtodebuglog> with an appropriate path for your OS, or review the instructions for docker containers:
I'd like to clarify my intention. Currently, we are migrating from Azure Storage Emulator to Azurite Emulator. Before, on Azure Storage Emulator, it has several options for command-line.
Command-line syntax
AzureStorageEmulator.exe [start] [stop] [status] [clear] [init] [help]
I was wondering is there any option for npm Azurite like "azurite close" to stop it from working.
Thanks in advance for your help.
Please be sure to remove any PII or sensitive information before sharing!
The debug log will log raw request headers and bodies, so that we can replay these against Azurite using REST and create tests to validate resolution.
Have you found a mitigation/solution?