Skip to content

{Network} Revert StandardV2 for NAT Gateway and Public IP#31589

Merged
necusjz merged 1 commit into
devfrom
revert-31532-standardV2-for-nat-gateway-and-public-ip
Jun 3, 2025
Merged

{Network} Revert StandardV2 for NAT Gateway and Public IP#31589
necusjz merged 1 commit into
devfrom
revert-31532-standardV2-for-nat-gateway-and-public-ip

Conversation

@necusjz
Copy link
Copy Markdown
Member

@necusjz necusjz commented Jun 3, 2025

Reverts #31532

Copilot AI review requested due to automatic review settings June 3, 2025 00:18
@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd Bot commented Jun 3, 2025

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

@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd Bot commented Jun 3, 2025

❌AzureCLI-BreakingChangeTest
❌network
rule cmd_name rule_message suggest_message
1007 - ParaRemove network public-ip prefix create cmd network public-ip prefix create removed parameter sku please add back parameter sku for cmd network public-ip prefix create
⚠️ 1010 - ParaPropUpdate network public-ip update cmd network public-ip update update parameter sku: updated property choices from ['Basic', 'Standard', 'StandardV2'] to ['Basic', 'Standard']

Please submit your Breaking Change Pre-announcement ASAP if you haven't already. Please note:

  • Breaking changes can only be merged during the designated breaking change window
  • A pre-announcement must be released at least one month in advance

For more details on how to introduce breaking changes, refer to the documentation: azure-cli/doc/how_to_introduce_breaking_changes.md

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Jun 3, 2025

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

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 3, 2025

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>

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 reverts the changes introduced in azure-cli#31532 by restoring the previous API version settings and removing the recently added “StandardV2” SKU and IPv6–related properties across the public IP and NAT gateway modules. Key changes include:

  • Reverting API versions from 2024-based to versions such as 2022-09-01, 2022-11-01, and 2022-01-01.
  • Removing support for “StandardV2” in SKU enum parameters.
  • Eliminating IPv6–related properties from schemas in public IP and NAT gateway operations.

Reviewed Changes

Copilot reviewed 141 out of 141 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/public_ip/prefix/_show.py API version reverted and IPv6 properties removed.
src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/public_ip/prefix/_list.py API version reversion and condition logic adjustments.
src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/public_ip/_create.py API version reversion and removal of “StandardV2” SKU support.
src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/public_ip/_update.py API version reversion and SKU enum update.
src/azure-cli/azure/cli/command_modules/network/nat/gateway/* API versions reverted for NAT gateway operations.
src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/* & ACS tests Recorded test URIs updated to the reverted API versions.
Comments suppressed due to low confidence (6)

src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/public_ip/prefix/_show.py:263

  • The removal of the IPv6-related property 'public_ip_addresses_v6' should be validated to ensure that no dependent functionality is inadvertently affected.
properties.public_ip_addresses_v6 = AAZListType(... removed)

src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/public_ip/prefix/_show.py:25

  • Reverting the API version to '2022-09-01' should be verified against the service documentation to ensure that it aligns with the supported API for public IP prefixes.
"version": "2022-09-01",

src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/public_ip/prefix/_list.py:54

  • Confirm that the updated condition ordering correctly distinguishes between the two list operations based on the presence of the resource group and subscription ID.
condition_0 = has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id)

src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/public_ip/_create.py:400

  • The removal of the 'StandardV2' option from the SKU enum appears intentional; please ensure that downstream logic and tests are updated accordingly.
enum={"Standard": "Standard"},

src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/public_ip/_update.py:434

  • Ensure that removing 'StandardV2' from the SKU enum in the update command is consistent across all public IP commands and that corresponding tests are updated.
enum={"Standard": "Standard"},

src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/nat/gateway/_wait.py:23

  • Confirm that reverting the NAT gateway API version to '2022-01-01' aligns with current service expectations and that all related operations function correctly.
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/natgateways/{}", "2022-01-01"],

@necusjz necusjz merged commit 434a63e into dev Jun 3, 2025
102 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 Network az network vnet/lb/nic/dns/etc...

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants