Skip to content

Commit f9c1b3e

Browse files
authored
Fixed allows_ip_addresses behaviour (#77)
1 parent 84868c3 commit f9c1b3e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ resource "azurerm_windows_function_app" "function" {
127127
dotnet_version = "v8.0"
128128
}
129129

130+
ip_restriction_default_action = length(var.allowed_ip_addresses) != 0 ? "Deny" : "Allow"
131+
130132
dynamic "ip_restriction" {
131133
for_each = var.allowed_ip_addresses
132134

0 commit comments

Comments
 (0)