From 5d8b4e3b5a53916875b2c54ca02726d8778a21d6 Mon Sep 17 00:00:00 2001 From: Jonathan Idland Olsnes <73334350+Jonathanio123@users.noreply.github.com> Date: Thu, 7 Nov 2024 09:28:48 +0100 Subject: [PATCH] chore: Do not remove resources connectionstring from pr keyvault --- pipelines/environment-pipeline.yml | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/pipelines/environment-pipeline.yml b/pipelines/environment-pipeline.yml index bd8ecaad9..4cf8f1098 100644 --- a/pipelines/environment-pipeline.yml +++ b/pipelines/environment-pipeline.yml @@ -51,19 +51,6 @@ stages: azureSubscription: 'FRA Automation Non-Prod' coreAzureSubscription: 'PROJECT_PORTAL (63b791ae-b2bc-41a1-ac66-806c4e69bffe)' - ## To get the pr slots to talk to the correct databases, we need to kill the key vault secret for connection string. - ## The secret would override the direct env property used to target the correct db. - - task: AzurePowerShell@5 - displayName: 'Remove db connection string secret' - inputs: - azureSubscription: 'PROJECT_PORTAL (63b791ae-b2bc-41a1-ac66-806c4e69bffe)' - ScriptType: InlineScript - FailOnStandardError: true - azurePowerShellVersion: 'LatestVersion' - Inline: | - Write-Host "Deleting secret @ kv-fap-resources-pr/ConnectionStrings--ResourcesDbContext" - Remove-AzKeyVaultSecret -VaultName kv-fap-resources-pr -Name ConnectionStrings--ResourcesDbContext -Force - - stage: DeployQA displayName: QA Azure Infra