Run Azure Storage Emulator as service

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)

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

What you could is create a shortcut of this file in your Startup folder (e.g. C:\Users\<your user name>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup). Then when you login back again, the storage emulator will start automatically. [Please see instructions here: http://www.tech-recipes.com/rx/28206/windows-8-how-to-add-applications-startup-folder/].

Other alternative is to create a new task that runs this batch file and schedule that task to run when computer starts. Please see this thread for more details: Run Batch File On Start-up.