Skip to content

Commit

Permalink
add log analytics ws to terraform
Browse files Browse the repository at this point in the history
  • Loading branch information
Tschonti committed Mar 30, 2024
1 parent 11bab2c commit 5fa0057
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions infra/appinsights.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
resource "azurerm_log_analytics_workspace" "law" {
name = "pontozo-law-tf"
location = azurerm_resource_group.tf-rg.location
resource_group_name = azurerm_resource_group.tf-rg.name
sku = "PerGB2018"
retention_in_days = 30
}

resource "azurerm_application_insights" "appinsights" {
name = "pontozo-insights-tf"
location = azurerm_resource_group.tf-rg.location
resource_group_name = azurerm_resource_group.tf-rg.name
workspace_id = azurerm_log_analytics_workspace.law.id
application_type = "web"
}

Expand Down

0 comments on commit 5fa0057

Please sign in to comment.