Open Wiston999 opened 8 months ago
hey @Wiston999
Taking a look through here this looks to be a bug in the null
provider rather than something the Azure provider can resolve, since it should be highlighting that the triggers
value has changes which affect downstream resources. As such I'm going to transfer this issue to the hashicorp/terraform
repository, where someone from that the Terraform Core team (who maintain that Provider) should be able to take a look.
Thanks!
Hello @tombuildsstuff .
I've been reviewing this issue in-depth. It turns out that I used null_resource
as a simple way to demonstrate that null_resource
detects the change in var.virtual_network_subnet_ids
but azurerm_storage_account
doesn't detect the change until a second apply is performed. Please do note that both null_resource
and azurerm_storage_account
use the same variable and that azurerm_storage_account
is not a downstream resource of null_resource
.
So I don't think this is a bug in null
provider but in azurerm
provider.
Is there an existing issue for this?
Community Note
Terraform Version
1.5.7
AzureRM Provider Version
v3.89.0
Affected Resource(s)/Data Source(s)
azurerm_storage_account
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
When variable for
azurerm_storage_account.network_rules.virtual_network_subnet_ids
changes,terraform plan
andterraform apply
should detect the changeActual Behaviour
The change for
azurerm_storage_account.network_rules.virtual_network_subnet_ids
is detected whenterraform apply
is executed once. It is, the change is detected on the secondterraform apply
and not the first one.Since
null_resource.test
resource detects the change in firstterraform plan
, it must be some issue with azurerm provider and not terraform core.Steps to Reproduce
No response
Important Factoids
No response
References
No response