如何使用YAML配置文件在VSTS中的VS2017代理中启动Azure Storage Emulator
在我的azure-pipelines.yml文件中,我有以下任务:如何使用YAML配置文件在VSTS中的VS2017代理中启动Azure Storage Emulator,azure,azure-devops,azure-storage,azure-pipelines,azure-pipelines-build-task,Azure,Azure Devops,Azure Storage,Azure Pipelines,Azure Pipelines Build Task,在我的azure-pipelines.yml文件中,我有以下任务: - task: VSTest@2 inputs: platform: '$(buildPlatform)' configuration: '$(buildConfiguration)' 在我的集成测试中,我同时使用了MSQLLocalDB(似乎工作正常)和AzureStorageEmulator(没有) 我想试试 如何添加这些命令: sqllocaldb create MSSQLLocalDB sqlloc
- task: VSTest@2
inputs:
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
在我的集成测试中,我同时使用了MSQLLocalDB(似乎工作正常)和AzureStorageEmulator(没有)
我想试试
如何添加这些命令:
sqllocaldb create MSSQLLocalDB
sqllocaldb start MSSQLLocalDB
sqllocaldb info MSSQLLocalDB
"C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe" start
要在测试任务之前运行,要在测试开始之前运行Azure Storage Emulator实例?请尝试以下操作:
- script: '"C:\Program Files\Microsoft SQL Server\130\Tools\Binn\SqlLocalDB.exe" create "v13.0" 13.0 -s'
displayName: 'Init Test Db'
- script: '"C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe" start'
displayName: 'Start Storage Emulator'
需要执行
vs2017-win2016
vmImage。将脚本放入powershell
脚本任务中,然后尝试以某种方式修复此问题?我也有同样的问题:(不能。我必须使用一个真正的azure存储帐户。