Search code examples
azurepowershellstorageazure-storage-emulator

PowerShell Azure Storage emulator


I'm trying to write a PowerShell script to start all the services I need for my development environment and am struggling to find a way to launch azure storage emulator. All I need is a way to start the service but everything i've read online isn't doing the trick.

Thanks in advance.


Solution

  • When you manually launch the azure storage emulator, you can find this command line: AzureStorageEmulator.exe start , screenshot as below: enter image description here

    so in your powershell script, you can just run this cmd command line:

    cmd /c "C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe" start
    

    Then the service starts, screenshot as below: enter image description here