From 30099679d4874494343c5cc2dea906628a9e2217 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Boll Date: Fri, 13 Dec 2024 11:33:33 +0100 Subject: [PATCH] Fix environment variable --- dev-infrastructure/templates/image-sync.bicep | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dev-infrastructure/templates/image-sync.bicep b/dev-infrastructure/templates/image-sync.bicep index 1e4eef757..77cbb8603 100644 --- a/dev-infrastructure/templates/image-sync.bicep +++ b/dev-infrastructure/templates/image-sync.bicep @@ -68,6 +68,10 @@ var secretWithFolderPrefix = [ } ] +var secretVar = { + secrets: secretWithFolderPrefix +} + // // Container App Infra // @@ -234,7 +238,7 @@ resource componentSyncJob 'Microsoft.App/jobs@2024-03-01' = if (componentSyncEna { name: 'TENANT_ID', value: tenant().tenantId } { name: 'DOCKER_CONFIG', value: '/auth' } { name: 'MANAGED_IDENTITY_CLIENT_ID', value: uami.properties.clientId } - { name: 'SECRETS', value: string(secretWithFolderPrefix) } + { name: 'SECRETS', value: string(secretVar) } ] } ]