diff --git a/modules/networking/application_gateway/application_gateway.tf b/modules/networking/application_gateway/application_gateway.tf index 6effc46c39..7c9fdb4602 100644 --- a/modules/networking/application_gateway/application_gateway.tf +++ b/modules/networking/application_gateway/application_gateway.tf @@ -324,9 +324,9 @@ resource "azurerm_application_gateway" "agw" { dynamic "url" { for_each = try(rewrite_rule.value.url, null) == null ? [] : [1] content { - path = try(url.value.path, null) - query_string = try(url.value.query_string, null) - reroute = try(url.value.reroute, null) + path = try(rewrite_rule.value.url.path, null) + query_string = try(rewrite_rule.value.url.query_string, null) + reroute = try(rewrite_rule.value.url.reroute, null) } } } @@ -337,4 +337,4 @@ resource "azurerm_application_gateway" "agw" { output "certificate_keys" { value = local.certificate_keys -} \ No newline at end of file +}