New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
azurerm_cdn_frontdoor_origin_group
- Health probe can't be removed
#19585
Comments
I attempted to fix this myself and wrote a integration test to expose the issue locally - see below for code (add to func TestAccCdnFrontDoorOriginGroup_removeHealthCheck(t *testing.T) {
data := acceptance.BuildTestData(t, "azurerm_cdn_frontdoor_origin_group", "test")
r := CdnFrontDoorOriginGroupResource{}
data.ResourceTest(t, r, []acceptance.TestStep{
{
Config: r.complete(data),
Check: acceptance.ComposeTestCheckFunc(
check.That(data.ResourceName).ExistsInAzure(r),
),
},
data.ImportStep(),
{
Config: r.noHealthProbe(data),
Check: acceptance.ComposeTestCheckFunc(
check.That(data.ResourceName).ExistsInAzure(r),
check.That(data.ResourceName).Key("health_probe.0.interval_in_seconds").DoesNotExist(),
check.That(data.ResourceName).Key("health_probe.0.path").DoesNotExist(),
check.That(data.ResourceName).Key("health_probe.0.protocol").DoesNotExist(),
check.That(data.ResourceName).Key("health_probe.0.request_type").DoesNotExist(),
),
},
data.ImportStep(),
})
} func (r CdnFrontDoorOriginGroupResource) noHealthProbe(data acceptance.TestData) string {
template := r.template(data)
return fmt.Sprintf(`
provider "azurerm" {
features {}
}
%s
resource "azurerm_cdn_frontdoor_origin_group" "test" {
name = "acctest-origingroup-%d"
cdn_frontdoor_profile_id = azurerm_cdn_frontdoor_profile.test.id
session_affinity_enabled = true
restore_traffic_time_to_healed_or_new_endpoint_in_minutes = 10
load_balancing {
additional_latency_in_milliseconds = 0
sample_size = 16
successful_samples_required = 3
}
}
`, template, data.RandomInteger)
} |
I am facing the same issue, i had to remove the health probe at azure portal |
azurerm_cdn_frontdoor_origin_group
azurerm_cdn_frontdoor_origin_group
- Health probe can't be removed
@jamesryanuk, thank you for opening this issue. It is an upstream Microsoft issue, where the API was not designed to be SDK friendly. The issues root cause, is that the API explicitly requires that the SDK pass a |
This functionality has been released in v3.40.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
Is there an existing issue for this?
Community Note
Terraform Version
1.3.6
AzureRM Provider Version
3.34.0
Affected Resource(s)/Data Source(s)
azurerm_cdn_frontdoor_origin_group
Terraform Configuration Files
Debug Output/Panic Output
For full debug output please see https://gist.github.com/jamesryanuk/ccfe70a4d0e0fb6380845724e4a20fdd
Expected Behaviour
The health probe should be disabled
Actual Behaviour
terraform apply
is run the output is the sameSteps to Reproduce
azurerm_cdn_frontdoor_profile
andazurerm_cdn_frontdoor_origin_group
using the code abovehealth_probe
blockterraform apply
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: