azurevisual-studio-2017azure-devopsbuild-agent

Failed to start AzureStorageEmulator on VSTS Hosted VS2017 Agent


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


Solution

  • It is now possible.

    See the other answer:

    https://stackoverflow.com/a/51726177/1830814

    Some more info here:

    https://developercommunity.visualstudio.com/content/problem/238481/hosted-visual-studio-2017-errorno-available-sql-in.html#