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

The following fields are returned by SELECT queries:

List of learned BGP routes.

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.
weightinteger (int32)The route's weight.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, virtualNetworkGatewayName, peer, subscriptionIdThis operation retrieves a list of routes the virtual network gateway is advertising to the specified peer.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
peerstringThe IP address of the peer.
resourceGroupNamestringThe name of the resource group.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
virtualNetworkGatewayNamestringThe name of the virtual network gateway.

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 resourceGroupName = '{{ resourceGroupName }}' -- required
AND virtualNetworkGatewayName = '{{ virtualNetworkGatewayName }}' -- required
AND peer = '{{ peer }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;