-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
26 lines (24 loc) · 1.7 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
* # application_insights
*
* This module manages Azure Application Insights.
*
*/
resource "azurerm_application_insights" "application_insights" {
for_each = var.application_insights
name = local.application_insights[each.key].name == "" ? each.key : local.application_insights[each.key].name
location = local.application_insights[each.key].location
resource_group_name = local.application_insights[each.key].resource_group_name
application_type = local.application_insights[each.key].application_type
daily_data_cap_in_gb = local.application_insights[each.key].daily_data_cap_in_gb
daily_data_cap_notifications_disabled = local.application_insights[each.key].daily_data_cap_notifications_disabled
retention_in_days = local.application_insights[each.key].retention_in_days
sampling_percentage = local.application_insights[each.key].sampling_percentage
disable_ip_masking = local.application_insights[each.key].disable_ip_masking
workspace_id = local.application_insights[each.key].workspace_id
local_authentication_disabled = local.application_insights[each.key].local_authentication_disabled
internet_ingestion_enabled = local.application_insights[each.key].internet_ingestion_enabled
internet_query_enabled = local.application_insights[each.key].internet_query_enabled
force_customer_storage_for_profiler = local.application_insights[each.key].force_customer_storage_for_profiler
tags = local.application_insights[each.key].tags
}