[Network] az network nat gateway: Add --nat64 to enable/disable NAT64 on StandardV2 NAT gateways#33679
Open
huiii99 wants to merge 3 commits into
Open
[Network] az network nat gateway: Add --nat64 to enable/disable NAT64 on StandardV2 NAT gateways#33679huiii99 wants to merge 3 commits into
az network nat gateway: Add --nat64 to enable/disable NAT64 on StandardV2 NAT gateways#33679huiii99 wants to merge 3 commits into
Conversation
️✔️AzureCLI-FullTest
|
|
| rule | cmd_name | rule_message | suggest_message |
|---|---|---|---|
| network nat gateway create | cmd network nat gateway create added parameter nat64 |
||
| network nat gateway update | cmd network nat gateway update added parameter nat64 |
Collaborator
|
Network |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the az network nat gateway AAZ-generated commands to use the newer 2025-07-01 Network API version and adds support for a new --nat64 argument on create/update, surfacing the nat64 property in show/list output. It also updates/records tests to validate the new behavior.
Changes:
- Add
--nat64toaz network nat gateway createandaz network nat gateway update, and surfacenat64inshow/list. - Bump NAT Gateway operations to API version
2025-07-01across AAZ command implementations and test recordings. - Add a new live test + recording for NAT64 create/update/show/list flows.
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src/azure-cli/azure/cli/command_modules/network/tests/latest/test_natgateway_commands.py | Adds a live test validating --nat64 behavior and output. |
| src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_subnet_detach_nat_gateway.yaml | Updates recorded NAT Gateway API version to 2025-07-01. |
| src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_natgateway_pipv6_param_formats.yaml | Updates recorded NAT Gateway API version to 2025-07-01. |
| src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_natgateway_nat64.yaml | New recording covering NAT64 create/update/show/list/delete flow. |
| src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_natgateway_empty_create.yaml | Updates recorded NAT Gateway API version to 2025-07-01. |
| src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_natgateway_basic.yaml | Updates recorded NAT Gateway API version to 2025-07-01. |
| src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/nat/gateway/_wait.py | Bumps API version and adds nat64 (and related schema updates) to the wait schema. |
| src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/nat/gateway/_update.py | Adds --nat64, bumps API version, and updates request/response schema accordingly. |
| src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/nat/gateway/_show.py | Bumps API version and includes nat64 in output schema. |
| src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/nat/gateway/_list.py | Bumps API version and includes nat64 in list output schema. |
| src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/nat/gateway/_delete.py | Bumps API version for delete. |
| src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/nat/gateway/_create.py | Adds --nat64, bumps API version, and updates request/response schema accordingly. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Related command
az network nat gateway createaz network nat gateway updateaz network nat gateway showaz network nat gateway listDescription
Add a new
--nat64parameter toaz network nat gateway createandaz network nat gateway update, allowing customers to enable or disable NAT64 on StandardV2 SKU NAT gateways. Accepted values:Enabled,Disabled,None. Thenat64property is surfaced inshow/listoutput.resolve #33646
aaz Azure/aaz#1038
Testing Guide
azdev test test_natgateway_nat64 --liveHistory Notes
[Network]
az network nat gateway create/update: Add--nat64to enable/disable NAT64 on StandardV2 NAT gatewaysThis 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.