From cccfdc3b9ce482caddef0c5e3b406504b46a8dc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20J=C3=B8rgen=20Skogstad?= Date: Fri, 20 Sep 2024 13:20:10 +0200 Subject: [PATCH] chore: Fix replace usage in container app bicep (#1168) --- .azure/modules/containerApp/main.bicep | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.azure/modules/containerApp/main.bicep b/.azure/modules/containerApp/main.bicep index 2d21a6142..2ca8313d1 100644 --- a/.azure/modules/containerApp/main.bicep +++ b/.azure/modules/containerApp/main.bicep @@ -29,7 +29,7 @@ param resources object? param revisionSuffix string? // Container app revision name does not allow '.' character -revisionSuffix = revisionSuffix.replace('.', '-') +var cleanedRevisionSuffix = replace(revisionSuffix, '.', '-') var probes = [ { @@ -81,7 +81,7 @@ resource containerApp 'Microsoft.App/containerApps@2024-03-01' = { } environmentId: containerAppEnvId template: { - revisionSuffix: revisionSuffix + revisionSuffix: cleanedRevisionSuffix scale: { minReplicas: 1 maxReplicas: 1 // temp disable scaling for outbox scheduling