/* --- Built-in Replacements --- This file contains built-in replacements to avoid repeating the same hard-coded values. Replacements are denoted by the dollar-dollar curly braces token (e.g. $${starter_location_01}). The following details each built-in replacements that you can use: `starter_location_01`: This the primary an Azure location sourced from the `starter_locations` variable. This can be used to set the location of resources. `starter_location_02` to `starter_location_##`: These are the secondary Azure locations sourced from the `starter_locations` variable. This can be used to set the location of resources. `starter_location_01_short`: Short code for the primary Azure location. Defaults to the region geo_code, or short_name if no geo_code is available. Can be overridden via the starter_locations_short variable. `starter_location_02_short` to `starter_location_##_short`: Short codes for the secondary Azure locations. Same behavior and override rules as starter_location_01_short. `root_parent_management_group_id`: This is the id of the management group that the ALZ hierarchy will be nested under. `subscription_id_identity`: The subscription ID of the subscription to deploy the identity resources to, sourced from the variable `subscription_ids`. `subscription_id_connectivity`: The subscription ID of the subscription to deploy the connectivity resources to, sourced from the variable `subscription_ids`. `subscription_id_management`: The subscription ID of the subscription to deploy the management resources to, sourced from the variable `subscription_ids`. `subscription_id_security`: The subscription ID of the subscription to deploy the security resources to, sourced from the variable `subscription_ids`. */ /* --- Starter Locations --- You can define the Azure regions to use throughout the configuration. The first location will be used as the primary location, the second as the secondary location, and so on. */ starter_locations = [""] /* --- Custom Replacements --- You can define custom replacements to use throughout the configuration. */ custom_replacements = { /* --- Custom Name Replacements --- You can define custom names and other strings to use throughout the configuration. You can only use the built in replacements in this section. NOTE: You cannot refer to another custom name in this variable. */ names = { # Defender email security contact defender_email_security_contact = "replace_me@replace_me.com" # Resource group names management_resource_group_name = "rg-management-$${starter_location_01}" asc_export_resource_group_name = "rg-asc-export-$${starter_location_01}" service_health_alerts_resource_group_name = "rg-service-health-alerts-$${starter_location_01}" # Resource names log_analytics_workspace_name = "law-management-$${starter_location_01}" ama_user_assigned_managed_identity_name = "uami-management-ama-$${starter_location_01}" dcr_change_tracking_name = "dcr-change-tracking" dcr_defender_sql_name = "dcr-defender-sql" dcr_vm_insights_name = "dcr-vm-insights" } /* --- Custom Resource Group Identifier Replacements --- You can define custom resource group identifiers to use throughout the configuration. You can only use the templated variables and custom names in this section. NOTE: You cannot refer to another custom resource group identifier in this variable. */ resource_group_identifiers = { management_resource_group_id = "/subscriptions/$${subscription_id_management}/resourcegroups/$${management_resource_group_name}" } /* --- Custom Resource Identifier Replacements --- You can define custom resource identifiers to use throughout the configuration. You can only use the templated variables, custom names and customer resource group identifiers in this variable. NOTE: You cannot refer to another custom resource identifier in this variable. */ resource_identifiers = { ama_change_tracking_data_collection_rule_id = "$${management_resource_group_id}/providers/Microsoft.Insights/dataCollectionRules/$${dcr_change_tracking_name}" ama_mdfc_sql_data_collection_rule_id = "$${management_resource_group_id}/providers/Microsoft.Insights/dataCollectionRules/$${dcr_defender_sql_name}" ama_vm_insights_data_collection_rule_id = "$${management_resource_group_id}/providers/Microsoft.Insights/dataCollectionRules/$${dcr_vm_insights_name}" ama_user_assigned_managed_identity_id = "$${management_resource_group_id}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/$${ama_user_assigned_managed_identity_name}" log_analytics_workspace_id = "$${management_resource_group_id}/providers/Microsoft.OperationalInsights/workspaces/$${log_analytics_workspace_name}" } } /* --- Tags --- This variable can be used to apply tags to all resources that support it. Some resources allow overriding these tags. */ tags = { deployed_by = "terraform" source = "Azure Landing Zones Accelerator" } /* --- Management Resources --- You can use this section to customize the management resources that will be deployed. */ management_resource_settings = { enabled = true location = "$${starter_location_01}" log_analytics_workspace_name = "$${log_analytics_workspace_name}" resource_group_name = "$${management_resource_group_name}" user_assigned_managed_identities = { ama = { name = "$${ama_user_assigned_managed_identity_name}" } } data_collection_rules = { change_tracking = { name = "$${dcr_change_tracking_name}" } defender_sql = { name = "$${dcr_defender_sql_name}" } vm_insights = { name = "$${dcr_vm_insights_name}" } } } /* --- Management Groups and Policy --- You can use this section to customize the management groups and policies that will be deployed. You can further configure management groups and policy by supplying a `lib` folder. This is detailed in the Accelerator documentation. */ management_group_settings = { enabled = true # This is the name of the architecture that will be used to deploy the management resources. # It refers to the alz_custom.alz_architecture_definition.yaml file in the lib folder. # Do not change this value unless you have created another architecture definition # with the name value specified below. architecture_name = "alz_custom" location = "$${starter_location_01}" parent_resource_id = "$${root_parent_management_group_id}" policy_default_values = { ama_change_tracking_data_collection_rule_id = "$${ama_change_tracking_data_collection_rule_id}" ama_mdfc_sql_data_collection_rule_id = "$${ama_mdfc_sql_data_collection_rule_id}" ama_vm_insights_data_collection_rule_id = "$${ama_vm_insights_data_collection_rule_id}" ama_user_assigned_managed_identity_id = "$${ama_user_assigned_managed_identity_id}" ama_user_assigned_managed_identity_name = "$${ama_user_assigned_managed_identity_name}" log_analytics_workspace_id = "$${log_analytics_workspace_id}" resource_group_name_service_health_alerts = "$${service_health_alerts_resource_group_name}" resource_group_name_mdfc = "$${asc_export_resource_group_name}" resource_group_location = "$${starter_location_01}" email_security_contact = "$${defender_email_security_contact}" /* # Example of allowed locations for Sovereign Landing Zones policies allowed_locations = [ "$${starter_location_01}" ] */ } subscription_placement = { identity = { subscription_id = "$${subscription_id_identity}" management_group_name = "identity" } connectivity = { subscription_id = "$${subscription_id_connectivity}" management_group_name = "connectivity" } management = { subscription_id = "$${subscription_id_management}" management_group_name = "management" } security = { subscription_id = "$${subscription_id_security}" management_group_name = "security" } } policy_assignments_to_modify = { alz = { policy_assignments = { Deploy-MDFC-Config-H224 = { parameters = { enableAscForServers = "DeployIfNotExists" enableAscForServersVulnerabilityAssessments = "DeployIfNotExists" enableAscForSql = "DeployIfNotExists" enableAscForAppServices = "DeployIfNotExists" enableAscForStorage = "DeployIfNotExists" enableAscForContainers = "DeployIfNotExists" enableAscForKeyVault = "DeployIfNotExists" enableAscForSqlOnVm = "DeployIfNotExists" enableAscForArm = "DeployIfNotExists" enableAscForOssDb = "DeployIfNotExists" enableAscForCosmosDbs = "DeployIfNotExists" enableAscForCspm = "DeployIfNotExists" } } } } connectivity = { policy_assignments = { Enable-DDoS-VNET = { creation_enabled = false } } } landingzones = { policy_assignments = { Enable-DDoS-VNET = { creation_enabled = false } } } corp = { policy_assignments = { Deploy-Private-DNS-Zones = { creation_enabled = false } } } } /* # Example of how to add management group role assignments management_group_role_assignments = { root_owner_role_assignment = { management_group_name = "root" role_definition_id_or_name = "Owner" principal_id = "00000000-0000-0000-0000-000000000000" } } */ # role_assignment_name_use_random_uuid = false # Uncomment this for backwards compatibility with previous naming convention } connectivity_type = "none" enable_telemetry = true telemetry_additional_content = { deployed_by = "alz-terraform-accelerator" correlation_id = "00000000-0000-0000-0000-000000000000" }