Skip to content

Commit

Permalink
remove virtual network diagnostics from Terraform (Azure#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
glennmusa authored Oct 21, 2021
1 parent 2128e4d commit b4f3c7f
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/terraform/modules/virtual-network/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,3 @@ resource "azurerm_storage_account" "loganalytics" {
enable_https_traffic_only = true
tags = var.tags
}

resource "azurerm_monitor_diagnostic_setting" "vnet" {
name = "${var.vnet_name}-vn-diagnostics"
target_resource_id = azurerm_virtual_network.vnet.id
storage_account_id = azurerm_storage_account.loganalytics.id
log_analytics_workspace_id = var.log_analytics_workspace_resource_id

metric {
category = "AllMetrics"

retention_policy {
enabled = false
}
}
}

0 comments on commit b4f3c7f

Please sign in to comment.