You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docker image name, tag and registry url should have remained intact with ignore_changes setup:
Actual Behaviour
image name is set to https
imagetag gets the registry url prefixed to original image name like "//someacr.azureact.io/repo/image"
Steps to Reproduce
For this case no actual docker image needs to be present!
terraform apply
change anything in your function app (comment/uncomment the app setting block to trigger a change)
terraform apply again
Go to Azure Portal and check in deployment center that image name and image tag got changed in wrong way.
Also noticed that, when we don't ignore changes to docker properties, and we edit in Azure Portal, Terraform reports that there was a change, e.g.:
In terraform we set registry url without https
We go to Azure Portal and update a tag
Run terraform plan and registry_url shows a drift, reads https:// and when applying will remove it
Same happens for image name, we set it without registry url prefix, and after a change in portal, terraform reports it as having registry url as part for image name.
@james-bjss might provide more info on code analysis we did to azurerm provider.
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered:
pacorreia
changed the title
Duplicate login server in image name when doing an update
Bug: Duplicate registry server url in image name when doing an update
Aug 11, 2022
@dcd000 part of yes, but I've noticed another thing as described in this issue:
Also noticed that, when we don't ignore changes to docker properties, and we edit in Azure Portal, Terraform reports that there was a change, e.g.:
In terraform we set registry url without https
We go to Azure Portal and update a tag
Run terraform plan and registry_url shows a drift, reads https:// and when applying will remove it
Same happens for image name, we set it without registry url prefix, and after a change in portal, terraform reports it as having registry url as part for image name.
I don't get it why this issue was not being monitored and related as well
I think that as of version v3.42 registry_url must use https because it is directly used to populate the DOCKER_REGISTRY_SERVER_URL app setting and this must include the protocol
Try with registry_url = https://azurerm_container_registry.acr.login_server
Is there an existing issue for this?
Community Note
Terraform Version
1.2.6
AzureRM Provider Version
3.17.0
Affected Resource(s)/Data Source(s)
azurerm_linux_function_app
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
The docker image name, tag and registry url should have remained intact with ignore_changes setup:
Actual Behaviour
image name is set to https
imagetag gets the registry url prefixed to original image name like "//someacr.azureact.io/repo/image"
Steps to Reproduce
For this case no actual docker image needs to be present!
Also noticed that, when we don't ignore changes to docker properties, and we edit in Azure Portal, Terraform reports that there was a change, e.g.:
@james-bjss might provide more info on code analysis we did to azurerm provider.
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: