Azure SDK not available on Hosted VS2017 VSTS Build Agent?

≯℡__Kan透↙ 提交于 2019-12-06 01:52:05

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

Check the related thread: Failed to start AzureStorageEmulator on VSTS Hosted VS2017 Agent

I've been running the Azure Storage Emulator on a VS2017 hosted build agent for a long time now.

The trick is to initialise SQL LocalDB first (the emulator uses it), and then start the emulator. You can do this with a command line task that runs:

sqllocaldb create MSSQLLocalDB
sqllocaldb start MSSQLLocalDB
sqllocaldb info MSSQLLocalDB

"C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe" start
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!