-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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_network_interface_security_group_association fails on refreshing due to NIC not found #7041
Comments
This comment has been minimized.
This comment has been minimized.
This has been released in version 2.16.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azurerm" {
version = "~> 2.16.0"
}
# ... other configuration ... |
…when NIC not found (hashicorp#7459) Fix: hashicorp#7041
…when NIC not found (hashicorp#7459) Fix: hashicorp#7041
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! |
Community Note
The VM is created by terraforming successfully on the initial run then it is deleted manually in Azure and after that the terraform plan or terraform refresh commands fails with the following error:
Community Note
Terraform (and AzureRM Provider) Version
v0.12.25 and arm provider v2.10.0
Affected Resource(s)
azurerm_network_interface_security_group_association
Terraform Configuration Files
Panic Output
Expected Behavior
refresh should run successfully and find out that all resources related to the VM were deleted manually and no longer exists and then new VM should be created
Actual Behavior
error provided above
Steps to Reproduce
Create VM using following code then delete all resources and VM manually in Azure portal and the try to run terraform plan or terraform refresh
terraform apply
Important Factoids
The workaround is to delete azurerm_network_interface_security_group_association from state before running terraform refresh
References
The text was updated successfully, but these errors were encountered: