From 5ea736ec2bef5e0973e8545adee95af6f2de2a29 Mon Sep 17 00:00:00 2001 From: Are Almaas Date: Wed, 6 Mar 2024 11:04:03 +0100 Subject: [PATCH] fix(azure): use secret uri instead of host name in app config --- .azure/infrastructure/main.bicep | 2 +- .azure/modules/redis/main.bicep | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.azure/infrastructure/main.bicep b/.azure/infrastructure/main.bicep index adcab5956..690e2cfa0 100644 --- a/.azure/infrastructure/main.bicep +++ b/.azure/infrastructure/main.bicep @@ -202,7 +202,7 @@ module redisHostNameAppConfig '../modules/appConfiguration/upsertKeyValue.bicep' params: { configStoreName: appConfiguration.outputs.name key: 'Infrastructure:RedisHostName' - value: redis.outputs.hostName + value: redis.outputs.hostNameKeyVaultUri keyValueType: 'keyVaultReference' } } diff --git a/.azure/modules/redis/main.bicep b/.azure/modules/redis/main.bicep index 1979abf7d..0074a9636 100644 --- a/.azure/modules/redis/main.bicep +++ b/.azure/modules/redis/main.bicep @@ -32,7 +32,7 @@ resource redis 'Microsoft.Cache/Redis@2023-08-01' = { } } -module redisConnectionString '../keyvault/upsertSecret.bicep' = { +module redisHostName '../keyvault/upsertSecret.bicep' = { name: 'redisHostName' params: { destKeyVaultName: environmentKeyVaultName @@ -42,4 +42,4 @@ module redisConnectionString '../keyvault/upsertSecret.bicep' = { } } -output hostName string = redis.properties.hostName +output hostNameKeyVaultUri string = redisHostName.outputs.secretUri