Skip to main content

How to control the 'Propagate Default Route' setting of a Azure VHub Network Connection from code

 Using Azure Virtual WAN for your hub/spoke network and want to know how to control the 'Propagate Default Route' setting on a Azure VHub Network Connection via code? Modifying this setting via the UI is easy. Go to the specific virtual network connection in the Virtual network connections setting of the Virtual WAN and change the value from Enable into Disable or vice versa. How to do this via code was a mystery for me until I consulted Microsoft support.

If you consult the documentation for maintaining the virtual hub network connection you don't find a setting named 'Propogate Default Route' or a mention in the description about it.

Microsoft Support explained that the attribute enableInternetSecurity, with description 'Enable internet security.', is actually controlling the behavior off the option 'Propagate Default Route'. The value true will enable it and the value false will disable this setting. I tested it and this attribute is controlling the 'Propagate Default Route' behavior on the VHub network connection.



Comments