Skip to main content

virtual_wans

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

Overview

Namevirtual_wans
TypeResource
Idazure.network.virtual_wans

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
VirtualWANNametextfield from the properties object
allow_branch_to_branch_traffictextfield from the properties object
allow_vnet_to_vnet_traffictextfield from the properties object
disable_vpn_encryptiontextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
locationtextResource location.
office365_local_breakout_categorytextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
typetextResource type.
virtual_hubstextfield from the properties object
vpn_sitestextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTVirtualWANName, resourceGroupName, subscriptionIdRetrieves the details of a VirtualWAN.
listSELECTsubscriptionIdLists all the VirtualWANs in a subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists all the VirtualWANs in a resource group.
create_or_updateINSERTVirtualWANName, resourceGroupName, subscriptionId, data__locationCreates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN.
deleteDELETEVirtualWANName, resourceGroupName, subscriptionIdDeletes a VirtualWAN.
update_tagsEXECVirtualWANName, resourceGroupName, subscriptionIdUpdates a VirtualWAN tags.

SELECT examples

Lists all the VirtualWANs in a subscription.

SELECT
id,
name,
VirtualWANName,
allow_branch_to_branch_traffic,
allow_vnet_to_vnet_traffic,
disable_vpn_encryption,
etag,
location,
office365_local_breakout_category,
provisioning_state,
resourceGroupName,
subscriptionId,
tags,
type,
virtual_hubs,
vpn_sites
FROM azure.network.vw_virtual_wans
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified virtual_wans resource.

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