-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Azure virtual machine interfaces are not being created and attached in the order they are defined within the main.tf script #15153
Comments
The first step we need to take is to determine if the ordering of the list is getting changed in terraform or in the go-sdk. |
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Terraform Version
0.9.6
Affected Resource(s)
Terraform Configuration Files
https://www.dropbox.com/s/q4pnvy0bs2812vk/main.tf?dl=0
Expected Behavior
The interfaces should be consistently created and attached in the following order: management, untrust, trust as defined within the main.tf script.
Actual Behavior
Terraform plan is showing they will be attached in this order: management, trust, untrust. This is the actual order they get attached in on the virtual machine when launched via terraform apply, which is incorrect. The attachment order is inconsistent. On one run of terraform plan/apply it may create in the right order, on another run of terraform plan/apply it will be in the incorrect order. The first interface is ok due to primary_network_interface_id. I have screen shots of desired.
Steps to Reproduce
terraform plan
terraform apply
The text was updated successfully, but these errors were encountered: