Skip to content

Commit

Permalink
[CES-124] Add new Session Manager instance to AppGw backend pool (#1194)
Browse files Browse the repository at this point in the history
  • Loading branch information
Krusty93 authored Oct 4, 2024
1 parent 1cb5f1a commit fade2cc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 7 additions & 2 deletions src/common/_modules/application_gateway/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,16 @@ data "azurerm_linux_web_app" "appservice_continua" {
resource_group_name = "${var.project}-continua-rg"
}

data "azurerm_linux_web_app" "session_manager" {
data "azurerm_linux_web_app" "session_manager_03" {
name = "io-p-weu-session-manager-app-03"
resource_group_name = "io-p-weu-session-manager-rg-01"
}

data "azurerm_linux_web_app" "session_manager_04" {
name = "io-p-weu-session-manager-app-04"
resource_group_name = "io-p-weu-session-manager-rg-01"
}

data "azurerm_linux_web_app" "fims_op_app" {
name = "io-p-weu-fims-op-app-01"
resource_group_name = "io-p-weu-fims-rg-01"
Expand Down Expand Up @@ -112,4 +117,4 @@ data "azurerm_key_vault_secret" "app_gw_mtls_header_name" {

data "azuread_service_principal" "app_gw_uai_kvreader" {
display_name = format("%s-uai-kvreader", var.project)
}
}
3 changes: 2 additions & 1 deletion src/common/_modules/application_gateway/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ module "app_gw" {
port = 443
ip_addresses = null # with null value use fqdns
fqdns = [
data.azurerm_linux_web_app.session_manager.default_hostname
data.azurerm_linux_web_app.session_manager_03.default_hostname,
data.azurerm_linux_web_app.session_manager_04.default_hostname
]
probe = "/healthcheck"
probe_name = "probe-session-manager-app"
Expand Down

0 comments on commit fade2cc

Please sign in to comment.