Skip to content

Commit

Permalink
Add function app healthcheck vars
Browse files Browse the repository at this point in the history
Adds health_check_path and health_check_eviction_time_in_min vars to
function app site config map. No defaults added.
  • Loading branch information
steventux committed Dec 18, 2024
1 parent 4f2d931 commit 4da168e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions infrastructure/modules/function-app/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 10 additions & 0 deletions infrastructure/modules/function-app/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 4da168e

Please sign in to comment.