Skip to main content

vpn_sites

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

Overview

Namevpn_sites
TypeResource
Idazure.network.vpn_sites

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
address_spacetextfield from the properties object
bgp_propertiestextfield from the properties object
device_propertiestextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
ip_addresstextfield from the properties object
is_security_sitetextfield from the properties object
locationtextResource location.
o365_policytextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
site_keytextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
typetextResource type.
virtual_wantextfield from the properties object
vpnSiteNametextfield from the properties object
vpn_site_linkstextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, vpnSiteNameRetrieves the details of a VPN site.
listSELECTsubscriptionIdLists all the VpnSites in a subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists all the vpnSites in a resource group.
create_or_updateINSERTresourceGroupName, subscriptionId, vpnSiteName, data__locationCreates a VpnSite resource if it doesn't exist else updates the existing VpnSite.
deleteDELETEresourceGroupName, subscriptionId, vpnSiteNameDeletes a VpnSite.
update_tagsEXECresourceGroupName, subscriptionId, vpnSiteNameUpdates VpnSite tags.

SELECT examples

Lists all the VpnSites in a subscription.

SELECT
id,
name,
address_space,
bgp_properties,
device_properties,
etag,
ip_address,
is_security_site,
location,
o365_policy,
provisioning_state,
resourceGroupName,
site_key,
subscriptionId,
tags,
type,
virtual_wan,
vpnSiteName,
vpn_site_links
FROM azure.network.vw_vpn_sites
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.network.vpn_sites (
resourceGroupName,
subscriptionId,
vpnSiteName,
data__location,
properties,
id,
location,
tags
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ vpnSiteName }}',
'{{ data__location }}',
'{{ properties }}',
'{{ id }}',
'{{ location }}',
'{{ tags }}'
;

DELETE example

Deletes the specified vpn_sites resource.

/*+ delete */
DELETE FROM azure.network.vpn_sites
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vpnSiteName = '{{ vpnSiteName }}';