Open DzmitrySurovets opened 1 year ago
@DzmitrySurovets A linked sever was created between the two Redis instance, you need remove the linked server before update the tags.
@xuzhang3 Yes, that's right, but I am finding the solution how to update private endpoint tags without removing the linked server. I can update tags on private endpoint with azure cli or with ARM template, but I can't update with terraform.
I experienced the same issue of failing to update the value of a tags in a private-endpoint through terraform.
Is there an existing issue for this?
Community Note
Terraform Version
1.4.0
AzureRM Provider Version
3.47.0
Affected Resource(s)/Data Source(s)
azurerm_private_endpoint
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Tags on private endpoint should be updated.
Actual Behaviour
│ Error: updating Private Endpoint "first-redis-cache-private-endpoint" (Resource Group "first_redis_cache_rg"): network.PrivateEndpointsClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="BadRequest" Message="Call to Microsoft.Cache/redis failed. Error message: This cache is geo replicated and cannot be the target of a private endpoint.\r\nRequestID=83e2bf92-e864-4ef3-b753-67efab282272" Details=[] │ │ with azurerm_private_endpoint.this, │ on main.tf line 61, in resource "azurerm_private_endpoint" "this": │ 61: resource "azurerm_private_endpoint" "this" { │ ╵
Steps to Reproduce
Create "privatelink.documents.azure.com" private dns zone.
Specify following variables: private_dns_zone_id private_endpoint_subnet_id
Run "terraform apply"
Change values in tags variable
Run "terraform apply"
Important Factoids
No response
References
No response