From 35fefe50029f83e5f4793e94922b3849d6a5ac6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janne=20Kujanp=C3=A4=C3=A4?= Date: Fri, 16 Jun 2023 19:35:58 +0300 Subject: [PATCH] Rewrite resource-typed parameter list*() access * hint from feature description: https://github.com/Azure/bicep/issues/2246 --- deploy/modules/aci.bicep | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/deploy/modules/aci.bicep b/deploy/modules/aci.bicep index 16567c9..2b2546e 100644 --- a/deploy/modules/aci.bicep +++ b/deploy/modules/aci.bicep @@ -113,7 +113,8 @@ var containers = [ environmentVariables: [ { name: 'AUTH_KEY' - secureValue: ir.listAuthKeys().authKey1 + //secureValue: ir.listAuthKeys().authKey1 + secureValue: listAuthKeys(ir.id, ir.apiVersion).authKey1 } { name: 'NODE_NAME' @@ -161,8 +162,10 @@ var containers = [ var imageRegistryCredentials = [ { server: acr.properties.loginServer - username: acr.listCredentials().username - password: acr.listCredentials().passwords[0].value + //username: acr.listCredentials().username + username: listCredentials(acr.id, acr.apiVersion).username + //password: acr.listCredentials().passwords[0].value + password: listCredentials(acr.id, acr.apiVersion).passwords[0].value } ]