{ "location": "{{ rt.location }}", "properties": { "disableBgpRoutePropagation": "{{ rt.disableBgpRoutePropagation | default(true) }}", "routes": [ {% for udr in routes | default([]) %} { "name": "{{ udr.name }}", "properties": { "addressPrefix": "{{ udr.address_prefix }}", {% if udr.hasBgpOverride is defined %} "hasBgpOverride": {{ udr.hasBgpOverride }}, {% endif %} {% if 'ppliance' in udr.next_hop_type %} "nextHopType": "VirtualAppliance", {% elif 'nternet' in udr.next_hop_type %} "nextHopType": "Internet", {% elif 'etwork' in udr.next_hop_type %} "nextHopType": "VirtualNetworkGateway", {% elif 'ocal' in udr.next_hop_type %} "nextHopType": "VnetLocal", {% else %} "nextHopType": "None", {% endif %} {% if udr.next_hop_type is undefined or 'ppliance' in udr.next_hop_type %} "nextHopIpAddress": "{{ udr.next_hop_ip_address }}" {% endif %} } }, {% endfor %} ] }, "tags": { {% for key, value in (rt.tags | default({})).items() %} "{{ key }}": "{{ value }}", {% endfor %} } }