Open johnburns320 opened 1 year ago
The issue also appears when you create a fresh Front Door Premium and you change the session_affinity_enabled parameters.
We have also ran into this issue. Enabling session affinity on an origin removes the health probe without being included in the plan changes. Subsequent plan/apply will show the missing health probe and want to add it back.
it looks like the request to update session affinity is leaving health probe settings null, so azure is removing them. saw this in the debug when we reproduced the issue locally.
Content-Length: 76
Content-Type: application/json; charset=utf-8
X-Ms-Correlation-Request-Id:
Accept-Encoding: gzip
{"properties":{"healthProbeSettings":null,"sessionAffinityState":"Enabled"}}: timestamp
Is there an existing issue for this?
Community Note
Terraform Version
1.4.6
AzureRM Provider Version
v3.60.0
Affected Resource(s)/Data Source(s)
azurerm_cdn_frontdoor_origin_group
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
The origin group health probes should have remained intact.
Actual Behaviour
The origin group health probes were removed.
Steps to Reproduce
Important Factoids
No response
References
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/cdn_frontdoor_origin_group#restore_traffic_time_to_healed_or_new_endpoint_in_minutes