Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
In this tutorial, you learn how to:
- Configure metrics alerts through Azure Monitor.
DDoS Protection metric alerts can notify your team through the Azure portal, email, SMS message, push, or voice notification when an attack is reported. For eligible protected public IP addresses, peacetime telemetry (preview) also supports traffic-condition alerts outside attacks. An attack-status alert and a traffic-condition alert serve different purposes.
Prerequisites
- An Azure account with an active subscription. Create an account for free.
- DDoS Network Protection must be enabled on a virtual network or DDoS IP Protection must be enabled on a public IP address.
- Azure DDoS Protection monitors public IP addresses assigned to resources within a virtual network. If your virtual network doesn't have any resources with public IP addresses, you need to create one first.
Configure metric alerts through portal
The following procedure configures an attack-status alert by using Under DDoS attack or not. Use this indicator to detect reported attack activity rather than inferring an attack from metric presence or traffic volume.
Sign in to the Azure portal.
In the search box at the top of the portal, enter Alerts. Select Alerts in the search results.
Select + Create on the navigation bar, then select Alert rule.
On the Create an alert rule page, select + Select scope, then select the following information in the Select a resource page.
Setting Value Filter by subscription Select the Subscription that contains the public IP address you want to log. Filter by resource type Select Public IP Addresses. Resource Select the specific Public IP address you want to log metrics for. Select Done, then select Next: Condition.
On the Condition tab, select the dropdown for Signal name, then select Under DDoS attack or not.
In the Alert logic section, select the following information.
Setting Value Threshold Leave as the default Static. Aggregation type Leave as default Maximum. Value is Select Greater than or equal to. Unit Leave as default Count. Threshold value Enter 1. A reported 0 means no attack was reported for that measurement; 1 means an attack was reported. With Maximum, a value of 1 can refer to any reported attack measurement in the lookback period. Check every Choose how often the alert rule checks if the condition is met. Leave as default 1 minute. Lookback period This is the lookback period, or the time period to look back at each time the data is checked. For example, every 1 minute you are looking at the past 5 minutes. Leave as default 5 minutes. Select Next: Actions then select + Create action group.
Create action group
In the Create action group page, enter the following information, then select Next: Notifications.
Setting Value Subscription Select your Azure subscription that contains the public IP address you want to log. Resource Group Select your Resource group. Region Choose these locations for the broadest set of Azure products and long-term capacity growth. Action Group Provide an action group name that is unique within the resource group. For this example, enter myDDoSAlertsActionGroup. Display name This display name is shown as the action group name in email and SMS notifications. For this example, enter myDDoSAlerts. On the Notifications tab, under Notification type, select the notification type you wish to use. For this example, we select Email/SMS message/Push/Voice. In the Name tab, enter myUnderAttackEmailAlert.
On the Email/SMS message/Push/Voice pane, select the Email check box, then enter the required email. Select OK.
Select Review + create and then select Create.
Note
Review the Action groups documentation for more information on creating action groups.
Continue configuring alerts through portal
In the Create an alert rule page, select Next: Details.
On the Details tab, under Alert rule details section, enter the following information.
Setting Value Severity Select 2 - Warning. Alert rule name Enter myDDoSAlert. Select Review + create and then select Create after validation passes.
When the alert condition is met and Azure Monitor evaluates it, the configured action group can send an email like the following example. Collection and processing delay, evaluation frequency, and lookback affect notification timing. An attack observed within the lookback period might no longer be active when you read the notification.
You can also learn more about configuring webhooks and logic apps for creating alerts.
Traffic-condition alerts during peacetime (preview)
For an eligible protected public IP address, use the same alert-rule workflow with a DDoS traffic metric such as Inbound TCP packets DDoS, Maximum aggregation, and a workload-specific packet-rate threshold. Base the threshold on normal traffic patterns rather than copying an attack-status threshold of 1.
A traffic-condition alert can fire while Under DDoS attack or not reports 0. The alert threshold doesn't change the DDoS mitigation policy or detection threshold. For viewing and interpretation guidance, see View peace time traffic telemetry.
Review existing alerts and automation
Review alerts, workbooks, and automation that infer an attack from metric presence, nonzero traffic, or a transition from missing data. Peacetime traffic data doesn't by itself indicate an attack. Keep attack-status checks tied to Under DDoS attack or not, and treat missing data separately from a reported 0.
With Maximum, a value of 1 in the five-minute lookback means at least one reported measurement in that period was 1. It doesn't necessarily describe the attack state at notification time.
Clean up resources
You can keep your resources for the next tutorial. If no longer needed, delete the alerts.
In the search box at the top of the portal, enter Alerts. Select Alerts in the search results.
Select Alert rules in the middle pane.
In the Alert rules page, select your subscription.
Select the alerts created in this tutorial, then select Delete.
Next steps
In this tutorial, you learned how to configure metric alerts through the Azure portal.
To configure diagnostic logging, continue to the next tutorial.