Skip to content

[Network] az network ddos-custom-policy: Support specifying frontend IP configuration associations#33413

Merged
necusjz merged 6 commits into
Azure:devfrom
huiii99:feat/network-ddos-custom-policy-update-33383
Jun 11, 2026
Merged

[Network] az network ddos-custom-policy: Support specifying frontend IP configuration associations#33413
necusjz merged 6 commits into
Azure:devfrom
huiii99:feat/network-ddos-custom-policy-update-33383

Conversation

@huiii99

@huiii99 huiii99 commented May 21, 2026

Copy link
Copy Markdown
Member

Related command
az network ddos-custom-policy create/update/show/list/delete
az network lb create/update/show/list/delete
az network lb frontend-ip create/update/show/list/delete

Description

Upgrade the API version of az network ddos-custom-policy and az network lb/az network lb frontend-ip to 2025-07-01.

This change brings the following updates:

  • Add az network ddos-custom-policy list command to retrieve DDoS custom policies.
  • Upgrade az network lb and az network lb frontend-ip API version to 2025-07-01, which adds ddosCustomPolicy support under --ddos-settings on az network lb frontend-ip create/update to attach a DDoS Custom Policy to a Load Balancer's frontend IP configuration.

resolve: #33383
aaz: Azure/aaz#1013

Testing Guide
azdev test test_ddos_custom_policy --live
azdev test test_ddos_custom_policy_attach_to_lb_fip --live

History Notes


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

@azure-client-tools-bot-prd

azure-client-tools-bot-prd Bot commented May 21, 2026

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

@azure-client-tools-bot-prd

Copy link
Copy Markdown

Hi @huiii99,
Since the current milestone time is less than 7 days, this pr will be reviewed in the next milestone.

@azure-client-tools-bot-prd

azure-client-tools-bot-prd Bot commented May 21, 2026

Copy link
Copy Markdown
⚠️AzureCLI-BreakingChangeTest
⚠️network
rule cmd_name rule_message suggest_message
⚠️ 1006 - ParaAdd network cross-region-lb frontend-ip create cmd network cross-region-lb frontend-ip create added parameter ddos_settings
⚠️ 1006 - ParaAdd network cross-region-lb frontend-ip create cmd network cross-region-lb frontend-ip create added parameter default_outbound_access
⚠️ 1006 - ParaAdd network cross-region-lb frontend-ip create cmd network cross-region-lb frontend-ip create added parameter ipam_pool_prefix_allocations
⚠️ 1006 - ParaAdd network cross-region-lb frontend-ip create cmd network cross-region-lb frontend-ip create added parameter service_gateway
⚠️ 1006 - ParaAdd network cross-region-lb frontend-ip create cmd network cross-region-lb frontend-ip create added parameter sharing_scope
⚠️ 1006 - ParaAdd network cross-region-lb frontend-ip update cmd network cross-region-lb frontend-ip update added parameter ddos_settings
⚠️ 1006 - ParaAdd network cross-region-lb frontend-ip update cmd network cross-region-lb frontend-ip update added parameter default_outbound_access
⚠️ 1006 - ParaAdd network cross-region-lb frontend-ip update cmd network cross-region-lb frontend-ip update added parameter ipam_pool_prefix_allocations
⚠️ 1006 - ParaAdd network cross-region-lb frontend-ip update cmd network cross-region-lb frontend-ip update added parameter service_gateway
⚠️ 1006 - ParaAdd network cross-region-lb frontend-ip update cmd network cross-region-lb frontend-ip update added parameter sharing_scope
⚠️ 1006 - ParaAdd network cross-region-lb show cmd network cross-region-lb show added parameter detail_level
⚠️ 1006 - ParaAdd network cross-region-lb update cmd network cross-region-lb update added parameter scope
⚠️ 1006 - ParaAdd network cross-region-lb wait cmd network cross-region-lb wait added parameter detail_level
⚠️ 1001 - CmdAdd network ddos-custom-policy list cmd network ddos-custom-policy list added
⚠️ 1006 - ParaAdd network lb frontend-ip create cmd network lb frontend-ip create added parameter ddos_settings
⚠️ 1006 - ParaAdd network lb frontend-ip create cmd network lb frontend-ip create added parameter default_outbound_access
⚠️ 1006 - ParaAdd network lb frontend-ip create cmd network lb frontend-ip create added parameter ipam_pool_prefix_allocations
⚠️ 1006 - ParaAdd network lb frontend-ip create cmd network lb frontend-ip create added parameter service_gateway
⚠️ 1006 - ParaAdd network lb frontend-ip create cmd network lb frontend-ip create added parameter sharing_scope
⚠️ 1006 - ParaAdd network lb frontend-ip update cmd network lb frontend-ip update added parameter ddos_settings
⚠️ 1006 - ParaAdd network lb frontend-ip update cmd network lb frontend-ip update added parameter default_outbound_access
⚠️ 1006 - ParaAdd network lb frontend-ip update cmd network lb frontend-ip update added parameter ipam_pool_prefix_allocations
⚠️ 1006 - ParaAdd network lb frontend-ip update cmd network lb frontend-ip update added parameter service_gateway
⚠️ 1006 - ParaAdd network lb frontend-ip update cmd network lb frontend-ip update added parameter sharing_scope
⚠️ 1006 - ParaAdd network lb show cmd network lb show added parameter detail_level
⚠️ 1006 - ParaAdd network lb update cmd network lb update added parameter scope
⚠️ 1006 - ParaAdd network lb wait cmd network lb wait added parameter detail_level

@yonzhan

yonzhan commented May 21, 2026

Copy link
Copy Markdown
Collaborator

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

@github-actions

Copy link
Copy Markdown

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>

@huiii99 huiii99 changed the title [Network] az network ddos-custom-policy create/update: Add --front-end-ip-configuration to support specifying frontend IP configuration associations [Network] Upgrade ddos-custom-policy and lb/lb frontend-ip API version to 2025-07-01 to support specifying frontend IP configuration associations May 29, 2026
@huiii99 huiii99 changed the title [Network] Upgrade ddos-custom-policy and lb/lb frontend-ip API version to 2025-07-01 to support specifying frontend IP configuration associations [Network] Upgrade az network ddos-custom-policy and az network lb/lb frontend-ip API version to 2025-07-01 to support specifying frontend IP configuration associations May 29, 2026
@huiii99 huiii99 changed the title [Network] Upgrade az network ddos-custom-policy and az network lb/lb frontend-ip API version to 2025-07-01 to support specifying frontend IP configuration associations [Network] az network ddos-custom-policy and az network lb/lb frontend-ip API version upgrade to 2025-07-01 to support specifying frontend IP configuration associations Jun 3, 2026
@huiii99 huiii99 marked this pull request as ready for review June 3, 2026 02:28
Copilot AI review requested due to automatic review settings June 3, 2026 02:28
@huiii99 huiii99 requested a review from xuming-ms as a code owner June 3, 2026 02:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR upgrades the Network RP API version used by az network ddos-custom-policy and az network lb / az network lb frontend-ip to 2025-07-01, and introduces scenario coverage for listing DDoS custom policies and attaching a DDoS custom policy to a load balancer frontend IP configuration.

Changes:

  • Add az network ddos-custom-policy list (AAZ-generated) and extend ddos custom policy schemas for new association-related properties.
  • Add/adjust live scenario tests validating ddos-custom-policy list and lb frontend-ip --ddos-settings ddos-custom-policy=... attach/detach behavior.
  • Update multiple scenario recordings to align Load Balancer requests with API version 2025-07-01.

Reviewed changes

Copilot reviewed 28 out of 41 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_single_placement_group_default_to_std_lb.yaml Update recorded LB list call to API version 2025-07-01.
src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_extended_location.yaml Update recorded LB show call to API version 2025-07-01.
src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_create_with_nat_rule_v2.yaml Update multiple recorded LB show calls to API version 2025-07-01.
src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_create_options.yaml Update recorded LB show call to API version 2025-07-01.
src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_create_existing_options.yaml Update recorded LB show call to API version 2025-07-01.
src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_create_existing_ids_options.yaml Update recorded LB show call to API version 2025-07-01.
src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_group_deployment.yaml Update recorded LB show call to API version 2025-07-01.
src/azure-cli/azure/cli/command_modules/network/tests/latest/test_network_commands.py Add/adjust scenario coverage for DDoS custom policy list and attach-to-LB-frontend-IP behavior; remove list calls without RG.
src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_nic_front_ip.yaml Update recorded LB GET/PUT calls to API version 2025-07-01.
src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_load_balancer_outbound_rules.yaml Update recorded LB GET/PUT calls to API version 2025-07-01.
src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_load_balancer_ip_config.yaml Update recorded LB GET/PUT calls to API version 2025-07-01.
src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_lb.yaml Update recorded LB list/show/delete calls to API version 2025-07-01.
src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_lb_zone.yaml Update recorded LB GET/PUT calls to API version 2025-07-01.
src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_lb_sku.yaml Update recorded LB GET/PUT calls to API version 2025-07-01.
src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_lb_frontend_ip_zone.yaml Update recorded LB GET/PUT calls to API version 2025-07-01.
src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_lb_edge_zone.yaml Update recorded LB GET call to API version 2025-07-01.
src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_cross_region_load_balancer_ip_config.yaml Update recorded LB GET/PUT calls to API version 2025-07-01.
src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_cross_region_lb.yaml Update recorded LB list/show/update/delete calls to API version 2025-07-01.
src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/_list_nic.py Mark several nested fields as read-only in list-nic response schema.
src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/_delete.py Bump network lb delete API version to 2025-07-01.
src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/_wait.py Bump API version to 2025-07-01 and extend response schema for associations.
src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/_update.py Bump API version to 2025-07-01 and extend response schema for associations.
src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/_show.py Bump API version to 2025-07-01 and extend response schema for associations.
src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/_list.py Add new network ddos-custom-policy list command (AAZ) with paging + schema.
src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/_delete.py Bump API version to 2025-07-01.
src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/_create.py Bump API version to 2025-07-01 and extend response schema for associations.
src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/ddos_custom_policy/init.py Export the new _list command.

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

@necusjz necusjz changed the title [Network] az network ddos-custom-policy and az network lb/lb frontend-ip API version upgrade to 2025-07-01 to support specifying frontend IP configuration associations [Network] az network ddos-custom-policy: Support specifying frontend IP configuration associations Jun 11, 2026
@necusjz necusjz merged commit 05baf7d into Azure:dev Jun 11, 2026
50 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.

DDoS Custom Policy CLI Release

6 participants