Skip to content

virtual_network_resource_group: use vnet peering#4294

Draft
mcgov wants to merge 19 commits intomainfrom
mcgov/subnet-naming-template
Draft

virtual_network_resource_group: use vnet peering#4294
mcgov wants to merge 19 commits intomainfrom
mcgov/subnet-naming-template

Conversation

@mcgov
Copy link
Collaborator

@mcgov mcgov commented Feb 23, 2026

Updates subnet addressPrefix selection and naming conventions. The goal is to allow an existing vnet to share a single address space with test VMs, while allowing the test VMs to avoid conflicting address spaces for each RG. This deprecates the need for the subnet_prefix parameter in runbooks; subnets are now named based on the address space (minus the mask).

  • name subnets after the addressPrefix, always create subnets based on address spaces and resource group index.
  • always share 10.0.0.0/24, other nics have address space prefix of 10.$rg_index.$subnet_index.0/24
  • swap vnet address space to 10.0.0.0/8 to fit the new larger address space
  • remove subnet_prefix and references to it in documentation and code.

@mcgov mcgov force-pushed the mcgov/subnet-naming-template branch from 1a5fd29 to 7fa240d Compare February 24, 2026 01:31
@mcgov mcgov changed the title Mcgov/subnet naming template virtual_network_resource_group: use vnet peering Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant