Open satyakrish opened 1 year ago
Realize this is a stale issue but confirming its still occurring in v4.
The behavior is because if any value is set for the encryption block or public network access is disabled the API marks the resource as high business impact. Next plan resource has it set to true and the HCL has it set to false or null, change detected and resource replaces.
The provider should ignore changes to high_business_impact if encryption block has a value or public_network_access_enabled is set to false.
Issue workaround is currently setting high_business_impact to true or setting a lifecycle ignore on high_business_impact
Is there an existing issue for this?
Community Note
Terraform Version
1.0.5
AzureRM Provider Version
3.34
Affected Resource(s)/Data Source(s)
azurerm_machine_learning_workspace
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
high_business_impact when set to false or null should stay false.
Actual Behaviour
high_business_impact when set to false -> terraform apply completes successfully. But subsequent terraform plan changes changes it from false to true again.
same happens when its value is set to null.
so high_business_impact=true seems to be the only working case now.
Steps to Reproduce
Important Factoids
none
References
none