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
The latest version of the virtual machine scale set resource requires the primary setting within the ip_configuration. The current main.tf has this:
`
network_profile {
name = "${var.network_profile}"
primary = true
And that fails on plan with the error:
Error: module.computegroup.azurerm_virtual_machine_scale_set.vm-linux: "network_profile.0.ip_configuration.0.primary": required field is not set
If I change the following to this:
`
network_profile {
name = "${var.network_profile}"
primary = true
Error: Missing required argument
on .terraform/modules/computegroup/Azure-terraform-azurerm-computegroup-354b05c/main.tf line 71, in resource "azurerm_virtual_machine_scale_set" "vm-linux":
71: ip_configuration {
The argument "primary" is required, but no definition was found.
The latest version of the virtual machine scale set resource requires the primary setting within the ip_configuration. The current main.tf has this:
`
network_profile {
name = "${var.network_profile}"
primary = true
}
`
And that fails on plan with the error:
Error: module.computegroup.azurerm_virtual_machine_scale_set.vm-linux: "network_profile.0.ip_configuration.0.primary": required field is not set
If I change the following to this:
`
network_profile {
name = "${var.network_profile}"
primary = true
}
`
The plan runs without error.
The text was updated successfully, but these errors were encountered: