Skip to content

Commit

Permalink
fix(azure): use secret uri instead of host name in app config (#522)
Browse files Browse the repository at this point in the history
Added the hostname directly in app configuration instead of using the
secret URI
  • Loading branch information
arealmaas authored Mar 6, 2024
1 parent 2a8fa76 commit 7cafd77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .azure/infrastructure/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}
Expand Down
4 changes: 2 additions & 2 deletions .azure/modules/redis/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -42,4 +42,4 @@ module redisConnectionString '../keyvault/upsertSecret.bicep' = {
}
}

output hostName string = redis.properties.hostName
output hostNameKeyVaultUri string = redisHostName.outputs.secretUri

0 comments on commit 7cafd77

Please sign in to comment.