Skip to content

Commit

Permalink
chore: Do not remove resources connectionstring from pr keyvault
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathanio123 committed Nov 7, 2024
1 parent ba60cda commit 5d8b4e3
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions pipelines/environment-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5d8b4e3

Please sign in to comment.