Skip to content
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

ip_configuration requires primary field #33

Open
sgettys opened this issue Apr 4, 2019 · 0 comments
Open

ip_configuration requires primary field #33

sgettys opened this issue Apr 4, 2019 · 0 comments

Comments

@sgettys
Copy link

sgettys commented Apr 4, 2019

The latest version of azurerm_virtual_machine_scale_set requires primary to be set in ip configurations: Running the current code results in the following error:

Error: module.consul_servers.azurerm_virtual_machine_scale_set.consul_with_load_balancer: "network_profile.0.ip_configuration.0.primary": required field is not set

When the following change is made to consul-cluster main.tf then terraform plan runs correctly:

network_profile {
name = "ConsulNetworkProfile"
primary = true

ip_configuration {
  name = "ConsulIPConfiguration"
  subnet_id = "${var.subnet_id}"
  load_balancer_backend_address_pool_ids = [
    "${azurerm_lb_backend_address_pool.consul_bepool.id}"]
  load_balancer_inbound_nat_rules_ids = ["${element(azurerm_lb_nat_pool.consul_lbnatpool.*.id, count.index)}"]
  **primary = true**
}

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant