Azure / terraform-azurerm-avm-ptn-alz-management

AVM Terraform Pattern Module for ALZ Management.
https://registry.terraform.io/modules/Azure/avm-ptn-alz-management/azurerm/latest
MIT License
4 stars 3 forks source link

Azure Landing Zones Management Resources AVM Module

This module deploys the management resource for Azure Landings Zones.

Features

Example

module "avm-ptn-alz-management" {
  source  = "Azure/avm-ptn-alz-management/azurerm"
  version = "<version>" # change this to your desired version, https://www.terraform.io/language/expressions/version-constraints

  automation_account_name      = "aa-prod-eus-001"
  location                     = "eastus"
  log_analytics_workspace_name = "law-prod-eus-001"
  resource_group_name          = "rg-management-eus-001"
}

Requirements

The following requirements are needed by this module:

Resources

The following resources are used by this module:

Required Inputs

The following input variables are required:

automation_account_name

Description: The name of the Azure Automation Account to create.

Type: string

location

Description: The Azure region where the resources will be deployed.

Type: string

log_analytics_workspace_name

Description: The name of the Log Analytics Workspace to create.

Type: string

resource_group_name

Description: The name of the Azure Resource Group where the resources will be created.

Type: string

Optional Inputs

The following input variables are optional (have default values):

automation_account_encryption

Description: The encryption configuration for the Azure Automation Account.

Type:

object({
    key_vault_key_id          = string
    user_assigned_identity_id = optional(string, null)
  })

Default: null

automation_account_identity

Description: The identity to assign to the Azure Automation Account.

Type:

object({
    type         = string
    identity_ids = optional(set(string), null)
  })

Default: null

automation_account_local_authentication_enabled

Description: Whether or not local authentication is enabled for the Azure Automation Account.

Type: bool

Default: true

automation_account_location

Description: The Azure region of the Azure Automation Account to deploy. This suppports overriding the location variable in specific cases.

Type: string

Default: null

automation_account_public_network_access_enabled

Description: Whether or not public network access is enabled for the Azure Automation Account.

Type: bool

Default: true

automation_account_sku_name

Description: The name of the SKU for the Azure Automation Account to create.

Type: string

Default: "Basic"

data_collection_rules

Description: Enables customisation of the data collection rules.

Type:

object({
    change_tracking = object({
      enabled  = optional(bool, true)
      name     = string
      location = optional(string, null)
      tags     = optional(map(string), null)
    })
    vm_insights = object({
      enabled  = optional(bool, true)
      name     = string
      location = optional(string, null)
      tags     = optional(map(string), null)
    })
    defender_sql = object({
      enabled                                                = optional(bool, true)
      name                                                   = string
      location                                               = optional(string, null)
      tags                                                   = optional(map(string), null)
      enable_collection_of_sql_queries_for_security_research = optional(bool, false)
    })
  })

Default:

{
  "change_tracking": {
    "name": "dcr-change-tracking"
  },
  "defender_sql": {
    "name": "dcr-defender-sql"
  },
  "vm_insights": {
    "name": "dcr-vm-insights"
  }
}

enable_telemetry

Description: This variable controls whether or not telemetry is enabled for the module.
For more information see https://aka.ms/avm/telemetryinfo.
If it is set to false, then no telemetry will be collected.

Type: bool

Default: true

linked_automation_account_creation_enabled

Description: A boolean flag to determine whether to deploy the Azure Automation Account linked to the Log Analytics Workspace or not.

Type: bool

Default: true

log_analytics_solution_plans

Description: The Log Analytics Solution Plans to create. Do not add the SecurityInsights solution plan here, this deployment method is deprecated. Instead refer to

Type:

list(object({
    product   = string
    publisher = optional(string, "Microsoft")
  }))

Default:

[
  {
    "product": "OMSGallery/ContainerInsights",
    "publisher": "Microsoft"
  },
  {
    "product": "OMSGallery/VMInsights",
    "publisher": "Microsoft"
  }
]

log_analytics_workspace_allow_resource_only_permissions

Description: Whether or not to allow resource-only permissions for the Log Analytics Workspace.

Type: bool

Default: true

log_analytics_workspace_cmk_for_query_forced

Description: Whether or not to force the use of customer-managed keys for query in the Log Analytics Workspace.

Type: bool

Default: null

log_analytics_workspace_daily_quota_gb

Description: The daily ingestion quota in GB for the Log Analytics Workspace.

Type: number

Default: null

log_analytics_workspace_internet_ingestion_enabled

Description: Whether or not internet ingestion is enabled for the Log Analytics Workspace.

Type: bool

Default: true

log_analytics_workspace_internet_query_enabled

Description: Whether or not internet query is enabled for the Log Analytics Workspace.

Type: bool

Default: true

log_analytics_workspace_local_authentication_disabled

Description: Whether or not local authentication is disabled for the Log Analytics Workspace.

Type: bool

Default: false

log_analytics_workspace_reservation_capacity_in_gb_per_day

Description: The reservation capacity in GB per day for the Log Analytics Workspace.

Type: number

Default: null

log_analytics_workspace_retention_in_days

Description: The number of days to retain data for the Log Analytics Workspace.

Type: number

Default: 30

log_analytics_workspace_sku

Description: The SKU to use for the Log Analytics Workspace.

Type: string

Default: "PerGB2018"

resource_group_creation_enabled

Description: A boolean flag to determine whether to deploy the Azure Resource Group or not.

Type: bool

Default: true

sentinel_onboarding

Description: Enables customisation of the Sentinel onboarding. Set to null to disable.

Type:

object({
    name                         = optional(string, "default")
    customer_managed_key_enabled = optional(bool, false)
  })

Default: {}

tags

Description: A map of tags to apply to the resources created.

Type: map(string)

Default: null

user_assigned_managed_identities

Description: Enables customisation of the user assigned managed identities.

Type:

object({
    ama = object({
      enabled  = optional(bool, true)
      name     = string
      location = optional(string, null)
      tags     = optional(map(string), null)
    })
  })

Default:

{
  "ama": {
    "name": "uami-ama"
  }
}

Outputs

The following outputs are exported:

automation_account

Description: A curated output of the Azure Automation Account.

data_collection_rule_ids

Description: Data Collection Rule Resource Ids.

log_analytics_workspace

Description: A curated output of the Log Analytics Workspace.

resource_group

Description: A curated output of the Azure Resource Group.

resource_id

Description: The resource ID of the Log Analytics Workspace.

user_assigned_identity_ids

Description: User assigned identity IDs.

Modules

No modules.

Data Collection

The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described in the repository. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft’s privacy statement. Our privacy statement is located at https://go.microsoft.com/fwlink/?LinkID=824704. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices.