Skip to content

Can't get Docker Container username and password from ContainersRegistry #3725

Answered by tom-murnane
tom-murnane asked this question in Q&A
Discussion options

You must be logged in to vote

Ok - so it appears the only way I could get this to work is if I created the params in my main.bicep and pass in the parameters to my deployWebsite.bicep. I know in my original question and follow up I had the wrong value for DOCKER_REGISTRY_SERVER_URL, I had it as 'acr.properties.loginServer', that needed to be 'https://${acr.properties.loginServer}' but I tried that too, and even if I only hardcoded the url, still got invalid access

// main.bicep

resource acr 'Microsoft.ContainerRegistry/registries@2021-06-01-preview' existing = {
  name: containerRegistryName
  scope: resourceGroup(containerResourceGroup)
}

module sd 'DeployWebSite.bicep' = [for image in DockerImages: {
  name: '${im…

Replies: 6 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@tom-murnane
Comment options

Comment options

You must be logged in to vote
1 reply
@brwilkinson
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by tom-murnane
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@tom-murnane
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants