diff --git a/infrastructure/modules/function-app/main.tf b/infrastructure/modules/function-app/main.tf index 8590b39..b52b27a 100644 --- a/infrastructure/modules/function-app/main.tf +++ b/infrastructure/modules/function-app/main.tf @@ -31,6 +31,8 @@ resource "azurerm_linux_function_app" "function_app" { container_registry_use_managed_identity = var.cont_registry_use_mi container_registry_managed_identity_client_id = var.acr_mi_client_id ftps_state = var.ftps_state + health_check_path = var.health_check_path + health_check_eviction_time_in_min = var.health_check_eviction_time_in_min minimum_tls_version = var.minimum_tls_version diff --git a/infrastructure/modules/function-app/variables.tf b/infrastructure/modules/function-app/variables.tf index 2320dd7..ada7c59 100644 --- a/infrastructure/modules/function-app/variables.tf +++ b/infrastructure/modules/function-app/variables.tf @@ -72,6 +72,16 @@ variable "function_app_slots" { default = [] } +variable "health_check_path" { + type = string + description = "The path to be checked for this function app health." +} + +variable "health_check_eviction_time_in_min" { + type = number + description = "The time in minutes a node can be unhealthy before being removed from the load balancer." +} + variable "http_version" { type = string description = "The HTTP version to use for the function app. Override standard default."