Azure Landing Zones Documentation
Home GitHub Issue Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

3 - Turn off DDOS protection plan

You can choose to not deploy a DDOS protection plan. In order to do that, they need to remove the DDOS protection plan configuration and disable the DINE (deploy if not exists) policy. You can either comment out or remove the configuration entirely.

DDOS Protection plan is a critical security protection for public facing services. Carefully consider this and be sure to put in place an alternative solution, such as per IP protection.

The steps to follow are:

  1. Delete the following settings by searching for the keys and removing the line or block

    Setting TypeParent block(s)KeyActionCountNotes
    linecustom_replacements > namesddos_resource_group_nameDelete1
    linecustom_replacements > namesddos_protection_plan_nameDelete1
    linecustom_replacements > resource_group_identifiersddos_protection_plan_resource_group_idDelete1
    linecustom_replacements > resource_identifiers
    management_group_settings
    hub_and_spoke_vnet_virtual_networks > <region> > hub_virtual_network
    ddos_protection_plan_idDelete3+There are multiple instances of this key, delete them all
    blockconnectivity_resource_groupsddosDelete1
    blockhub_and_spoke_vnet_settingsddos_protection_planDelete1
  2. Copy and paste the following inside the management_group_settings > policy_assignments_to_modify

    If you have updated the connectivity management group ID, then you need to update the management group ID in this block setting to match. For example, replace connectivity with contoso-connectivity.
    1
    2
    3
    4
    5
    6
    7
    
    connectivity = {
      policy_assignments = {
        Enable-DDoS-VNET = {
          enforcement_mode = "DoNotEnforce"
        }
      }
    }