Skip to content

[Network] az network virtual-network-appliance: Add support for --capacity-provider - #34318

Merged
Ethan Yang (necusjz) merged 2 commits into
Azure:devfrom
huiii99:network-vna-support-34289
Nov 6, 2026
Merged

Ethan Yang (necusjz) merged 2 commits into
Azure:devfrom
huiii99:network-vna-support-34289

Conversation

@huiii99

@huiii99 Jian Hui (huiii99) commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

🤖 PR Validation — ⚠️ Review suggested

Breaking Changes Tests Suppressions
⚠️ None ️✔️ 130/130 ️✔️ None
⚠️AzureCLI-BreakingChangeTest
⚠️network
rule cmd_name rule_message suggest_message
⚠️ 1006 - ParaAdd network virtual-network-appliance create cmd network virtual-network-appliance create added parameter capacity_provider
⚠️ 1009 - ParaPropRemove network virtual-network-appliance list cmd network virtual-network-appliance list update parameter resource_group: removed property required=True
⚠️ 1006 - ParaAdd network virtual-network-appliance update cmd network virtual-network-appliance update added parameter capacity_provider

Related command

az network virtual-network-appliance

Description

Upgrade to API 2026-03-01 and add --capacity-provider support for create/update. Update existing recordings and add a capacity provider scenario test.

Related issue: #34289
AAZ: Azure/aaz#1152

Testing Guide

  • azdev test test_network_virtual_network_appliance test_network_virtual_network_appliance_private_ip_address_version --series -a "--basetemp=.pytest-tmp-vna".
  • azdev test test_network_virtual_network_appliance_capacity_provider --live --series -a "--basetemp=.pytest-tmp-vna".

History Notes

[Network] az network virtual-network-appliance: Add support for --capacity-provider


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

@x-engineering-agent

Copy link
Copy Markdown
Contributor

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

@yonzhan

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).

@huiii99
Jian Hui (huiii99) force-pushed the network-vna-support-34289 branch from 8e9e361 to 96894cd Compare November 6, 2026 01:41
@huiii99
Jian Hui (huiii99) marked this pull request as ready for review November 6, 2026 01:41
Copilot AI balanced review requested due to automatic review settings November 6, 2026 01:41
@huiii99

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).

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.

🟡 Changes recommended

Test coverage omits subscription-wide appliance listing and does not prove that updating the capacity-provider ID changes the existing reference.

2 open issues
What changed in this PR

This PR extends Azure CLI’s virtual network appliance commands with capacity-provider references and upgrades them to API version 2026-03-01.

Changes:

  • Adds --capacity-provider to create/update and exposes the reference in response schemas.
  • Enables subscription-wide listing when no resource group is supplied.
  • Adds a capacity-provider scenario and updates API versions in existing recordings.
File Description
src/​azure-cli/​azure/​cli/​command_modules/​network/​tests/​latest/​test_network_commands.py Adds capacity-provider create, update, show, and list checks.
src/​azure-cli/​azure/​cli/​command_modules/​network/​tests/​latest/​recordings/​test_network_virtual_network_appliance.yaml Updates appliance requests to the new API version.
src/​azure-cli/​azure/​cli/​command_modules/​network/​tests/​latest/​recordings/​test_network_virtual_network_appliance_private_ip_address_version.yaml Updates IP-version scenario requests to the new API version.
src/​azure-cli/​azure/​cli/​command_modules/​network/​aaz/​latest/​network/​virtual_network_appliance/​_wait.py Updates the API version and response schema used for polling.
src/​azure-cli/​azure/​cli/​command_modules/​network/​aaz/​latest/​network/​virtual_network_appliance/​_update.py Adds capacity-provider updates and refreshes generated schemas.
src/​azure-cli/​azure/​cli/​command_modules/​network/​aaz/​latest/​network/​virtual_network_appliance/​_show.py Exposes capacity-provider data using the new API.
src/​azure-cli/​azure/​cli/​command_modules/​network/​aaz/​latest/​network/​virtual_network_appliance/​_list.py Adds subscription-wide listing and capacity-provider output.
src/​azure-cli/​azure/​cli/​command_modules/​network/​aaz/​latest/​network/​virtual_network_appliance/​_delete.py Upgrades delete requests to the new API version.
src/​azure-cli/​azure/​cli/​command_modules/​network/​aaz/​latest/​network/​virtual_network_appliance/​_create.py Adds capacity-provider input and request serialization.

Review effort: Balanced

@necusjz
Ethan Yang (necusjz) merged commit 3748ca7 into Azure:dev Nov 6, 2026
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

act-quality-productivity-squad Network az network vnet/lb/nic/dns/etc...

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants