Add IPv6 support to VirtualHub and enableOnlyIpv6Peering to HubVnetConnection - #29894
Open
carenlim20 wants to merge 1 commit into
Open
Add IPv6 support to VirtualHub and enableOnlyIpv6Peering to HubVnetConnection#29894carenlim20 wants to merge 1 commit into
carenlim20 wants to merge 1 commit into
Conversation
Contributor
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Member
|
/azp run |
Contributor
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
carenlim20
force-pushed
the
carenlim/VirtualHubIPv6-enableOnlyIPv6Peering
branch
from
July 24, 2026 07:04
c7113db to
be2ac2f
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds IPv6-related surface area to the Az.Network Virtual Hub and Hub Virtual Network Connection cmdlets (targeting API version 2025-09-01), exposing new IPv6 properties and parameters across models, cmdlets, help, changelog, and scenario tests.
Changes:
- Added
-AddressPrefixV6toNew-AzVirtualHub/Update-AzVirtualHuband wired it through PS models and SDK models. - Added
-EnableOnlyIpv6PeeringtoNew-AzVirtualHubVnetConnection/Update-AzVirtualHubVnetConnectionand exposed it on the connection PS model and SDK model. - Added a new live-only scenario test covering creation/update flows for the new IPv6 parameters/properties, and documented the new parameters in help + changelog.
Reviewed changes
Copilot reviewed 11 out of 13 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/Network/Network/Models/Cortex/PSVirtualHub.cs | Exposes AddressPrefixV6 and VirtualRouterIpsV6 on the PowerShell Virtual Hub model. |
| src/Network/Network/Models/Cortex/PSHubVirtualNetworkConnection.cs | Exposes EnableOnlyIpv6Peering on the PowerShell Hub VNet connection model. |
| src/Network/Network/help/Update-AzVirtualHubVnetConnection.md | Documents new -EnableOnlyIpv6Peering parameter for update cmdlet. |
| src/Network/Network/help/Update-AzVirtualHub.md | Documents new -AddressPrefixV6 parameter for update cmdlet. |
| src/Network/Network/help/New-AzVirtualHubVnetConnection.md | Documents new -EnableOnlyIpv6Peering parameter for create cmdlet. |
| src/Network/Network/help/New-AzVirtualHub.md | Documents new -AddressPrefixV6 parameter for create cmdlet. |
| src/Network/Network/Cortex/VirtualHub/UpdateAzureRmVirtualHubCommand.cs | Adds AddressPrefixV6 parameter and applies it during VirtualHub update. |
| src/Network/Network/Cortex/VirtualHub/NewAzureRmVirtualHubCommand.cs | Adds AddressPrefixV6 parameter and includes it in VirtualHub create payload. |
| src/Network/Network/Cortex/HubVnetConnection/UpdateAzureRmHubVirtualNetworkConnectionCommand.cs | Adds EnableOnlyIpv6Peering parameter and applies it during connection update. |
| src/Network/Network/Cortex/HubVnetConnection/NewAzureRmHubVirtualNetworkConnectionCommand.cs | Adds EnableOnlyIpv6Peering parameter and includes it in connection create payload. |
| src/Network/Network/ChangeLog.md | Adds an Upcoming Release entry describing the new IPv6 parameters. |
| src/Network/Network.Test/ScenarioTests/CortexTests.ps1 | Adds a new live-only scenario test script for IPv6 hub + IPv6-only peering. |
| src/Network/Network.Test/ScenarioTests/CortexTests.cs | Wires the new test script into xUnit test execution (LiveOnly). |
| src/Network/Network.Management.Sdk/Generated/Models/VirtualHub.cs | Updates generated SDK model to include AddressPrefixV6 and VirtualRouterIpsV6. |
| src/Network/Network.Management.Sdk/Generated/Models/HubVirtualNetworkConnection.cs | Updates generated SDK model to include EnableOnlyIpv6Peering. |
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 11 out of 13 changed files in this pull request and generated 3 comments.
Comments suppressed due to low confidence (1)
src/Network/Network/Cortex/HubVnetConnection/NewAzureRmHubVirtualNetworkConnectionCommand.cs:142
- The cmdlet accepts any string for -EnableOnlyIpv6Peering and will send it to the service, which can lead to avoidable runtime failures. Since only "Enabled"/"Disabled" are intended, add a ValidateSet to enforce allowed values (you can keep PSArgumentCompleter for UX).
[Parameter(
Mandatory = false,
HelpMessage = "Enable only IPv6 peering for this connection.")]
[PSArgumentCompleter("Enabled", "Disabled")]
public string EnableOnlyIpv6Peering { get; set; }
carenlim20
force-pushed
the
carenlim/VirtualHubIPv6-enableOnlyIPv6Peering
branch
from
July 24, 2026 19:51
be2ac2f to
ea78c4f
Compare
carenlim20
force-pushed
the
carenlim/VirtualHubIPv6-enableOnlyIPv6Peering
branch
from
July 24, 2026 22:59
ea78c4f to
60a300e
Compare
Comment on lines
+141
to
+144
| VirtualWan : /subscriptions/{subscriptionId}resourceGroups/testRG/providers/Microsoft.Network/virtualWans/myVirtualWAN | ||
| ResourceGroupName : testRG | ||
| Name : westushub | ||
| Id : /subscriptions/{subscriptionId}resourceGroups/testRG/providers/Microsoft.Network/virtualHubs/westushub |
Comment on lines
+166
to
+169
| VirtualWan : /subscriptions/{subscriptionId}resourceGroups/testRG/providers/Microsoft.Network/virtualWans/myVirtualWAN | ||
| ResourceGroupName : testRG | ||
| Name : westushub | ||
| Id : /subscriptions/{subscriptionId}resourceGroups/testRG/providers/Microsoft.Network/virtualHubs/westushub |
| Name = this.Name, | ||
| VirtualWan = new PSResourceId() { Id = resolvedVirtualWan.Id }, | ||
| AddressPrefix = this.AddressPrefix, | ||
| AddressPrefixV6 = this.AddressPrefixV6, |
VeryEarly
approved these changes
Jul 26, 2026
Collaborator
|
/azp run |
VeryEarly
enabled auto-merge (squash)
July 26, 2026 11:39
Contributor
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
Collaborator
|
@carenlim20 please do not update SDK manually |
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.
Description
Added IPv6 support to Virtual Hub and Hub Virtual Network Connection cmdlets in
Az.Network(API version2025-09-01).Updated cmdlets:
New-AzVirtualHub: Added-AddressPrefixV6parameter to specify the IPv6 address prefix for the VirtualHub.Update-AzVirtualHub: Added-AddressPrefixV6parameter to update the IPv6 address prefix for the VirtualHub.New-AzVirtualHubVnetConnection: Added-EnableOnlyIpv6Peeringparameter to enable only IPv6 peering for the connection.New properties exposed:
VirtualHub.AddressPrefixV6— IPv6 address prefix for the hubVirtualHub.VirtualRouterIpsV6— VirtualRouter IPv6 IPs (read-only)HubVirtualNetworkConnection.EnableOnlyIpv6Peering— Enable/Disable IPv6-only peeringCorresponding swagger PR: Azure/azure-rest-api-specs#44955
Mandatory Checklist
Please choose the target release of Azure PowerShell. (⚠️ Target release is a different concept from API readiness. Please click below links for details.)
Check this box to confirm: I have read the Submitting Changes section of
CONTRIBUTING.mdand reviewed the following information:ChangeLog.mdfile(s) appropriatelysrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.## Upcoming Releaseheader in the past tense.ChangeLog.mdif no new release is required, such as fixing test case only.