You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
terraform plan should not reflect any changes in the configuration.
Actual Behavior
The association between Subnet and NSG gets created after I execute terraform apply. But when I again run terraform plan(without doing any changes to the configuration), it shows me an output that Subnet needs to be changed - the association between them to be destroyed. And it goes on in the same manner that one terraform apply creates association and another destroys it.
Then by referring #3077 I appended the below inline property of subnet into the azurerm_subnet block
Then everything started working fine, no changes found in the terraform plan. But when destroying the environment, it throws an error of Cycle formed between Subnet and NSG
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.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!
ghost
locked and limited conversation to collaborators
Mar 28, 2020
Community Note
Terraform (and AzureRM Provider) Version
Terraform v0.12.18
Provider Azurerm v1.39.0
Affected Resource(s)
azurerm_subnet
azurerm_subnet_network_security_group_association
azurerm_network_security_group
Terraform Configuration Files
Expected Behavior
terraform plan should not reflect any changes in the configuration.
Actual Behavior
The association between Subnet and NSG gets created after I execute terraform apply. But when I again run terraform plan(without doing any changes to the configuration), it shows me an output that Subnet needs to be changed - the association between them to be destroyed. And it goes on in the same manner that one terraform apply creates association and another destroys it.
Then by referring #3077 I appended the below inline property of subnet into the azurerm_subnet block
network_security_group_id = "${azurerm_network_security_group.subnetnsg.id}"
Then everything started working fine, no changes found in the terraform plan. But when destroying the environment, it throws an error of Cycle formed between Subnet and NSG
Steps to Reproduce
#3077 #3426
The text was updated successfully, but these errors were encountered: