-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
network_profile.*.ip_configuration.*.primary now required for azure_virtual_machine_scale_set #2035
network_profile.*.ip_configuration.*.primary now required for azure_virtual_machine_scale_set #2035
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey @manicminer
Thanks for this PR - this mostly LGTM, if we can fix up a couple of minor issues then this should be good to go 👍
Thanks!
if properties.Primary != nil { | ||
config["primary"] = *properties.Primary | ||
} | ||
config["primary"] = *properties.Primary |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we revert this? the Azure API's return the state of the resource at the last time it was modified, meaning it's possible this won't be returned (and will crash here)
…irtual_machine_scale_set
@tombuildsstuff Thanks for the feedback! I've updated the docs and reverted the hunk from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey @manicminer
Thanks for pushing the latest changes - this now LGTM 👍 - I'll kick off the tests shortly
Thanks!
hey @manicminer Running the tests for this I notice there's a couple of configurations where the Thanks! |
…rimary now being required (#2035)
* Required by terraform-provider-azurerm v1.17+ * hashicorp/terraform-provider-azurerm#2035
* Required by terraform-provider-azurerm v1.17+ * hashicorp/terraform-provider-azurerm#2035
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 👉 hashibot-feedback@hashicorp.com. Thanks! |
The primary attribute for a VirtualMachineScaleSet IPConfiguration (https://docs.microsoft.com/en-us/rest/api/compute/virtualmachinescalesets/createorupdate#virtualmachinescalesetipconfiguration) is now apparently mandatory even with single IP configurations.
The VMs in our virtual machine scale sets only have a single interface, and each interface a single IP configuration, but we started getting this on Friday.
Discussions with an Azure support engineer confirmed this change. Simply adding the
azurerm_virtual_machine_scale_set.main.network_profile.*.ip_configuration.*.primary
attribute resolved the 400 error.This is my first Terraform (actually Go project) contribution. Please let me know if I've messed up! Thanks!