Skip to content

Commit

Permalink
Rewrite resource-typed parameter list*() access
Browse files Browse the repository at this point in the history
* hint from feature description: Azure/bicep#2246
  • Loading branch information
jikuja committed Jun 23, 2023
1 parent 3bb2b12 commit 35fefe5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions deploy/modules/aci.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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
}
]

Expand Down

0 comments on commit 35fefe5

Please sign in to comment.