Description
Azure provides basic infrastructure DDoS protection. If your public IPs need additional protection, choose DDoS Network Protection for the VNet or DDoS IP Protection for individual IPs.
Potential impact
Without suitable protection and alerts, a large traffic attack can delay responses or recovery. Protect the application layer with a WAF and access controls separately.
Remediation
Review each public IP’s existing protection, availability requirements and cost. For VNet coverage, set the plan ID and enable = true in ddos_protection_plan. Verify coverage on the actual public IPs and check alerts and response procedures.
Examples
Both examples use the same private address range. The second references a separately provisioned protection plan and associates it with the VNet.
Before
resource "azurerm_virtual_network" "example" {
name = "virtualNetwork1"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
address_space = ["10.0.0.0/16"]
}
After
resource "azurerm_virtual_network" "example" {
name = "virtualNetwork1"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
address_space = ["10.0.0.0/16"]
ddos_protection_plan {
id = azurerm_network_ddos_protection_plan.example.id
enable = true
}
}