Open donheerschap opened 2 years ago
After some further investigation, de state file itself showed "public_network_access_enabled": null,
for this resource, while other environments which use the exact same configuration already had "public_network_access_enabled": true,
because that's the default, and how the environment in azure actually is configured aswell.
As this was one of our oldest environments I guess that somewhere within updating the databricks workspace resource had correct handling of adding the public_network_access_enabled parameter in previous provider versions in the refresh, while now it just forces it without refreshing what the current sitiuation is.
"public_network_access_enabled": null doe snot work for me. It still shows as
I tried , it works without replacement provider "azurerm" { features { }
version = "<= 2.73.0" }
My issue was using tf12 upgrading from tf11
I've seen this, my scenario is moving from the Azure provider version 2.61.0 to 2.87.0 - public_network_access_enabled wasn't even a valid attribute in version 2.61.0 and my state file doesn't even list the public_network_access_enabled attribute.
As a workaround for existing deployments of databricks, i've used the lifecycle meta-argument, for example
resource "azurerm_databricks_workspace" "databricks" {
...
lifecycle {
ignore_changes = [
public_network_access_enabled
]
}
...
}
Terraform forces a replacement starting from Azure provider version 2.82.0. In version 2.81.0 all is fine but when I try to update to version 2.82.0 I see this issue.
This still happens for me on a newly (manually) deployed Azure Databricks workspace with Terraform v1.3.0
and azurerm v3.0.0
. I had imported the resource into tf and terraform plan
produces the same behavior for following attribute settings:
public_network_access_enabled = null
public_network_access_enabled = true
public_network_access_enabled = false
public_network_access_enabled
out of configSo does that mean that the import is not properly importing the attribute? The state file after import showed "public_network_access_enabled": ""
.
Community Note
Terraform (and AzureRM Provider) Version
terraform 1.0.10 azurerm 2.94.0
Affected Resource(s)
azurerm_databricks_workspace
Terraform Configuration Files
Debug Output
Expected Behaviour
The resource "azurerm_databricks_workspace" should not be in the plan at all, as nothing changed
Actual Behaviour
It forces a replacement to set a non-existent variable in the configuration to a default which already should be true.
Steps to Reproduce
terraform plan
Other scenarios:
Important Factoids
References
0000