Sunday, 16 June 2024

Create and configure Azure DDoS Network Protection using the Azure portal

 

Create and configure Azure DDoS Network Protection using the Azure portal

A DDoS protection plan defines a set of virtual networks that have DDoS Network Protection enabled, across subscriptions. You can configure one DDoS protection plan for your organization and link virtual networks from multiple subscriptions under a single Microsoft Entra tenant to the same plan.

In this QuickStart, you create a DDoS protection plan and link it to a virtual network.

Diagram of DDoS Network Protection.

Prerequisites

Create a DDoS protection plan

  1. Select Create a resource in the upper left corner of the Azure portal.

  2. Search the term DDoS. When DDoS protection plan appears in the search results, select it.

  3. Select Create.

  4. Enter or select the following values.

    SettingValue
    SubscriptionSelect your subscription.
    Resource groupSelect Create new and enter MyResourceGroup.
    NameEnter MyDdosProtectionPlan.
    RegionEnter East US.
  5. Select Review + create then Create


Although DDoS Protection Plan resources needs to be associated with a region, users can enable DDoS protection on Virtual Networks in different regions and across multiple subscriptions under a single Microsoft Entra tenant.

Enable DDoS protection for a virtual network

Enable for a new virtual network

  1. Select Create a resource in the upper left corner of the Azure portal.

  2. Select Networking, and then select Virtual network.

  3. Enter or select the following values then select Next.

    SettingValue
    SubscriptionSelect your subscription.
    Resource groupSelect Use existing, and then select MyResourceGroup
    NameEnter MyVnet.
    RegionEnter East US.
  4. In the Security pane, select Enable on the Azure DDoS Network Protection radio.

  5. Select MyDdosProtectionPlan from the DDoS protection plan pane. The plan you select can be in the same, or different subscription than the virtual network, but both subscriptions must be associated to the same Microsoft Entra tenant.

  6. Select Next. In the IP address pane, select Add IPv4 address space and enter the following values. Then select Add.

    SettingValue
    IPv4 address spaceEnter 10.1.0.0/16.
    Subnet nameUnder Subnet name, select the Add subnet link and enter mySubnet.
    Subnet address rangeEnter 10.1.0.0/24.
  7. Select Review + create then Create.

    Gif of creating a virtual network with Azure DDoS Protection.

 

You cannot move a virtual network to another resource group or subscription when DDoS Protection is enabled for the virtual network. If you need to move a virtual network with DDoS Protection enabled, disable DDoS Protection first, move the virtual network, and then enable DDoS Protection. After the move, the auto-tuned policy thresholds for all the protected public IP addresses in the virtual network are reset.

Enable for an existing virtual network

  1. Create a DDoS protection plan by completing the steps in Create a DDoS protection plan, if you don't have an existing DDoS protection plan.

  2. Enter the name of the virtual network that you want to enable DDoS Network Protection for in the Search resources, services, and docs box at the top of the Azure portal. When the name of the virtual network appears in the search results, select it.

  3. Select DDoS protection, under Settings.

  4. Select Enable. Under DDoS protection plan, select an existing DDoS protection plan, or the plan you created in step 1, and then select Save. The plan you select can be in the same, or different subscription than the virtual network, but both subscriptions must be associated to the same Microsoft Entra tenant.

    Gif of enabling DDoS Protection for a virtual network.

Add Virtual Networks to an existing DDoS protection plan

You can also enable the DDoS protection plan for an existing virtual network from the DDoS Protection plan, not from the virtual network.

  1. Search for "DDoS protection plans" in the Search resources, services, and docs box at the top of the Azure portal. When DDoS protection plans appears in the search results, select it.

  2. Select the desired DDoS protection plan you want to enable for your virtual network.

  3. Select Protected resources under Settings.

  4. Select +Add and select the right subscription, resource group and the virtual network name. Select Add again.

    Gif of adding a virtual network with Azure DDoS Protection.

Configure an Azure DDoS Protection Plan using Azure Firewall Manager (preview)

Azure Firewall Manager is a platform to manage and protect your network resources at scale. You can associate your virtual networks with a DDoS protection plan within Azure Firewall Manager. This functionality is currently available in Public Preview. See Configure an Azure DDoS Protection Plan using Azure Firewall Manager.

Screenshot showing virtual network with DDoS Protection Plan.

Enable DDoS protection for all virtual networks

This built-in policy detects any virtual networks in a defined scope that don't have DDoS Network Protection enabled. This policy will then optionally create a remediation task that creates the association to protect the Virtual Network. See Azure Policy built-in definitions for Azure DDoS Network Protection for full list of built-in policies.

Validate and test

First, check the details of your DDoS protection plan:

  1. Select All services on the top, left of the portal.
  2. Enter DDoS in the Filter box. When DDoS protection plans appear in the results, select it.
  3. Select your DDoS protection plan from the list.

The MyVnet virtual network should be listed.

View protected resources

Under Protected resources, you can view your protected virtual networks and public IP addresses, or add more virtual networks to your DDoS protection plan:

Screenshot showing protected resources.

Disable for a virtual network:

You can disable the DDoS protection from a virtual network, while it is still enabled on other virtual networks. To disable DDoS protection for a virtual network proceed with the following steps.

  1. Enter the name of the virtual network you want to disable DDoS Network Protection for in the Search resources, services, and docs box at the top of the portal. When the name of the virtual network appears in the search results, select it.

  2. Under DDoS Network Protection, select Disable.

    Gif of disabling DDoS Protection within virtual network.

No comments:

Post a Comment