Open konopkap opened 1 year ago
You have an error in your code:
username = "data.azurerm_container_registry.acr.admin_username"
Because you quoted this string, you're specifying that the username is literally data.azurerm_container... as opposed to the value of that attribute.
having a similar issue. my code looks very similar. besides the quotes issue - is there any other considerations needed here?
Also getting this error when trying to pull from a gitlab container registry. I've confirmed the username/password are correct by doing a docker login registry.gitlab.com
with the same deploy token and successfully pulling the container image.
For those coming back to this, the issue was that the image must be fully qualified, presumably so azure knows which private registry to connect to. So we just needed a registry.gitlab.com/
on the front of the image
and then it worked!
Is there an existing issue for this?
Community Note
Terraform Version
1.5.2
AzureRM Provider Version
3.64.0
Affected Resource(s)/Data Source(s)
azurerm_container_app
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Container app created with image downloaded from private ACR
Actual Behaviour
Container app is not deployed due to UNATHOURIZED error.
Steps to Reproduce
terraform apply
above configImportant Factoids
No response
References
No response