[Network] az network virtual-network-appliance create/update: Add --private-ip-address-version to support private ip address version#33315
Conversation
️✔️AzureCLI-FullTest
|
❌AzureCLI-BreakingChangeTest
Please submit your Breaking Change Pre-announcement ASAP if you haven't already. Please note:
|
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
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). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
bcd3272 to
05527b9
Compare
There was a problem hiding this comment.
Pull request overview
This PR updates the az network virtual-network-appliance command surface (AAZ-generated) to support/reflect --private-ip-address-version and validates the behavior via scenario tests and recordings. It also includes an unrelated change that promotes --disable-peering-route on route tables out of preview.
Changes:
- Add a new scenario test covering VNA creation with
--private-ip-address-versionset toIPv4andDualStack, and validateprivateIPAddressVersioninshow/listoutput. - Update AAZ-generated VNA
show/wait/deleteto use Network API version2025-07-01and includeprivateIPAddressVersion(and related schema regeneration changes). - Remove the
is_previewmarker fromaz network route-table create/update --disable-peering-route.
Reviewed changes
Copilot reviewed 5 out of 11 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/azure-cli/azure/cli/command_modules/network/tests/latest/test_network_commands.py | Adds VNA private IP version scenario test; adjusts route-table disable-peering test preparer args. |
| src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_virtual_network_appliance.yaml | Updates recorded VNA calls to api-version=2025-07-01 for the main VNA resource requests. |
| src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/virtual_network_appliance/_wait.py | Bumps VNA wait API version and regenerates output schema to include privateIPAddressVersion and other common-schema helpers. |
| src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/virtual_network_appliance/_show.py | Bumps VNA show API version and regenerates output schema to include privateIPAddressVersion and other common-schema helpers. |
| src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/virtual_network_appliance/_delete.py | Bumps VNA delete API version to 2025-07-01. |
| src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/route_table/_update.py | Removes preview marker for --disable-peering-route. |
| src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/route_table/_create.py | Removes preview marker for --disable-peering-route. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Related command
az network virtual-network-appliance createaz network virtual-network-appliance updateDescription
aaz: Azure/aaz#999
resolve: https://github.com/Azure/CLIPS/issues/10
Support private ip address version in virtual network appliance.
Testing Guide
azdev test test_network_virtual_network_appliance_private_ip_address_versionHistory Notes
This 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.