Skip to main content

virtual_network_gateways_learned_routes

Creates, updates, deletes, gets or lists a virtual_network_gateways_learned_routes resource.

Overview

Namevirtual_network_gateways_learned_routes
TypeResource
Idazure.network.virtual_network_gateways_learned_routes

Fields

NameDatatypeDescription
asPathstringThe route's AS path sequence.
localAddressstringThe gateway's local address.
networkstringThe route's network prefix.
nextHopstringThe route's next hop.
originstringThe source this route was learned from.
sourcePeerstringThe peer this route was learned from.
weightintegerThe route's weight.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, virtualNetworkGatewayNameThis operation retrieves a list of routes the virtual network gateway has learned, including routes learned from BGP peers.

SELECT examples

This operation retrieves a list of routes the virtual network gateway has learned, including routes learned from BGP peers.

SELECT
asPath,
localAddress,
network,
nextHop,
origin,
sourcePeer,
weight
FROM azure.network.virtual_network_gateways_learned_routes
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualNetworkGatewayName = '{{ virtualNetworkGatewayName }}';