Skip to main content

vpn_connections

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

Overview

Namevpn_connections
TypeResource
Idazure.network.vpn_connections

Fields

NameDatatypeDescription
idtextResource ID.
nametextThe name of the resource that is unique within a resource group. This name can be used to access the resource.
connectionNametextfield from the properties object
connection_bandwidthtextfield from the properties object
connection_statustextfield from the properties object
dpd_timeout_secondstextfield from the properties object
egress_bytes_transferredtextfield from the properties object
enable_bgptextfield from the properties object
enable_internet_securitytextfield from the properties object
enable_rate_limitingtextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
gatewayNametextfield from the properties object
ingress_bytes_transferredtextfield from the properties object
ipsec_policiestextfield from the properties object
provisioning_statetextfield from the properties object
remote_vpn_sitetextfield from the properties object
resourceGroupNametextfield from the properties object
routing_configurationtextfield from the properties object
routing_weighttextfield from the properties object
shared_keytextfield from the properties object
subscriptionIdtextfield from the properties object
traffic_selector_policiestextfield from the properties object
use_local_azure_ip_addresstextfield from the properties object
use_policy_based_traffic_selectorstextfield from the properties object
vpn_connection_protocol_typetextfield from the properties object
vpn_link_connectionstextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTconnectionName, gatewayName, resourceGroupName, subscriptionIdRetrieves the details of a vpn connection.
list_by_vpn_gatewaySELECTgatewayName, resourceGroupName, subscriptionIdRetrieves all vpn connections for a particular virtual wan vpn gateway.
create_or_updateINSERTconnectionName, gatewayName, resourceGroupName, subscriptionIdCreates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection.
deleteDELETEconnectionName, gatewayName, resourceGroupName, subscriptionIdDeletes a vpn connection.
start_packet_captureEXECgatewayName, resourceGroupName, subscriptionId, vpnConnectionNameStarts packet capture on Vpn connection in the specified resource group.
stop_packet_captureEXECgatewayName, resourceGroupName, subscriptionId, vpnConnectionNameStops packet capture on Vpn connection in the specified resource group.

SELECT examples

Retrieves all vpn connections for a particular virtual wan vpn gateway.

SELECT
id,
name,
connectionName,
connection_bandwidth,
connection_status,
dpd_timeout_seconds,
egress_bytes_transferred,
enable_bgp,
enable_internet_security,
enable_rate_limiting,
etag,
gatewayName,
ingress_bytes_transferred,
ipsec_policies,
provisioning_state,
remote_vpn_site,
resourceGroupName,
routing_configuration,
routing_weight,
shared_key,
subscriptionId,
traffic_selector_policies,
use_local_azure_ip_address,
use_policy_based_traffic_selectors,
vpn_connection_protocol_type,
vpn_link_connections
FROM azure.network.vw_vpn_connections
WHERE gatewayName = '{{ gatewayName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.network.vpn_connections (
connectionName,
gatewayName,
resourceGroupName,
subscriptionId,
properties,
name,
id
)
SELECT
'{{ connectionName }}',
'{{ gatewayName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ name }}',
'{{ id }}'
;

DELETE example

Deletes the specified vpn_connections resource.

/*+ delete */
DELETE FROM azure.network.vpn_connections
WHERE connectionName = '{{ connectionName }}'
AND gatewayName = '{{ gatewayName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';