Skip to content

[Network] Add move IP configurations command - #34025

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

[Network] Add move IP configurations command#34025
rajanalavarnitha-wq wants to merge 1 commit 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 — ❌ Action needed

Breaking Changes Tests
⚠️ None ❌ 128/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
❌AzureCLI-FullTest
️✔️acr
️✔️latest
️✔️3.12
️✔️3.14
️✔️acs
️✔️latest
️✔️3.12
️✔️3.14
️✔️advisor
️✔️latest
️✔️3.12
️✔️3.14
️✔️ams
️✔️latest
️✔️3.12
️✔️3.14
️✔️apim
️✔️latest
️✔️3.12
️✔️3.14
️✔️appconfig
️✔️latest
️✔️3.12
️✔️3.14
️✔️appservice
️✔️latest
️✔️3.12
️✔️3.14
️✔️aro
️✔️latest
️✔️3.12
️✔️3.14
️✔️backup
️✔️latest
️✔️3.12
️✔️3.14
️✔️batch
️✔️latest
️✔️3.12
️✔️3.14
️✔️batchai
️✔️latest
️✔️3.12
️✔️3.14
️✔️billing
️✔️latest
️✔️3.12
️✔️3.14
️✔️botservice
️✔️latest
️✔️3.12
️✔️3.14
️✔️cloud
️✔️latest
️✔️3.12
️✔️3.14
️✔️cognitiveservices
️✔️latest
️✔️3.12
️✔️3.14
️✔️compute_recommender
️✔️latest
️✔️3.12
️✔️3.14
️✔️computefleet
️✔️latest
️✔️3.12
️✔️3.14
️✔️config
️✔️latest
️✔️3.12
️✔️3.14
️✔️configure
️✔️latest
️✔️3.12
️✔️3.14
️✔️consumption
️✔️latest
️✔️3.12
️✔️3.14
️✔️container
️✔️latest
️✔️3.12
️✔️3.14
️✔️containerapp
️✔️latest
️✔️3.12
️✔️3.14
️✔️core
️✔️latest
️✔️3.12
️✔️3.14
️✔️cosmosdb
️✔️latest
️✔️3.12
️✔️3.14
️✔️databoxedge
️✔️latest
️✔️3.12
️✔️3.14
️✔️dls
️✔️latest
️✔️3.12
️✔️3.14
️✔️dms
️✔️latest
️✔️3.12
️✔️3.14
️✔️eventgrid
️✔️latest
️✔️3.12
️✔️3.14
️✔️eventhubs
️✔️latest
️✔️3.12
️✔️3.14
️✔️feedback
️✔️latest
️✔️3.12
️✔️3.14
️✔️find
️✔️latest
️✔️3.12
️✔️3.14
️✔️hdinsight
️✔️latest
️✔️3.12
️✔️3.14
️✔️identity
️✔️latest
️✔️3.12
️✔️3.14
️✔️iot
️✔️latest
️✔️3.12
️✔️3.14
️✔️keyvault
️✔️latest
️✔️3.12
️✔️3.14
️✔️lab
️✔️latest
️✔️3.12
️✔️3.14
️✔️managedservices
️✔️latest
️✔️3.12
️✔️3.14
️✔️maps
️✔️latest
️✔️3.12
️✔️3.14
️✔️marketplaceordering
️✔️latest
️✔️3.12
️✔️3.14
️✔️monitor
️✔️latest
️✔️3.12
️✔️3.14
️✔️mysql
️✔️latest
️✔️3.12
️✔️3.14
️✔️netappfiles
️✔️latest
️✔️3.12
️✔️3.14
❌network
❌latest
❌3.12
Type Test Case Error Message Line
Failed test_move_ip_configurations_command_schema self = <azure.cli.command_modules.network.tests.latest.test_move_ip_configurations_command.TestMoveIpConfigurationsAAZCommand testMethod=test_move_ip_configurations_command_schema>

    def test_move_ip_configurations_command_schema(self):
>       from azure.cli.command_modules.network.aaz.latest.network.vnet._move_ip_configurations import (
            MoveIpConfigurations,
        )
E       ModuleNotFoundError: No module named 'azure.cli.command_modules.network.aaz.latest.network.vnet._move_ip_configurations'

src/azure-cli/azure/cli/command_modules/network/tests/latest/test_move_ip_configurations_command.py:21: ModuleNotFoundError
src/azure-cli/azure/cli/command_modules/network/tests/latest/test_move_ip_configurations_command.py:19
❌3.14
Type Test Case Error Message Line
Failed test_move_ip_configurations_command_schema self = <azure.cli.command_modules.network.tests.latest.test_move_ip_configurations_command.TestMoveIpConfigurationsAAZCommand testMethod=test_move_ip_configurations_command_schema>

    def test_move_ip_configurations_command_schema(self):
>       from azure.cli.command_modules.network.aaz.latest.network.vnet._move_ip_configurations import (
            MoveIpConfigurations,
        )
E       ModuleNotFoundError: No module named 'azure.cli.command_modules.network.aaz.latest.network.vnet._move_ip_configurations'

src/azure-cli/azure/cli/command_modules/network/tests/latest/test_move_ip_configurations_command.py:21: ModuleNotFoundError
src/azure-cli/azure/cli/command_modules/network/tests/latest/test_move_ip_configurations_command.py:19
️✔️policyinsights
️✔️latest
️✔️3.12
️✔️3.14
️✔️postgresql
️✔️latest
️✔️3.12
️✔️3.14
️✔️privatedns
️✔️latest
️✔️3.12
️✔️3.14
️✔️profile
️✔️latest
️✔️3.12
️✔️3.14
️✔️rdbms
️✔️latest
️✔️3.12
️✔️3.14
️✔️redis
️✔️latest
️✔️3.12
️✔️3.14
️✔️relay
️✔️latest
️✔️3.12
️✔️3.14
️✔️resource
️✔️latest
️✔️3.12
️✔️3.14
️✔️role
️✔️latest
️✔️3.12
️✔️3.14
️✔️search
️✔️latest
️✔️3.12
️✔️3.14
️✔️security
️✔️latest
️✔️3.12
️✔️3.14
️✔️servicebus
️✔️latest
️✔️3.12
️✔️3.14
️✔️serviceconnector
️✔️latest
️✔️3.12
️✔️3.14
️✔️servicefabric
️✔️latest
️✔️3.12
️✔️3.14
️✔️signalr
️✔️latest
️✔️3.12
️✔️3.14
️✔️sql
️✔️latest
️✔️3.12
️✔️3.14
️✔️sqlvm
️✔️latest
️✔️3.12
️✔️3.14
️✔️storage
️✔️latest
️✔️3.12
️✔️3.14
️✔️synapse
️✔️latest
️✔️3.12
️✔️3.14
️✔️telemetry
️✔️latest
️✔️3.12
️✔️3.14
️✔️util
️✔️latest
️✔️3.12
️✔️3.14
️✔️vm
️✔️latest
️✔️3.12
️✔️3.14

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

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