Loading...

Detect traffic anomalies and auto-mitigate spikes with Azure WAF on Microsoft Azure Front Door

Detect traffic anomalies and auto-mitigate spikes with Azure WAF on Microsoft Azure Front Door

Introduction

Azure WAF on Microsoft Azure Front Door provides a centralized protection solution for your web applications. WAF includes built-in rules to defend against common exploits and vulnerabilities, and custom rules so you can tailor the protection to your specific needs.

Challenge
A popular use-case for custom rules is to rate limit Front Door traffic based on the Country or IP address range. However, configuring the rate limit threshold can sometimes be tricky due to varying traffic patterns based on the time of the day or the day of the week. For example, a rate limit rule created to protect against traffic spikes on a weekend (when the traffic volume is lower) may not fire on a weekday because what's a spike on a weekend might be the usual traffic volume for a weekday.

 

Solution

It involves two main steps:

  1. Detect anomalous spikes in traffic
  2. Automatically add Azure WAF rules to filter out the traffic causing the spike

 

In the deep-dive video that follows, we do a step-by-step walkthrough of how to perform these steps. The video is structured as follows:

 

- Introduction

  • What anomaly detection is.
  • What anomaly detection tools are available in Azure.

- Defining the problem statement

  • An overview of the challenge and issue we are trying to solve.

- Exploring the architecture diagram

  • An overview of the various components of the system and how they come together to solve the problem.

- Seeing it in action

  • Setup:
    1. Create a WAF policy
    2. Create a Microsoft Azure Front Door
    3. Link it to the WAF policy we created in Step (1)
    4. Define a dynamic threshold alert on the Azure Front Door endpoint
    5. Create an Azure Function that would run when the alert fires
  • Demo:
    • Simulate a DDOS (distributed denial of service) attack
    • Demonstrate that the attack has started
    • Wait for the alert to fire
    • Demonstrate that Azure WAF rules to mitigate the attack get auto-generated
    • Demonstrate the attack is mitigated after the Azure WAF rules are deployed to the edge

 

You can find the reference code here.

 

 

 

 

Published on:

Learn more
Azure Network Security Blog articles
Azure Network Security Blog articles

Azure Network Security Blog articles

Share post:

Related posts

Azure Cosmos DB Data Explorer now supports Dark Mode

If you spend time in the Azure Portal’s using Azure Cosmos DB Data Explorer, you know it’s a “lots of screens, lots of tabs, lots of work happ...

6 hours ago

Microsoft Entra ID Governance: Azure subscription required to continue using guest governance features

Starting January 30, 2026, Microsoft Entra ID Governance requires tenants to link an Azure subscription to use guest governance features. With...

2 days ago

Azure Developer CLI (azd) – January 2026: Configuration & Performance

This post announces the January 2026 release of the Azure Developer CLI (`azd`). The post Azure Developer CLI (azd) – January 2026: Conf...

3 days ago

Azure SDK Release (January 2026)

Azure SDK releases every month. In this post, you'll find this month's highlights and release notes. The post Azure SDK Release (January 2026)...

4 days ago

Azure Cosmos DB TV Recap – From Burger to Bots – Agentic Apps with Cosmos DB and LangChain.js | Ep. 111

In Episode 111 of Azure Cosmos DB TV, host Mark Brown is joined by Yohan Lasorsa to explore how developers can build agent-powered application...

4 days ago

Accelerate Your Cosmos DB Infrastructure with GitHub Copilot CLI and Azure Cosmos DB Agent Kit

Modern infrastructure work is increasingly agent driven, but only if your AI actually understands the platform you’re deploying. This guide sh...

5 days ago

Accelerate Your Cosmos DB Infrastructure with GitHub Copilot CLI and Azure Cosmos DB Agent Kit

Modern infrastructure work is increasingly agent driven, but only if your AI actually understands the platform you’re deploying. This guide sh...

5 days ago

SharePoint: Migrate the Maps web part to Azure Maps

The SharePoint Maps web part will migrate from Bing Maps to Azure Maps starting March 2026, completing by mid-April. Key changes include renam...

5 days ago
Stay up to date with latest Microsoft Dynamics 365 and Power Platform news!
* Yes, I agree to the privacy policy