Repository navigation
[Network] az network virtual-network-appliance: Add support for --capacity-provider - #34318
Merged
Ethan Yang (necusjz) merged 2 commits intoNov 6, 2026
Merged
Conversation
Contributor
|
Hi Jian Hui (@huiii99), |
Collaborator
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
Jian Hui (huiii99)
force-pushed
the
network-vna-support-34289
branch
from
November 6, 2026 01:41
8e9e361 to
96894cd
Compare
Jian Hui (huiii99)
marked this pull request as ready for review
November 6, 2026 01:41
Member
Author
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
Contributor
There was a problem hiding this comment.
🟡 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-providerto 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
Ethan Yang (necusjz)
approved these changes
Nov 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

🤖 PR Validation —⚠️ Review suggested
Related command
az network virtual-network-applianceDescription
Upgrade to API
2026-03-01and add--capacity-providersupport 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-providerThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.