Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/70.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用YAML配置文件在VSTS中的VS2017代理中启动Azure Storage Emulator_Azure_Azure Devops_Azure Storage_Azure Pipelines_Azure Pipelines Build Task - Fatal编程技术网

如何使用YAML配置文件在VSTS中的VS2017代理中启动Azure Storage Emulator

如何使用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

在我的azure-pipelines.yml文件中,我有以下任务:

- 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存储帐户。