-
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
Difference in behavior of managed vs unmanaged data disk parsing on azurerm_virtual_machine #136
Comments
I came across this because I'm trying to solve exactly the same issue that you have done with Managed Disks. Unfortunately your solution for Managed Disks gives me the same errors as you get for Unmanaged. I suspect that this implementation is unpredictable for the same reasons as in hashicorp/terraform#16582 |
I seem to recall an issue on Terraform core that is similar in nature, and the resolution had something to do the the fact that passing a map as a config block like this is actually a hack that works because of an oddity in how the Go-lang type system works. The validation errors happen as a result of this oddity, and the accepting of the map in the first place is the actual bug, not the validation errors when you change a property. The issue I'm referring to is much newer than this issue though, as I recall. If I can dredge it up, I'll link to it here, but there weren't any details remarkable enough for me to come up with clear search terms to find it. |
Hey look at that. @DevOpsFu did have the link, that's exactly the one I'm talking about. You can ignore me. |
👋🏻 hey @cehoffman @DevOpsFu @nbering This'll be fixed by the new Thanks! |
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! |
On terraform 0.9.8
This is probably a little out there, but I wanted to create a module for creating a set of VMs that would autojoin a kubernetes cluster with a parameterized number of data disks. I eventually arrived at a solution that worked quite well for managed disks. I then wanted to copy this pattern for unmanaged disks and ran into a problem.
The basic formula I'm using is a
storage_data_disk
block in theazurerm_virtual_machine
definition that looks like this.This list me create basically a VM of any size with any number of attached disks using only 2 parameters. When creating the unmanaged disk version of this I ran into this problem.
It is specifically switching
managed_disk_type
forvhd_uri
that causes the problem.The text was updated successfully, but these errors were encountered: