diff --git a/infrastructure/modules/app-insights/main.tf b/infrastructure/modules/app-insights/main.tf index c605041c..754cbd3d 100644 --- a/infrastructure/modules/app-insights/main.tf +++ b/infrastructure/modules/app-insights/main.tf @@ -7,5 +7,8 @@ resource "azurerm_application_insights" "appins" { workspace_id = var.log_analytics_workspace_id application_type = var.appinsights_type + internet_ingestion_enabled = var.internet_ingestion_enabled + internet_query_enabled = var.internet_query_enabled + tags = var.tags } diff --git a/infrastructure/modules/app-insights/variables.tf b/infrastructure/modules/app-insights/variables.tf index 3d671f22..5a769c7d 100644 --- a/infrastructure/modules/app-insights/variables.tf +++ b/infrastructure/modules/app-insights/variables.tf @@ -57,6 +57,18 @@ variable "action_group_id" { default = null } +variable "internet_ingestion_enabled" { + type = bool + description = "Whether public internet ingestion is enabled for Application Insights." + default = true +} + +variable "internet_query_enabled" { + type = bool + description = "Whether public internet querying is enabled for Application Insights." + default = true +} + locals { alert_window_size = var.alert_frequency }