Search code examples
windowsazurewindows-servicesazure-storage-emulator

Run Azure Storage Emulator as service


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

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


Solution

  • Updated answer after trying out options from Gaurav Mantris answer

    Running the batch file as described by Gaurav Mantri keeps the command window open. Here is a way to avoid that:

    • Open Task Scheduler
    • Create a new task
    • Add the "At log on" trigger
    • Add a "Start a program" action with the following settings:
      • Program/Script: AzureStorageEmulator.exe
      • Add arguments: start
      • Start in: C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator (or wherever the storage emulator resides on your disk)