Build VNet peering configs with gateway transit, forwarded traffic, cross-subscription peering, and hub-spoke topology settings.
Build VNet peering configs with gateway transit, forwarded traffic, cross-subscription peering, and hub-spoke topology settings.
Required Fields
peeringNamelocalVirtualNetwork.nameremoteVirtualNetwork.namelocalPeeringSettings.allowVirtualNetworkAccessremotePeeringSettings.allowVirtualNetworkAccessOutput will appear here...Build an Azure VNet peering configuration with asymmetric localPeeringSettings/remotePeeringSettings, since peering settings like allowGatewayTransit and useRemoteGateways are configured independently per direction and must be set as logical opposites to work (the hub sets allowGatewayTransit true while the spoke sets useRemoteGateways true, not both sides setting the same field), a mismatched pair on either side of a peering silently fails to provide gateway transit rather than erroring clearly about the misconfiguration. peeringSync.syncRemoteAddressSpace matters specifically when the remote VNet's address space changes after peering is established, without it, the peering can retain a stale view of the remote VNet's address ranges even after the remote side adds or removes address blocks.
The builder validates that peeringName, localVirtualNetwork.name, remoteVirtualNetwork.name, and both localPeeringSettings.allowVirtualNetworkAccess and remotePeeringSettings.allowVirtualNetworkAccess resolve before accepting the JSON as a valid combined peering definition (covering both directions of the peering relationship); it can't verify the two VNets' address spaces don't actually overlap (which would reject the peering) or that a cross-subscription remote VNet reference is actually accessible with the credentials being used, those checks happen only against the live API.
Never mirror allowGatewayTransit and useRemoteGateways as the same value on both peering sides, they're a directional pair (transit-provider sets one, transit-consumer sets the other), a common misconfiguration that fails silently rather than with a clear error.
Enable syncRemoteAddressSpace by default for any peering where the remote VNet's address space might reasonably change over time, the alternative is a manual peering refresh every time, which is easy to forget after the initial setup.
allowForwardedTraffic needs to be explicitly considered whenever a network virtual appliance or route-based forwarding is part of the architecture, the default expectation (only directly-originated traffic crossing the peering) silently blocks forwarded/routed traffic patterns unless this is turned on.
Was this tool helpful?
Disclaimer: This tool runs entirely in your browser. No data is sent to our servers. Always verify outputs before using them in production. AWS, Azure, and GCP are trademarks of their respective owners.