Closed sahangunathilaka closed 8 months ago
@sahanruwanga Thank you for submitting this! In your step 3, could you please run terraform plan
and send the plan output here? That shall indicate the reason why the ACR is to be recreated.
@magodo, please see the plan output below. It doesn't tell me that it will recreate the geo-replication.
# azurerm_container_registry.acr will be updated in-place
~ resource "azurerm_container_registry" "acr" {
id = "/subscriptions/xxxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/shared-rg/providers/Microsoft.ContainerRegistry/registries/myacr"
name = "myacr"
~ tags = {
"project" = "project-js"
+ "owner" = "team-js"
}
~ georeplications {
~ tags = {
"project" = "project-js"
+ "owner" = "team-js"
}
}
}
Plan: 0 to add, 1 to change, 0 to destroy.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Is there an existing issue for this?
Community Note
Terraform Version
1.5.7
AzureRM Provider Version
3.6.9.0
Affected Resource(s)/Data Source(s)
azurerm_container_registry
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
It should just update tags in-place in the resources as shown in the Terraform plan. Plan does not say anything about recreating the geo-replication.
Actual Behaviour
Luckily, my geo-replication was not recreated due to the resource lock at the resource group level. As appeared in the error message, it tries to recreate the geo-replication.
Steps to Reproduce
Important Factoids
No response
References
No response