简体   繁体   English

PowerShell Azure存储模拟器

[英]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. 我正在尝试编写PowerShell脚本来启动开发环境所需的所有服务,并且正在努力寻找启动Azure存储模拟器的方法。 All I need is a way to start the service but everything i've read online isn't doing the trick. 我所需要的只是一种启动服务的方式,但是我在网上阅读的所有内容都无法解决问题。

Thanks in advance. 提前致谢。

When you manually launch the azure storage emulator, you can find this command line: AzureStorageEmulator.exe start , screenshot as below: 手动启动azure存储模拟器时,可以找到以下命令行: AzureStorageEmulator.exe start ,屏幕截图如下: 在此处输入图片说明

so in your powershell script, you can just run this cmd command line: 因此,在您的Powershell脚本中,您只需运行以下cmd命令行即可:

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

Then the service starts, screenshot as below: 然后该服务启动,截图如下: 在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM