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

NameDatatypeDescription
idtextResource ID.
nametextName of the virtual router peering that is unique within a virtual router.
etagtextA unique read-only string that changes whenever the resource is updated.
peer_asntextfield from the properties object
peer_iptextfield from the properties object
peeringNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
typetextPeering type.
virtualRouterNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTpeeringName, resourceGroupName, subscriptionId, virtualRouterNameGets the specified Virtual Router Peering.
listSELECTresourceGroupName, subscriptionId, virtualRouterNameLists all Virtual Router Peerings in a Virtual Router resource.
create_or_updateINSERTpeeringName, resourceGroupName, subscriptionId, virtualRouterNameCreates or updates the specified Virtual Router Peering.
deleteDELETEpeeringName, resourceGroupName, subscriptionId, virtualRouterNameDeletes the specified peering from a Virtual Router.

SELECT examples

Lists all Virtual Router Peerings in a Virtual Router resource.

SELECT
id,
name,
etag,
peer_asn,
peer_ip,
peeringName,
provisioning_state,
resourceGroupName,
subscriptionId,
type,
virtualRouterName
FROM azure.network.vw_virtual_router_peerings
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualRouterName = '{{ virtualRouterName }}';

INSERT example

Use the following StackQL query and manifest file to create a new virtual_router_peerings resource.

/*+ create */
INSERT INTO azure.network.virtual_router_peerings (
peeringName,
resourceGroupName,
subscriptionId,
virtualRouterName,
properties,
name,
id
)
SELECT
'{{ peeringName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ virtualRouterName }}',
'{{ properties }}',
'{{ name }}',
'{{ id }}'
;

DELETE example

Deletes the specified virtual_router_peerings resource.

/*+ delete */
DELETE FROM azure.network.virtual_router_peerings
WHERE peeringName = '{{ peeringName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualRouterName = '{{ virtualRouterName }}';