Skip to content

[Network] Add move IP configurations command - #34025

Open
rajanalavarnitha-wq wants to merge 2 commits into
Azure:devfrom
rajanalavarnitha-wq:srajanala/move-ip-configurations-cli
Open

rajanalavarnitha-wq wants to merge 2 commits into
Azure:devfrom
rajanalavarnitha-wq:srajanala/move-ip-configurations-cli

Conversation

@rajanalavarnitha-wq

@rajanalavarnitha-wq rajanalavarnitha-wq commented Sep 2, 2026

Copy link
Copy Markdown

🤖 PR Validation — ⚠️ Review suggested

Breaking Changes Tests
⚠️ None ️✔️ 130/130
⚠️AzureCLI-BreakingChangeTest
⚠️network
rule cmd_name rule_message suggest_message
⚠️ 1001 - CmdAdd network vnet move-ip-configurations cmd network vnet move-ip-configurations added

Description

Adds the preview AAZ command az network vnet move-ip-configurations for the Microsoft.Network VirtualNetworks_MoveIpConfigurations action in API version 2025-09-01.

The command accepts source/target IP configuration resource ID pairs, supports --no-wait, and polls the Azure-AsyncOperation URL by default.

Related changes

Testing

  • python -m pytest .../test_move_ip_configurations_command.py -q (2 passed)
  • python -m flake8 on changed command and test files
  • Command registration and help loading verified

Release request

Requested for Azure CLI 2.90.0 / September 2026. Inclusion is understood to be best effort because the original milestone deadline has passed.

Add a preview AAZ command for the VirtualNetworks MoveIpConfigurations operation using API version 2025-09-01.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 957dff6d-b827-4578-85f8-1e0bc9258733
Copilot AI lite review requested due to automatic review settings September 2, 2026 23:25
@rajanalavarnitha-wq
rajanalavarnitha-wq requested a review from a team as a code owner September 2, 2026 23:25
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

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.

🟢 Approval recommended

The new AAZ command is correctly registered, uses the expected LRO polling strategy and --no-wait pattern, and includes focused tests validating registration and schema basics.

Pull request overview

Adds a new preview AAZ command to the Network module to invoke the Microsoft.Network VirtualNetworks_MoveIpConfigurations action (API version 2025-09-01), enabling users to move IP configuration resource ID pairs with LRO polling and --no-wait support.

Changes:

  • Introduces az network vnet move-ip-configurations as a preview AAZ command targeting VirtualNetworksMoveIpConfigurations (POST) with final-state-via: azure-async-operation.
  • Wires the new command into the vnet AAZ package exports so it is discovered/loaded by the AAZ command loader.
  • Adds unit tests to verify command registration and argument schema requirements/options.
File summaries
File Description
src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/vnet/_move_ip_configurations.py New generated AAZ command implementing the MoveIpConfigurations action with LRO polling and required args.
src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/vnet/init.py Exposes the new command module via package imports for AAZ discovery/loading.
src/azure-cli/azure/cli/command_modules/network/tests/latest/test_move_ip_configurations_command.py Adds tests for command registration and argument schema validation.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

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

@yonzhan

Copy link
Copy Markdown
Collaborator

Network

Import the generated command through the resource-group package so the test works before and after AAZ modules are compacted into __cmds.py.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 40d0dbb8-1823-4f70-ab16-599e0aa947eb
@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

act-quality-productivity-squad 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.

6 participants