代码之家  ›  专栏  ›  技术社区  ›  Chris Marshall

PowerShell Azure存储模拟器

  •  0
  • Chris Marshall  · 技术社区  · 6 年前

    我正在尝试编写一个PowerShell脚本来启动我的开发环境所需的所有服务,并且正在努力找到启动azure存储模拟器的方法。我所需要的只是一种启动服务的方法,但我在网上读到的一切都不起作用。

    提前谢谢。

    1 回复  |  直到 6 年前
        1
  •  6
  •   Ivan Glasenberg    6 年前

    手动启动azure存储模拟器时,可以找到以下命令行: AzureStorageEmulator.exe start ,截图如下: enter image description here

    因此,在powershell脚本中,只需运行以下cmd命令行:

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

    然后服务启动,截图如下: enter image description here

    推荐文章