An Azure service that provides private connections between Azure datacenters and infrastructure, either on premises or in a colocation environment.
Hello @Vanessa Xu
If the ExpressRoute gateway is migrated from the SiteConnect VNet to the Hub VNet, the spoke-to-SiteConnect VNet peerings would no longer be required specifically for ExpressRoute route advertisement, provided the hub-and-spoke peerings are configured correctly.
In the new design:
- The ExpressRoute gateway resides in the Hub VNet.
- Each spoke VNet is peered directly to the Hub VNet.
- The Hub-to-Spoke peering has Allow gateway transit enabled.
- The Spoke-to-Hub peering has Use remote gateway enabled.
With this configuration, the ExpressRoute gateway in the Hub VNet can learn the address spaces of the peered spoke VNets and advertise those prefixes to on-premises via BGP. Azure automatically advertises the address spaces of the gateway VNet and qualifying peered VNets through the ExpressRoute gateway.
Therefore, once the migration is completed and the hub-spoke peerings are configured with gateway transit appropriately, there is generally no requirement to maintain the existing spoke-to-SiteConnect VNet peerings solely for ExpressRoute route propagation purposes.
As part of the migration, we recommend validating:
- Gateway transit settings on all hub-spoke peerings.
- Effective routes in the spoke VNets.
- Advertised routes on the ExpressRoute circuit.
- BGP route tables on the on-premises routers after the change.
This validation helps ensure the spoke prefixes are being learned and advertised as expected before decommissioning the existing SiteConnect gateway connectivity.
Please "Accept Answer" and “up-vote” wherever the information provided helps you, **this can be beneficial to other community members.