Skip to content

Commit

Permalink
Fixed allows_ip_addresses behaviour (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
shibayan authored Sep 24, 2024
1 parent 84868c3 commit f9c1b3e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ resource "azurerm_windows_function_app" "function" {
dotnet_version = "v8.0"
}

ip_restriction_default_action = length(var.allowed_ip_addresses) != 0 ? "Deny" : "Allow"

dynamic "ip_restriction" {
for_each = var.allowed_ip_addresses

Expand Down

0 comments on commit f9c1b3e

Please sign in to comment.