diff --git a/.terraform-version b/.terraform-version index 18b31142..4e00d0ac 100644 --- a/.terraform-version +++ b/.terraform-version @@ -1 +1 @@ -1.10.4 +1.14.4 diff --git a/app-insights.tf b/app-insights.tf index 720e57cc..397d27cf 100644 --- a/app-insights.tf +++ b/app-insights.tf @@ -4,6 +4,7 @@ module "application_insights" { env = var.env product = var.product + sampling_percentage = var.sampling_percentage resource_group_name = azurerm_resource_group.darts_resource_group.name diff --git a/blob-storage.tf b/blob-storage.tf index f3a77240..96335847 100644 --- a/blob-storage.tf +++ b/blob-storage.tf @@ -28,6 +28,7 @@ module "sa" { allow_nested_items_to_be_public = "true" enable_change_feed = true private_endpoint_subnet_id = data.azurerm_subnet.private_endpoints.id + public_network_access_enabled = true enable_data_protection = true diff --git a/locals.tf b/locals.tf index 910e2ba7..be6dd786 100644 --- a/locals.tf +++ b/locals.tf @@ -108,7 +108,7 @@ locals { is_migration_environment = contains(local.migration_environments, var.env) production_environments = ["prod"] is_production_environment = contains(local.production_environments, var.env) - test_environments = ["test", "demo", "stg"] + test_environments = ["test", "demo", "ithc", "stg"] is_test_environment = contains(local.test_environments, var.env) } diff --git a/state.tf b/state.tf index 8b736c06..d8397e02 100755 --- a/state.tf +++ b/state.tf @@ -4,11 +4,11 @@ terraform { required_providers { azurerm = { source = "hashicorp/azurerm" - version = "4.23.0" + version = "4.59.0" } azapi = { source = "Azure/azapi" - version = "~> 1.15.0" + version = "2.5.0" } } } diff --git a/variables.tf b/variables.tf index 45367013..f7bb3176 100644 --- a/variables.tf +++ b/variables.tf @@ -375,3 +375,8 @@ variable "install_endpoint_protection" { description = "Install endpoint protection extension" default = false } + +variable "sampling_percentage" { + default = 100 + description = "App insights sampling percentage." +}