PowerShell Azure Storage emulator

579 Views Asked by At

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.

1

There are 1 best solutions below

0
On BEST ANSWER

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