Skip to content

Commit

Permalink
Create sanitech_reporting.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH committed Apr 19, 2024
1 parent 44fce41 commit 84761e1
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions func/sanitech_reporting.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
resource "azurerm_log_analytics_workspace" "example" {
name = "example-logs"
location = "eastus"
resource_group_name = azurerm_resource_group.example.name
sku = "PerGB2018"
retention_in_days = 30
}

resource "azurerm_log_analytics_solution" "example" {
solution_name = "example-solution"
location = azurerm_log_analytics_workspace.example.location
resource_group_name = azurerm_resource_group.example.name
workspace_resource_id = azurerm_log_analytics_workspace.example.id
workspace_name = azurerm_log_analytics_workspace.example.name

plan {
publisher = "Microsoft"
product = "OMSGallery/Containers"
}
}

resource "azurerm_resource_group" "example" {
name = "example-resources"
location = "eastus"
}

0 comments on commit 84761e1

Please sign in to comment.