Skip to content

{Network} AppGateway WAF support HTTPDDoS rule set#32374

Merged
necusjz merged 3 commits intoAzure:devfrom
cxznmhdcxz:waf-policy-managed-rule-HTTPDDoS
Nov 5, 2025
Merged

{Network} AppGateway WAF support HTTPDDoS rule set#32374
necusjz merged 3 commits intoAzure:devfrom
cxznmhdcxz:waf-policy-managed-rule-HTTPDDoS

Conversation

@cxznmhdcxz
Copy link
Member

@cxznmhdcxz cxznmhdcxz commented Nov 4, 2025

Related command

az network application-gateway waf-policy
az network application-gateway waf-policy managed-rule rule-set

Description

resolve #32300
resolve #32301

aaz Azure/aaz#891

Testing Guide

History Notes

[Network] az network application-gateway waf-policy managed-rule: Support Microsoft_HTTPDDoSRuleSet rule set
[Network] az network application-gateway waf-policy: Remove option None for WAF rule sensitivity


This checklist is used to make sure that common guidelines for a pull request are followed.

@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Nov 4, 2025

️✔️AzureCLI-FullTest
️✔️acr
️✔️latest
️✔️3.12
️✔️3.13
️✔️acs
️✔️latest
️✔️3.12
️✔️3.13
️✔️advisor
️✔️latest
️✔️3.12
️✔️3.13
️✔️ams
️✔️latest
️✔️3.12
️✔️3.13
️✔️apim
️✔️latest
️✔️3.12
️✔️3.13
️✔️appconfig
️✔️latest
️✔️3.12
️✔️3.13
️✔️appservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️aro
️✔️latest
️✔️3.12
️✔️3.13
️✔️backup
️✔️latest
️✔️3.12
️✔️3.13
️✔️batch
️✔️latest
️✔️3.12
️✔️3.13
️✔️batchai
️✔️latest
️✔️3.12
️✔️3.13
️✔️billing
️✔️latest
️✔️3.12
️✔️3.13
️✔️botservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️cdn
️✔️latest
️✔️3.12
️✔️3.13
️✔️cloud
️✔️latest
️✔️3.12
️✔️3.13
️✔️cognitiveservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️compute_recommender
️✔️latest
️✔️3.12
️✔️3.13
️✔️computefleet
️✔️latest
️✔️3.12
️✔️3.13
️✔️config
️✔️latest
️✔️3.12
️✔️3.13
️✔️configure
️✔️latest
️✔️3.12
️✔️3.13
️✔️consumption
️✔️latest
️✔️3.12
️✔️3.13
️✔️container
️✔️latest
️✔️3.12
️✔️3.13
️✔️containerapp
️✔️latest
️✔️3.12
️✔️3.13
️✔️core
️✔️latest
️✔️3.12
️✔️3.13
️✔️cosmosdb
️✔️latest
️✔️3.12
️✔️3.13
️✔️databoxedge
️✔️latest
️✔️3.12
️✔️3.13
️✔️dls
️✔️latest
️✔️3.12
️✔️3.13
️✔️dms
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventgrid
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventhubs
️✔️latest
️✔️3.12
️✔️3.13
️✔️feedback
️✔️latest
️✔️3.12
️✔️3.13
️✔️find
️✔️latest
️✔️3.12
️✔️3.13
️✔️hdinsight
️✔️latest
️✔️3.12
️✔️3.13
️✔️identity
️✔️latest
️✔️3.12
️✔️3.13
️✔️iot
️✔️latest
️✔️3.12
️✔️3.13
️✔️keyvault
️✔️latest
️✔️3.12
️✔️3.13
️✔️lab
️✔️latest
️✔️3.12
️✔️3.13
️✔️managedservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️maps
️✔️latest
️✔️3.12
️✔️3.13
️✔️marketplaceordering
️✔️latest
️✔️3.12
️✔️3.13
️✔️monitor
️✔️latest
️✔️3.12
️✔️3.13
️✔️mysql
️✔️latest
️✔️3.12
️✔️3.13
️✔️netappfiles
️✔️latest
️✔️3.12
️✔️3.13
️✔️network
️✔️latest
️✔️3.12
️✔️3.13
️✔️policyinsights
️✔️latest
️✔️3.12
️✔️3.13
️✔️privatedns
️✔️latest
️✔️3.12
️✔️3.13
️✔️profile
️✔️latest
️✔️3.12
️✔️3.13
️✔️rdbms
️✔️latest
️✔️3.12
️✔️3.13
️✔️redis
️✔️latest
️✔️3.12
️✔️3.13
️✔️relay
️✔️latest
️✔️3.12
️✔️3.13
️✔️resource
️✔️latest
️✔️3.12
️✔️3.13
️✔️role
️✔️latest
️✔️3.12
️✔️3.13
️✔️search
️✔️latest
️✔️3.12
️✔️3.13
️✔️security
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicebus
️✔️latest
️✔️3.12
️✔️3.13
️✔️serviceconnector
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicefabric
️✔️latest
️✔️3.12
️✔️3.13
️✔️signalr
️✔️latest
️✔️3.12
️✔️3.13
️✔️sql
️✔️latest
️✔️3.12
️✔️3.13
️✔️sqlvm
️✔️latest
️✔️3.12
️✔️3.13
️✔️storage
️✔️latest
️✔️3.12
️✔️3.13
️✔️synapse
️✔️latest
️✔️3.12
️✔️3.13
️✔️telemetry
️✔️latest
️✔️3.12
️✔️3.13
️✔️util
️✔️latest
️✔️3.12
️✔️3.13
️✔️vm
️✔️latest
️✔️3.12
️✔️3.13

@azure-client-tools-bot-prd
Copy link

Hi @cxznmhdcxz,
Since the current milestone time is less than 7 days, this pr may not catch up with this release.

@yonzhan
Copy link
Collaborator

yonzhan commented Nov 4, 2025

Thank you for your contribution! We will review the pull request and get back to you soon.

@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Nov 4, 2025

⚠️AzureCLI-BreakingChangeTest
⚠️network
rule cmd_name rule_message suggest_message
⚠️ 1010 - ParaPropUpdate network application-gateway waf-policy create cmd network application-gateway waf-policy create update parameter rule_set_type: updated property choices from ['Microsoft_BotManagerRuleSet', 'Microsoft_DefaultRuleSet', 'OWASP'] to ['Microsoft_BotManagerRuleSet', 'Microsoft_DefaultRuleSet', 'Microsoft_HTTPDDoSRuleSet', 'OWASP']
⚠️ 1010 - ParaPropUpdate network application-gateway waf-policy managed-rule exclusion rule-set add cmd network application-gateway waf-policy managed-rule exclusion rule-set add update parameter rule_set_type: updated property choices from ['Microsoft_BotManagerRuleSet', 'Microsoft_DefaultRuleSet', 'OWASP'] to ['Microsoft_BotManagerRuleSet', 'Microsoft_DefaultRuleSet', 'Microsoft_HTTPDDoSRuleSet', 'OWASP']
⚠️ 1010 - ParaPropUpdate network application-gateway waf-policy managed-rule exclusion rule-set remove cmd network application-gateway waf-policy managed-rule exclusion rule-set remove update parameter rule_set_type: updated property choices from ['Microsoft_BotManagerRuleSet', 'Microsoft_DefaultRuleSet', 'OWASP'] to ['Microsoft_BotManagerRuleSet', 'Microsoft_DefaultRuleSet', 'Microsoft_HTTPDDoSRuleSet', 'OWASP']
⚠️ 1010 - ParaPropUpdate network application-gateway waf-policy managed-rule rule-set add cmd network application-gateway waf-policy managed-rule rule-set add update parameter rule_set_type: updated property choices from ['Microsoft_BotManagerRuleSet', 'Microsoft_DefaultRuleSet', 'OWASP'] to ['Microsoft_BotManagerRuleSet', 'Microsoft_DefaultRuleSet', 'Microsoft_HTTPDDoSRuleSet', 'OWASP']
⚠️ 1010 - ParaPropUpdate network application-gateway waf-policy managed-rule rule-set remove cmd network application-gateway waf-policy managed-rule rule-set remove update parameter rule_set_type: updated property choices from ['Microsoft_BotManagerRuleSet', 'Microsoft_DefaultRuleSet', 'OWASP'] to ['Microsoft_BotManagerRuleSet', 'Microsoft_DefaultRuleSet', 'Microsoft_HTTPDDoSRuleSet', 'OWASP']
⚠️ 1010 - ParaPropUpdate network application-gateway waf-policy managed-rule rule-set update cmd network application-gateway waf-policy managed-rule rule-set update update parameter rule_set_type: updated property choices from ['Microsoft_BotManagerRuleSet', 'Microsoft_DefaultRuleSet', 'OWASP'] to ['Microsoft_BotManagerRuleSet', 'Microsoft_DefaultRuleSet', 'Microsoft_HTTPDDoSRuleSet', 'OWASP']

@github-actions
Copy link

github-actions bot commented Nov 4, 2025

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

@microsoft-github-policy-service microsoft-github-policy-service bot added the Auto-Assign Auto assign by bot label Nov 4, 2025
@cxznmhdcxz cxznmhdcxz changed the title {Network} WAF supports HTTPDDoS rule set {Network} AppGateway WAF support HTTPDDoS rule set Nov 4, 2025
@cxznmhdcxz cxznmhdcxz marked this pull request as ready for review November 4, 2025 08:38
Copilot AI review requested due to automatic review settings November 4, 2025 08:38
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request adds support for the Microsoft_HTTPDDoSRuleSet type in Azure Application Gateway WAF policies and updates the API version to 2025-03-01. The main changes include:

  • Adding Microsoft_HTTPDDoSRuleSet to the available rule set types for WAF policies
  • Implementing default sensitivity value of "Medium" for HTTPDDoSRuleSet rules when not explicitly specified
  • Updating the API version from 2024-07-01 to 2025-03-01 across multiple AAZ modules
  • Adding test coverage for the new rule set type with sensitivity validation
  • Adding virtual network creation with default-outbound configuration in test setup

Reviewed Changes

Copilot reviewed 17 out of 25 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
custom.py Added Microsoft_HTTPDDoSRuleSet enum value and logic to set default sensitivity to "Medium" for HTTPDDoSRuleSet rules
test_network_commands.py Added test case for HTTPDDoSRuleSet with sensitivity validation, added VNet creation with default-outbound false flag
_update.py Updated API version to 2025-03-01, removed "None" from sensitivity enum, added new schema properties
_wait.py Updated API version to 2025-03-01, added new schema properties for application gateway and related resources
_delete.py Updated API version to 2025-03-01
test recordings Updated test recordings with new API version and test data

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@necusjz
Copy link
Member

necusjz commented Nov 5, 2025

brilliant work!

@necusjz necusjz merged commit a469a8c into Azure:dev Nov 5, 2025
53 of 54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Auto-Assign Auto assign by bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove support for Sensitivity value None for HTTPDDoSRuleSet az network application-gateway waf-policy does not support HTTPDDoS 1.0 ruleset

3 participants