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
I took the Azure example and added a count parameter to the objects that needed them. when I increase the count from 1 to 2, I get an error with the creation of the second VM. Terraform will try to recreate the VM.0 and this fails with a disk error.
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
Apr 1, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This issue was originally opened by @djsly as hashicorp/terraform#11821. It was migrated here as part of the provider split. The original body of the issue is below.
Hello,
I took the Azure example and added a count parameter to the objects that needed them. when I increase the count from 1 to 2, I get an error with the creation of the second VM. Terraform will try to recreate the VM.0 and this fails with a disk error.
Terraform Version
Affected Resource(s)
Possibly a core issue since it looks similar as : hashicorp/terraform#3449
Terraform Configuration Files
Debug Output
The
terraform plan
outputhttps://gist.github.com/djsly/639fc1b039db89fce5bcafe3fc53a165
The
terraform apply
outputhttps://gist.github.com/djsly/eaf7e1e3786915dd2a7e285db0f0b7c0
Expected Behavior
We should be getting only new resources while having the existing resources untouched.
Actual Behavior
The VM0 object gets recreated and fails while trying to recreate the osdisk0 since it already exists.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
TF_VAR_count=1 terraform plan apply
TF_VAR_count=2 terraform plan apply
References
Could be related to (unsure)
The text was updated successfully, but these errors were encountered: