Skip to content

Commit

Permalink
Merge pull request #2 from cerebrotech/steved/fix-agw-custom-probe
Browse files Browse the repository at this point in the history
AGW custom probes can set the host name to 127.0.0.1 by default
  • Loading branch information
steved authored Apr 11, 2019
2 parents cf688d1 + 22bed0f commit 0c7e0c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ output "backend_address_pool_id" {
description = "The ID of the application gateway backend address pool"
value = "${azurerm_application_gateway.this.backend_address_pool.0.id}"
}

output "public_ip" {
description = "The public IP of the application gateway"
value = "${azurerm_public_ip.this.ip_address}"
}
5 changes: 1 addition & 4 deletions resources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ resource "azurerm_application_gateway" "this" {
timeout = "${var.health_probe_timeout}"
unhealthy_threshold = "${var.health_probe_threshold}"
path = "${var.health_probe_path}"

pick_host_name_from_backend_http_settings = true
host = "127.0.0.1"
}

backend_http_settings {
Expand All @@ -85,8 +84,6 @@ resource "azurerm_application_gateway" "this" {
request_timeout = "${var.backend_request_timeout}"
probe_name = "${local.health_probe_name}"

pick_host_name_from_backend_address = true

connection_draining {
enabled = "${var.enable_connection_draining}"
drain_timeout_sec = "${var.connection_drain_timeout}"
Expand Down

0 comments on commit 0c7e0c1

Please sign in to comment.