Regex Capabilities in Azure WAF via Terraform

Sena Sarici 20 Reputation points
2024-10-18T12:27:11.9433333+00:00

Hello,

I am currently working on deploying Azure Web Application Firewall (WAF) custom rules using Terraform. I understand that I can use regex expressions when creating custom rules directly through the Azure Portal. However, I am unsure if this regex support is available when defining custom rules in Terraform.

Can anyone confirm whether Terraform's Azure WAF module currently supports regex for custom rules? If not, is there any plan to include this feature in future updates?

For example:

User's image

Thank you for your assistance!

Azure Web Application Firewall
{count} votes

1 answer

Sort by: Most helpful
  1. Deepanshukatara-6769 11,000 Reputation points
    2024-10-18T14:12:42.14+00:00

    Hello , Welcome to MS Q&A

    Yes, Terraforms Azure WAF module supports the use of regular expressions (regex) in custom rules. This capability allows for more advanced matching conditions when creating custom rules for the Web Application Firewall.

    For more detailed information, you can refer to the following resources:https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/web_application_firewall_policy

    Image

    User's image

    Please let us know if any further questions

    Kindly accept answer if it helps

    Thanks

    Deepanshu


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.