Failed to start AzureStorageEmulator on VSTS Hosted VS2017 Agent

允我心安 提交于 2019-12-24 01:07:05

问题


We have .Net project build definition on VSTS and it's using Azure Storage Emulator for running tests. And we want to use Hosted 2017 agents for the build definition.

I saw this question (Azure SDK not available on Hosted VS2017 VSTS Build Agent) and the comment that I can use command "C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe init /server (localdb)\MSSQLLocalDb" to initialize Azure Storage Emulator.

However, when I tried to start Azure Storage Emulator with command "C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe start", it failed with Error: Unable to start the storage emulator.

Is there any way to start Azure Storage Emulator on VSTS Hosted 2017 agent?

Command and Error


回答1:


The VSTS Hosted agent is running as service that you can’t start storage emulator (init is ok).

A related thread: VSO Hosted Build Controller - Is the Azure Storage Emulator supported?

Update:

Based on the test, the Azure Storage Emulator can be started on Hosted VS2017 agent now.



来源:https://stackoverflow.com/questions/46345563/failed-to-start-azurestorageemulator-on-vsts-hosted-vs2017-agent

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!