diff --git a/eng/pipelines/templates/stages/cosmos-sdk-client.yml b/eng/pipelines/templates/stages/cosmos-sdk-client.yml index 1044e754aa0c..08d31687924e 100644 --- a/eng/pipelines/templates/stages/cosmos-sdk-client.yml +++ b/eng/pipelines/templates/stages/cosmos-sdk-client.yml @@ -41,7 +41,7 @@ stages: vmImage: $(OSVmImage) steps: - - template: ../steps/cosmos-emulator.yml + - template: /eng/common/pipelines/templates/steps/cosmos-emulator.yml parameters: EmulatorMsiUrl: ${{ parameters.EmulatorMsiUrl }} StartParameters: ${{ parameters.EmulatorStartParameters }} diff --git a/eng/pipelines/templates/steps/cosmos-emulator.yml b/eng/pipelines/templates/steps/cosmos-emulator.yml deleted file mode 100644 index 564f3e429bd7..000000000000 --- a/eng/pipelines/templates/steps/cosmos-emulator.yml +++ /dev/null @@ -1,16 +0,0 @@ -parameters: - EmulatorMsiUrl: "https://aka.ms/cosmosdb-emulator" - StartParameters: '' - -steps: - - powershell: | - $targetDir = $env:temp - Write-Host "Downloading and extracting Cosmos DB Emulator - ${{ parameters.EmulatorMsiUrl }}" - Write-Host "Target Dir: $targetDir" - msiexec /a ${{ parameters.EmulatorMsiUrl }} TARGETDIR=$targetDir /qn | wait-process - displayName: Download and Extract Public Cosmos DB Emulator - - powershell: | - Write-Host "Launching Cosmos DB Emulator" - Import-Module "$env:temp\Azure Cosmos DB Emulator\PSModules\Microsoft.Azure.CosmosDB.Emulator" - Start-CosmosDbEmulator -NoUI ${{ parameters.StartParameters }} - displayName: Start Cosmos DB Emulator \ No newline at end of file