File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ resource containerRegistry 'Microsoft.ContainerRegistry/registries@2023-01-01-pr
1717output registryLoginServer string = containerRegistry .properties .loginServer
1818
1919#disable-next-line outputs-should-not-contain-secrets use-resource-symbol-reference
20- output adminUsername string = listCredentials (containerRegistry .id , '2023-01-01-preview' ).username
20+ output adminUsername string = acrAdminUserEnabled ? listCredentials (containerRegistry .id , '2023-01-01-preview' ).username : ''
2121
2222#disable-next-line outputs-should-not-contain-secrets
23- output adminPassword string = listCredentials (containerRegistry .id , '2023-01-01-preview' ).passwords [0 ].value
23+ output adminPassword string = acrAdminUserEnabled ? listCredentials (containerRegistry .id , '2023-01-01-preview' ).passwords [0 ].value : ''
You can’t perform that action at this time.
0 commit comments