Azure module to deploy a Microsoft Sentinel.
| Module version | Terraform version | OpenTofu version | AzureRM version |
|---|---|---|---|
| >= 8.x.x | Unverified | 1.8.x | >= 4.0 |
| >= 7.x.x | 1.3.x | >= 3.0 | |
| >= 6.x.x | 1.x | >= 3.0 | |
| >= 5.x.x | 0.15.x | >= 2.0 | |
| >= 4.x.x | 0.13.x / 0.14.x | >= 2.0 | |
| >= 3.x.x | 0.12.x | >= 2.0 | |
| >= 2.x.x | 0.12.x | < 2.0 | |
| < 2.x.x | 0.11.x | < 2.0 |
If you want to contribute to this repository, feel free to use our pre-commit git hook configuration which will help you automatically update and format some files for you by enforcing our Terraform code module best-practices.
More details are available in the CONTRIBUTING.md file.
This module is optimized to work with the Claranet terraform-wrapper tool
which set some terraform variables in the environment needed by this module.
More details about variables set by the terraform-wrapper available in the documentation.
module "logs" {
source = "claranet/run/azurerm//modules/logs"
version = "x.x.x"
client_name = var.client_name
environment = var.environment
stack = var.stack
location = module.azure_region.location
location_short = module.azure_region.location_short
resource_group_name = module.rg.name
}
module "sentinel" {
source = "claranet/sentinel/azurerm"
version = "x.x.x"
log_analytics_workspace_id = module.logs.id
logs_destinations_ids = [module.logs.id]
data_connector_aad_enabled = true
data_connector_mti_enabled = true
}| Name | Version |
|---|---|
| azapi | ~> 2.0 |
| azurerm | ~> 4.31 |
| time | ~> 0.14 |
| Name | Source | Version |
|---|---|---|
| diagnostics | claranet/diagnostic-settings/azurerm | ~> 8.2.0 |
| Name | Type |
|---|---|
| azapi_resource.data_connector_mxdr | resource |
| azapi_resource.ueba_entity | resource |
| azapi_resource.ueba_source | resource |
| azurerm_monitor_aad_diagnostic_setting.main | resource |
| azurerm_sentinel_data_connector_aws_s3.main | resource |
| azurerm_sentinel_data_connector_microsoft_threat_intelligence.main | resource |
| azurerm_sentinel_log_analytics_workspace_onboarding.main | resource |
| time_offset.main | resource |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| azure_tenant_id | Azure tenant ID. | string |
"" |
no |
| data_connector_aad_enabled | Whether the Azure Active Directory logs are retrieved. | bool |
false |
no |
| data_connector_aad_logs | List of Azure Active Directory log category. | list(string) |
[ |
no |
| data_connector_aws_s3_configuration | List of Azure Active Directory log category. | map(object({ |
{} |
no |
| data_connector_mti_enabled | Whether the Microsoft Threat Intelligence Data Connector is enabled. | bool |
false |
no |
| data_connector_mti_lookback_days | Microsoft Threat Intelligence Data lookback days. | number |
7 |
no |
| data_connector_mxdr_enabled | Whether sync is enabled between Microsoft XDR incidents and Microsoft Sentinel. | bool |
false |
no |
| diagnostic_settings_custom_name | Custom name of the diagnostics settings, name will be default if not set. |
string |
"default" |
no |
| log_analytics_workspace_id | The Log Analytics Workspace ID. | string |
n/a | yes |
| logs_categories | Log categories to send to destinations. | list(string) |
null |
no |
| logs_destinations_ids | List of destination resources IDs for logs diagnostic destination. Can be Storage Account, Log Analytics Workspace and Event Hub. No more than one of each can be set.If you want to use Azure EventHub as a destination, you must provide a formatted string containing both the EventHub Namespace authorization send ID and the EventHub name (name of the queue to use in the Namespace) separated by the | character. |
list(string) |
n/a | yes |
| logs_metrics_categories | Metrics categories to send to destinations. | list(string) |
null |
no |
| name_prefix | Optional prefix for the generated name. | string |
"" |
no |
| name_suffix | Optional suffix for the generated name. | string |
"" |
no |
| ueba_data_sources | List of UEBA (User and Entity Behavior Analytics) data sources. | list(string) |
[ |
no |
| ueba_enabled | Whether UEBA (User and Entity Behavior Analytics) feature is enabled. | bool |
true |
no |
| ueba_entity_providers | List of UEBA (User and Entity Behavior Analytics) entity providers. | list(string) |
[ |
no |
No outputs.
Microsoft Azure documentation: learn.microsoft.com/en-us/azure/sentinel/overview