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
╷
│ Error: applying geo replications for Registry (Subscription: "xxxxxxxxxxxxxxxxxxxxxxxx"
│ Resource Group Name: "shared-rg"
│ Registry Name: "myacr"): deleting Replication (Subscription: "xxxxxxxxxxxxxxxxxxxxxxxx"
│ Resource Group Name: "shared-rg"
│ Registry Name: "myacr"
│ Replication Name: "northeurope"): performing Delete: unexpected status 409 with error: ScopeLocked: The scope '/subscriptions/xxxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/shared-rg/providers/Microsoft.ContainerRegistry/registries/myacr/replications/northeurope' cannot perform delete operation because following scope(s) are locked: '/subscriptions/xxxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/shared-rg'. Please remove the lock and try again.
│
│ with azurerm_container_registry.acr,
│ on acr.tf line 1, in resource "azurerm_container_registry""acr":
│ 1: resource "azurerm_container_registry""acr" {
│
╵
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
Deploy ACR with geo-replications as per the shared resource declaration above.
Try to update the resource tag list in both primary and geo-replications. e.g. use the following tag list.
tags = {
"project" = "project-js"
"owner" = "team-js"
}
Deploy changes.
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered:
@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.
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
tags = {
"project" = "project-js"
"owner" = "team-js"
}
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: