Running Azurite as background process on Azure DevOps
Which service(blob, file, queue, table) does this issue concern?
All
Which version of the Azurite was used?
3.4
Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)
npm
What's the Node.js version?
12.13.0 (https://github.com/actions/virtual-environments/blob/master/images/win/Windows2019-Readme.md)
What problem was encountered?
I want to run Azurite in order to run blob storage unit tests during an Azure DevOps build. There apparently was a command line option of '&' that would run Azurite in the background (https://devkimchi.com/2019/10/16/azure-storage-emulator-on-azure-pipelines/) but this does not appear to work in V3.
Steps to reproduce the issue?
- Create a DevOps build process.
- Add a step to install Azurite through npm
- Add a step to run a Command, such as 'azurite -s -l c:\azurite -d c:\azurite\debug.log;
Result: Build process stays stuck on Command step where Azurite was executed. Desired: Azurite runs in the background so that later build steps can take place.
Have you found a mitigation/solution?
None
Hi @chriswill
Please try azurite & in Linux, or start /B azurite in Windows cmd to start azurite in background
Thanks, that's helpful.
Would be nice to have the info as part of the readme.md
Hi @chriswill
Please try
azurite &in Linux, orstart /B azuritein Windows cmd to start azurite in background worked successfully
I'm sorry, but this is not a solution. If you go Start /B azurite, console still needs to be running, so might as well just have it running in the console. The problem is that nobody wants to have random console windows floating about all the time.
@trailmax I figured out one way how you can achieve it - I added the Azurite to the Local Group Policy Editor as the Logon script. It starts silently without any application in the tray.
Script Name:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Script Parameters:
azurite --location c:\azurite -s