Skip to content

Commit 31eaa1c

Browse files
authored
feat: dtoss 6910 enabling health checks for function apps (#97)
* feat: DTOS 6910 configuring the option to enable health checking for function apps * feat: DTOS 6910 configuring the option to enable health checking for function apps
1 parent 76cc910 commit 31eaa1c

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

infrastructure/modules/event-grid-subscription/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
resource "azurerm_eventgrid_event_subscription" "eventgrid_event_subscription" {
2-
name = var.subscription_name
3-
scope = var.azurerm_eventgrid_id
2+
name = var.subscription_name
3+
scope = var.azurerm_eventgrid_id
44

55
dynamic "azure_function_endpoint" {
66
for_each = var.subscriber_function_details

infrastructure/modules/function-app/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ resource "azurerm_linux_function_app" "function_app" {
3131
container_registry_use_managed_identity = var.cont_registry_use_mi
3232
container_registry_managed_identity_client_id = var.acr_mi_client_id
3333
ftps_state = var.ftps_state
34+
health_check_path = var.health_check_path
3435

3536
minimum_tls_version = var.minimum_tls_version
3637

infrastructure/modules/function-app/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ variable "function_app_slots" {
7272
default = []
7373
}
7474

75+
variable "health_check_path" {
76+
type = string
77+
description = "When configured will enable health checking. Setting example= /api/health"
78+
default = ""
79+
}
80+
7581
variable "http_version" {
7682
type = string
7783
description = "The HTTP version to use for the function app. Override standard default."

0 commit comments

Comments
 (0)