From 6b33bc247dbf6dbf4753558df5c5c80e65d3f557 Mon Sep 17 00:00:00 2001 From: Darrell Bolger Date: Wed, 24 Jan 2024 09:00:41 +0000 Subject: [PATCH] Update outputs --- modules/linux-function-app/src/main.tf | 8 +++++--- modules/linux-function-app/src/outputs.tf | 4 ++++ modules/linux-function-app/src/variables.tf | 10 ++++++++++ modules/linux-web-app/src/outputs.tf | 4 ++++ 4 files changed, 23 insertions(+), 3 deletions(-) diff --git a/modules/linux-function-app/src/main.tf b/modules/linux-function-app/src/main.tf index dcdacbc..02b9e48 100644 --- a/modules/linux-function-app/src/main.tf +++ b/modules/linux-function-app/src/main.tf @@ -26,9 +26,11 @@ resource "azurerm_linux_function_app" "main" { use_custom_runtime = local.application_stack.use_custom_runtime use_dotnet_isolated_runtime = local.application_stack.use_dotnet_isolated_runtime } - always_on = var.always_on - ftps_state = "Disabled" - vnet_route_all_enabled = var.vnet_route_all_enabled + application_insights_connection_string = var.application_insights_connection_string + application_insights_key = var.application_insights_key + always_on = var.always_on + ftps_state = "Disabled" + vnet_route_all_enabled = var.vnet_route_all_enabled dynamic "ip_restriction" { for_each = var.ip_restriction diff --git a/modules/linux-function-app/src/outputs.tf b/modules/linux-function-app/src/outputs.tf index e5f18b6..efbf6aa 100644 --- a/modules/linux-function-app/src/outputs.tf +++ b/modules/linux-function-app/src/outputs.tf @@ -14,6 +14,10 @@ output "hosting_environment_id" { value = azurerm_linux_function_app.main.hosting_environment_id } +output "identity" { + value = azurerm_linux_function_app.main.identity[*] +} + output "possible_outbound_ip_addresses" { value = azurerm_linux_function_app.main.possible_outbound_ip_addresses } diff --git a/modules/linux-function-app/src/variables.tf b/modules/linux-function-app/src/variables.tf index 708762f..d9123ea 100644 --- a/modules/linux-function-app/src/variables.tf +++ b/modules/linux-function-app/src/variables.tf @@ -1,3 +1,13 @@ +variable "application_insights_connection_string" { + type = string + default = null +} + +variable "application_insights_key" { + type = string + default = null +} + variable "always_on" { type = bool default = true diff --git a/modules/linux-web-app/src/outputs.tf b/modules/linux-web-app/src/outputs.tf index 0df7bb6..ebfa71b 100644 --- a/modules/linux-web-app/src/outputs.tf +++ b/modules/linux-web-app/src/outputs.tf @@ -14,6 +14,10 @@ output "id" { value = azurerm_linux_web_app.main.id } +output "identity" { + value = azurerm_linux_web_app.main.identity[*] +} + output "name" { value = azurerm_linux_web_app.main.name }