Run Azure Storage Emulator as a service

We use Azure Storage Emulator on development machines and the CI server to be able to use storage queues locally. Now every time I exit Windows or reboot, I need to start the storage emulator manually.

Is there a way to run the Azure storage emulator as a service so that it starts automatically when Windows does?

+10
source share
3 answers

Updated response after checking Gaurav Mantris response parameters

Running the batch file described by Gaurar Mantry opens a command prompt window. Here is a way to avoid this:

  • Open Task Scheduler
  • Create new task
  • Add a "Log In" trigger
  • Add the "Start program" action with the following settings:
    • Program / Script: AzureStorageEmulator.exe
    • Add Arguments: start
    • Start with: C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator (or where the storage emulator is stored on your disk)
+15
source

Storage emulator files can be found in C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator . I noticed a batch file called StartStorageEmulator.cmd .

That you can create a shortcut for this file in the Startup folder (for example, C:\Users\<your user name>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup ). Then, when you log in again, the storage emulator will start automatically. [Cm. Instructions here: http://www.tech-recipes.com/rx/28206/windows-8-how-to-add-applications-startup-folder/] .

Another alternative is to create a new task that launches this batch file, and plan to run this task when the computer starts. See this topic for more details: Run batch file at startup .

+5
source

One option for starting any non-maintenance process, such as a console application, as a service is to use the non-suction service manager as the host. (Historically, you could use SRVANY.EXE from the Windows NT Resource Kit.)

Using NSSM is as simple as:

 > choco install nssm -y > nssm install AzureStorageEmulator "C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe" start -inprocess 
0
source

All Articles