From a7dffd352864d405dde86dd46ead734e92b42ff2 Mon Sep 17 00:00:00 2001 From: Paul Yu Date: Tue, 9 Jul 2024 16:20:28 -0700 Subject: [PATCH] resolve #151 --- azd-hooks/predeploy.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/azd-hooks/predeploy.ps1 b/azd-hooks/predeploy.ps1 index a1faa24d..1a590e31 100644 --- a/azd-hooks/predeploy.ps1 +++ b/azd-hooks/predeploy.ps1 @@ -77,12 +77,10 @@ orderService: # Add Azure Service Bus to order-service if provided if ($env:AZURE_SERVICE_BUS_HOST) { - $queuePassword = az keyvault secret show --name $env:AZURE_SERVICE_BUS_SENDER_KEY --vault-name $env:AZURE_KEY_VAULT_NAME --query value -o tsv @" queueHost: ${env:AZURE_SERVICE_BUS_HOST} "@ | Out-File -Append custom-values.yaml - # If Azure identity does not exists, use the Azure Service Bus credentials if (-not $env:AZURE_IDENTITY_CLIENT_ID -and -not $env:AZURE_IDENTITY_NAME) { $queuePassword = az keyvault secret show --name $env:AZURE_SERVICE_BUS_SENDER_KEY --vault-name $env:AZURE_KEY_VAULT_NAME --query value -o tsv @@ -92,6 +90,7 @@ if ($env:AZURE_SERVICE_BUS_HOST) { queueUsername: ${env:AZURE_SERVICE_BUS_SENDER_NAME} queuePassword: $queuePassword "@ | Out-File -Path custom-values.yaml -Append -Encoding utf8 + } } ###########################################################