|
| 1 | +--- |
| 2 | +title: Defend API Management against DDoS attacks |
| 3 | +description: Learn how to protect your API Management instance in an external virtual network against volumetric and protocol DDoS attacks by using Azure DDoS Protection Standard. |
| 4 | +services: api-management |
| 5 | +author: dlepow |
| 6 | + |
| 7 | +ms.service: api-management |
| 8 | +ms.topic: how-to |
| 9 | +ms.date: 10/24/2022 |
| 10 | +ms.author: danlep |
| 11 | +--- |
| 12 | +# Defend your Azure API Management instance against DDoS attacks |
| 13 | + |
| 14 | +This article shows how to defend your Azure API Management instance against distributed denial of service (DDoS) attacks by enabling [Azure DDoS Protection](../ddos-protection/ddos-protection-overview.md). Azure DDoS Protection provides enhanced DDoS mitigation features to defend against volumetric and protocol DDoS attacks. |
| 15 | + |
| 16 | +[!INCLUDE [premium-dev.md](../../includes/api-management-availability-premium-dev.md)] |
| 17 | + |
| 18 | +## Supported configurations |
| 19 | + |
| 20 | +Enabling Azure DDoS Protection for API Management is currently available only for instances deployed (injected) in a VNet in [external mode](api-management-using-with-vnet.md). |
| 21 | + |
| 22 | +Currently, Azure DDoS Protection can't be enabled for the following API Management configurations: |
| 23 | + |
| 24 | +* Instances that aren't VNet-injected |
| 25 | +* Instances deployed in a VNet in [internal mode](api-management-using-with-internal-vnet.md) |
| 26 | +* Instances configured with a [private endpoint](private-endpoint.md) |
| 27 | + |
| 28 | +## Prerequisites |
| 29 | + |
| 30 | +* An API Management instance |
| 31 | + * The instance must be deployed in an Azure VNet in [external mode](api-management-using-with-vnet.md) |
| 32 | + * The instance to be configured with an Azure public IP address resource, which is supported only on the API Management `stv2` [compute platform](compute-infrastructure.md). |
| 33 | + * If the instance is hosted on the `stv1` platform, you must [migrate](compute-infrastructure.md#how-do-i-migrate-to-the-stv2-platform) to the `stv2` platform. |
| 34 | +* An Azure DDoS Protection [plan](../ddos-protection/manage-ddos-protection.md) |
| 35 | + * The plan you select can be in the same, or different, subscription than the virtual network and the API Management instance. If the subscriptions differ, they must be associated to the same Azure Active Directory tenant. |
| 36 | + * You may use a plan created using either the Network DDoS protection SKU or IP DDoS Protection SKU (preview). See [Azure DDoS Protection SKU Comparison](../ddos-protection/ddos-protection-sku-comparison.md). |
| 37 | + |
| 38 | + > [!NOTE] |
| 39 | + > Azure DDoS Protection plans incur additional charges. For more information, see [Pricing](https://azure.microsoft.com/pricing/details/ddos-protection/). |
| 40 | + |
| 41 | +## Enable DDoS Protection |
| 42 | + |
| 43 | +Depending on the DDoS Protection plan you use, enable DDoS protection on the virtual network used for your API Management instance, or the IP address resource configured for your virtual network. |
| 44 | + |
| 45 | +### Enable DDoS Protection on the virtual network used for your API Management instance |
| 46 | + |
| 47 | +1. In the [Azure portal](https://portal.azure.com), navigate to the VNet where your API Management is injected. |
| 48 | +1. In the left menu, under **Settings**, select **DDoS protection**. |
| 49 | +1. Select **Enable**, and then select your **DDoS protection plan**. |
| 50 | +1. Select **Save**. |
| 51 | + |
| 52 | + :::image type="content" source="media/protect-with-ddos-protection/enable-ddos-protection.png" alt-text="Screenshot of enabling a DDoS Protection plan on a VNet in the Azure portal."::: |
| 53 | + |
| 54 | +### Enable DDoS protection on the API Management public IP address |
| 55 | + |
| 56 | +If your plan uses the IP DDoS Protection SKU, see [Enable DDoS IP Protection for a public IP address](../ddos-protection/manage-ddos-protection-powershell-ip.md#disable-ddos-ip-protection-for-an-existing-public-ip-address). |
| 57 | + |
| 58 | +## Next steps |
| 59 | + |
| 60 | +* Learn how to verify DDoS protection of your API Management instance by [testing with simulation partners](../ddos-protection/test-through-simulations.md) |
| 61 | +* Learn how to [view and configure Azure DDoS Protection telemetry](../ddos-protection/telemetry.md) |
0 commit comments