Hello Kannan Vanniarajan,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that you would like to customize the ASN number of VHUB which is connected with VWAN.
In your design, the gateway ASN is 65515, and BGP over IPsec is not supported because the remote Virtual WAN receives routes with 65515 already in the AS path, so BGP loop prevention will drop those routes. The supported solution for this exact architecture is to use static routing, not a custom vHub ASN. - https://learn.microsoft.com/en-us/azure/virtual-wan/virtual-wan-connectivity
What you need to do is to:
- Remove the custom
virtualRouterAsn configuration from Crossplane/IaC for this vWAN-to-vWAN gateway design.
- Disable BGP on the IPsec tunnel path between the Virtual WAN environments.
- Configure the VPN sites and local network gateways with the required static address spaces.
- Confirm there is no overlapping address space between all VNets, hubs, and connected networks.
- Validate connectivity and route visibility after the static routes are applied.
If dynamic routing with BGP is mandatory, the supported redesign is to use SD-WAN/NVA appliances in the Virtual WAN hub or in peered spoke VNets, then configure BGP using unique non-reserved ASNs. Azure-reserved ASNs such as 65515, 65517, 65518, 65519, and 65520 must not be used for the NVA ASN. - https://learn.microsoft.com/en-us/azure/virtual-wan/virtual-wan-connectivity, https://learn.microsoft.com/en-us/azure/virtual-wan/scenario-bgp-peering-hub
There is no supported customer-side configuration, Crossplane setting, ARM setting, or CLI workaround that makes this specific Azure-managed vWAN-to-vWAN VPN gateway design support BGP by changing the vHub ASN. Azure Support is not required either to apply the supported fix, which is static routing.
Use the below official resources for more reading and implementation steps:
I hope this is helpful. Please! Do not hesitate to let me know if you have any other questions, steps or clarifications.
Please do not close the thread by upvoting and accepting the answer if any part of it is helpful.