Add Move-AzVirtualNetworkIpConfiguration cmdlet for moveIpConfigurations API#29624
Open
rajanalavarnitha-wq wants to merge 3 commits into
Open
Conversation
Add new cmdlet to move secondary private IP configurations between
network interfaces within a virtual network. This corresponds to the
POST /virtualNetworks/{vnetName}/moveIpConfigurations REST API.
New cmdlets:
- Move-AzVirtualNetworkIpConfiguration: Moves IP configurations
- New-AzMoveIpConfigurationItem: Helper to construct move items
SDK additions:
- MoveIpConfigurationsRequest and MoveIpConfigurationItem models
- IVirtualNetworksOperations.MoveIpConfigurations (LRO with polling)
- VirtualNetworksOperations implementation and extensions
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
| Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status. |
Collaborator
|
/azp run |
Contributor
|
Azure Pipelines successfully started running 3 pipeline(s). |
The moveIpConfigurations API is only available starting from api-version 2025-09-01. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Collaborator
|
/azp run |
Contributor
|
Azure Pipelines successfully started running 3 pipeline(s). |
Contributor
|
Hi @rajanalavarnitha-wq, please don't manually update the files under src/Network/Network.Management.Sdk/Generated. |
The SDK files under Network.Management.Sdk/Generated/ should not be manually edited. They will be auto-generated once the SDK generation from the merged Swagger (PR #42717) is complete. Keeping only the cmdlet layer (Models, Commands, manifest, changelog). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Collaborator
|
/azp run |
Contributor
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
This PR was labeled "needs-revision" because it has unresolved review comments or CI failures. |
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.
Summary
Adds PowerShell cmdlets for the
moveIpConfigurationsREST API on virtual networks. This API moves secondary private IP configurations between network interfaces within a virtual network.New Cmdlets
-AsJobfor background execution.API Details
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/moveIpConfigurationsUsage Example
Changes
MoveIpConfigurationsRequest,MoveIpConfigurationItemIVirtualNetworksOperations.MoveIpConfigurations(LRO with polling)PSMoveIpConfigurationItemMove-AzVirtualNetworkIpConfiguration,New-AzMoveIpConfigurationItemAz.Network.psd1to export new cmdletsChangeLog.mdTesting