This module deploys a Log Analytics Workspace in Azure with Log Analytics Solutions and a linked Azure Automation Account.
- Deployment of Log Analytics Workspace.
- Opitional deployment of Azure Automation Account.
- Optional deployment of Azure Resource Group.
- Customizable Log Analytics Solutions.
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"
}
The following requirements are needed by this module:
The following providers are used by this module:
The following resources are used by this module:
- azurerm_automation_account.management (resource)
- azurerm_log_analytics_linked_service.management (resource)
- azurerm_log_analytics_solution.management (resource)
- azurerm_log_analytics_workspace.management (resource)
- azurerm_resource_group.management (resource)
- azurerm_resource_group_template_deployment.telemetry (resource)
- random_id.telemetry (resource)
The following input variables are required:
Description: The name of the Azure Automation Account to create.
Type: string
Description: The Azure region where the resources will be deployed.
Type: string
Description: The name of the Log Analytics Workspace to create.
Type: string
Description: The name of the Azure Resource Group where the resources will be created.
Type: string
The following input variables are optional (have default values):
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
Description: The identity to assign to the Azure Automation Account.
Type:
object({
type = string
identity_ids = optional(set(string), null)
})
Default: null
Description: Whether or not local authentication is enabled for the Azure Automation Account.
Type: bool
Default: true
Description: The Azure region of the Azure Automation Account to deploy. This suppports overriding the location variable in specific cases.
Type: string
Default: null
Description: Whether or not public network access is enabled for the Azure Automation Account.
Type: bool
Default: true
Description: The name of the SKU for the Azure Automation Account to create.
Type: string
Default: "Basic"
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
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
Description: The Log Analytics Solution Plans to create.
Type:
list(object({
product = string
publisher = optional(string, "Microsoft")
}))
Default:
[
{
"product": "OMSGallery/AgentHealthAssessment",
"publisher": "Microsoft"
},
{
"product": "OMSGallery/AntiMalware",
"publisher": "Microsoft"
},
{
"product": "OMSGallery/ChangeTracking",
"publisher": "Microsoft"
},
{
"product": "OMSGallery/ContainerInsights",
"publisher": "Microsoft"
},
{
"product": "OMSGallery/Security",
"publisher": "Microsoft"
},
{
"product": "OMSGallery/SecurityInsights",
"publisher": "Microsoft"
},
{
"product": "OMSGallery/ServiceMap",
"publisher": "Microsoft"
},
{
"product": "OMSGallery/SQLAdvancedThreatProtection",
"publisher": "Microsoft"
},
{
"product": "OMSGallery/SQLAssessment",
"publisher": "Microsoft"
},
{
"product": "OMSGallery/SQLVulnerabilityAssessment",
"publisher": "Microsoft"
},
{
"product": "OMSGallery/Updates",
"publisher": "Microsoft"
},
{
"product": "OMSGallery/VMInsights",
"publisher": "Microsoft"
}
]
Description: Whether or not to allow resource-only permissions for the Log Analytics Workspace.
Type: bool
Default: true
Description: Whether or not to force the use of customer-managed keys for query in the Log Analytics Workspace.
Type: bool
Default: null
Description: The daily ingestion quota in GB for the Log Analytics Workspace.
Type: number
Default: null
Description: Whether or not internet ingestion is enabled for the Log Analytics Workspace.
Type: bool
Default: true
Description: Whether or not internet query is enabled for the Log Analytics Workspace.
Type: bool
Default: true
Description: Whether or not local authentication is disabled for the Log Analytics Workspace.
Type: bool
Default: false
Description: The reservation capacity in GB per day for the Log Analytics Workspace.
Type: number
Default: null
Description: The number of days to retain data for the Log Analytics Workspace.
Type: number
Default: 30
Description: The SKU to use for the Log Analytics Workspace.
Type: string
Default: "PerGB2018"
Description: A boolean flag to determine whether to deploy the Azure Resource Group or not.
Type: bool
Default: true
Description: A map of tags to apply to the resources created.
Type: map(string)
Default: null
The following outputs are exported:
Description: A curated output of the Azure Automation Account.
Description: A curated output of the Log Analytics Workspace.
Description: A curated output of the Azure Resource Group.
No modules.
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.