Skip to main content

virtual_network_gateways_advertised_routes

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

Overview

Namevirtual_network_gateways_advertised_routes
TypeResource
Idazure.network.virtual_network_gateways_advertised_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
getSELECTpeer, resourceGroupName, subscriptionId, virtualNetworkGatewayNameThis operation retrieves a list of routes the virtual network gateway is advertising to the specified peer.

SELECT examples

This operation retrieves a list of routes the virtual network gateway is advertising to the specified peer.

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