Skip to main content

virtual_router_peerings

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

Overview

Namevirtual_router_peerings
TypeResource
Idazure.network.virtual_router_peerings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource ID.
namestringName of the resource.
etagstringA unique read-only string that changes whenever the resource is updated.
peerAsnintegerPeer ASN.
peerIpstringPeer IP.
provisioningStatestringThe provisioning state of the resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting)
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, virtual_router_name, peering_name, subscription_idGets the specified Virtual Router Peering.
listselectresource_group_name, virtual_router_name, subscription_idLists all Virtual Router Peerings in a Virtual Router resource.
create_or_updateinsertresource_group_name, virtual_router_name, peering_name, subscription_idCreates or updates the specified Virtual Router Peering.
create_or_updatereplaceresource_group_name, virtual_router_name, peering_name, subscription_idCreates or updates the specified Virtual Router Peering.
deletedeleteresource_group_name, virtual_router_name, peering_name, subscription_idDeletes the specified peering from a Virtual Router.

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
peering_namestringThe name of the resource that is unique within a resource group. This name can be used to access the resource. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
virtual_router_namestringThe name of the Virtual Router. Required.

SELECT examples

Gets the specified Virtual Router Peering.

SELECT
id,
name,
etag,
peerAsn,
peerIp,
provisioningState,
type
FROM azure.network.virtual_router_peerings
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND virtual_router_name = '{{ virtual_router_name }}' -- required
AND peering_name = '{{ peering_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates the specified Virtual Router Peering.

INSERT INTO azure.network.virtual_router_peerings (
id,
name,
properties,
resource_group_name,
virtual_router_name,
peering_name,
subscription_id
)
SELECT
'{{ id }}',
'{{ name }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ virtual_router_name }}',
'{{ peering_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
properties,
type
;

REPLACE examples

Creates or updates the specified Virtual Router Peering.

REPLACE azure.network.virtual_router_peerings
SET
id = '{{ id }}',
name = '{{ name }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND virtual_router_name = '{{ virtual_router_name }}' --required
AND peering_name = '{{ peering_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
properties,
type;

DELETE examples

Deletes the specified peering from a Virtual Router.

DELETE FROM azure.network.virtual_router_peerings
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND virtual_router_name = '{{ virtual_router_name }}' --required
AND peering_name = '{{ peering_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;