log-analytics
avinor/log-analytics/azurerm
Terraform module to deploy Log Analytics workspace with option to add solutions to it.
Log Analytics Deploys a log analytics workspace for collecting all diagnostics logs and metrics. Can collect logs across multiple subscriptions and connect to Security Center. It is recommended to deploy only one instance per region to collect all diagnostics in one place. For multiple regions it can be advantagious to deploy one in each region, as recommended by Microsoft. Setup Not all options are available in terraform yet. To collect Azure Activity logs additional configuration is required after deployment. Open deployed log analytics workspace and go to "Workspace Data Sources" -> "Azure Activity log" and connect to subscriptions that should collect activity logs. Usage Example using tau for deployment ``terraform module { source = "avinor/log-analytics/azurerm" version = "1.1.0" } in
| Name | Type | Description | Default |
|---|---|---|---|
| name | string | Name of Log Analystics Workspace. | required |
| resource_group_name | string | Name of resource group to deploy resources in. | required |
| location | string | Azure location where resources should be deployed. | required |
| tags | map(string) | Tags to apply to all resources created. | {} |
| sku | string | Specified the Sku of the Log Analytics Workspace. | "PerNode" |
| solutions | list(object({ solution_name = | A list of solutions to add to the workspace. Should contain solution_name, publi | [] |
| contributors | list(string) | A list of users / apps that should have Log Analytics Contributer access. Requir | [] |
| retention_in_days | number | The workspace data retetion in days. Possible values range between 30 and 730. | 30 |
| security_center_subscription | list(string) | List of subscriptions this log analytics should collect data for. Does not work | [] |
workspace_id — Log Analytics Workspace id, this is just a guid.resource_id — Id of Log Analytics resource in Azure.Azure landing zones Terraform module
Terraform supermodule for the Terraform platform engineering for Azure
Terraform module to deploy landing zone subscriptions (and much more) in Azure
Terraform Module to define a consistent naming convention by (namespace, stage,