Skip to content

Commit

Permalink
Update VMSS configs to reflect network_profile.*.ip_configuration.*.p…
Browse files Browse the repository at this point in the history
…rimary now being required (#2035)
  • Loading branch information
katbyte committed Oct 16, 2018
1 parent 936b902 commit 1a86d78
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions azurerm/resource_arm_autoscale_setting_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,7 @@ resource "azurerm_virtual_machine_scale_set" "test" {
ip_configuration {
name = "TestIPConfiguration"
subnet_id = "${azurerm_subnet.test.id}"
primary = true
}
}
Expand Down
1 change: 1 addition & 0 deletions azurerm/resource_arm_image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1300,6 +1300,7 @@ resource "azurerm_virtual_machine_scale_set" "testdestination" {
ip_configuration {
name = "TestIPConfiguration"
subnet_id = "${azurerm_subnet.test.id}"
primary = true
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ resource "azurerm_virtual_machine_scale_set" "webserver_ss" {
name = "web_ss_ip_profile"
subnet_id = "${azurerm_subnet.webservers_subnet.id}"
load_balancer_backend_address_pool_ids = ["${azurerm_lb_backend_address_pool.webservers_lb_backend.id}"]
primary = true
}
}

Expand Down
1 change: 1 addition & 0 deletions examples/vmss-ubuntu/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ resource "azurerm_virtual_machine_scale_set" "scaleset" {
subnet_id = "${azurerm_subnet.subnet.id}"
load_balancer_backend_address_pool_ids = ["${azurerm_lb_backend_address_pool.backlb.id}"]
load_balancer_inbound_nat_rules_ids = ["${element(azurerm_lb_nat_pool.np.*.id, count.index)}"]
primary = true
}
}

Expand Down

0 comments on commit 1a86d78

Please sign in to comment.