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

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource ID.
namestringResource name.
allowBranchToBranchTrafficbooleanTrue if branch to branch traffic is allowed.
allowVnetToVnetTrafficbooleanTrue if Vnet to Vnet traffic is allowed.
disableVpnEncryptionbooleanVpn encryption to be disabled or not.
etagstringA unique read-only string that changes whenever the resource is updated.
locationstringResource location.
office365LocalBreakoutCategorystringThe office local breakout category. Known values are: "Optimize", "OptimizeAndAllow", "All", and "None". (Optimize, OptimizeAndAllow, All, None)
provisioningStatestringThe provisioning state of the virtual WAN resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting)
tagsobjectResource tags.
typestringResource type.
virtualHubsarrayList of VirtualHubs in the VirtualWAN.
vpnSitesarrayList of VpnSites in the VirtualWAN.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, virtual_wan_name, subscription_idRetrieves the details of a VirtualWAN.
list_by_resource_groupselectresource_group_name, subscription_idLists all the VirtualWANs in a resource group.
listselectsubscription_idLists all the VirtualWANs in a subscription.
create_or_updateinsertresource_group_name, virtual_wan_name, subscription_idCreates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN.
update_tagsupdateresource_group_name, virtual_wan_name, subscription_idUpdates a VirtualWAN tags.
create_or_updatereplaceresource_group_name, virtual_wan_name, subscription_idCreates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN.
deletedeleteresource_group_name, virtual_wan_name, subscription_idDeletes a VirtualWAN.

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
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
virtual_wan_namestringThe name of the VirtualWAN being retrieved. Required.

SELECT examples

Retrieves the details of a VirtualWAN.

SELECT
id,
name,
allowBranchToBranchTraffic,
allowVnetToVnetTraffic,
disableVpnEncryption,
etag,
location,
office365LocalBreakoutCategory,
provisioningState,
tags,
type,
virtualHubs,
vpnSites
FROM azure.network.virtual_wans
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND virtual_wan_name = '{{ virtual_wan_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN.

INSERT INTO azure.network.virtual_wans (
id,
location,
tags,
properties,
resource_group_name,
virtual_wan_name,
subscription_id
)
SELECT
'{{ id }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ virtual_wan_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
location,
properties,
tags,
type
;

UPDATE examples

Updates a VirtualWAN tags.

UPDATE azure.network.virtual_wans
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND virtual_wan_name = '{{ virtual_wan_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
location,
properties,
tags,
type;

REPLACE examples

Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN.

REPLACE azure.network.virtual_wans
SET
id = '{{ id }}',
location = '{{ location }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND virtual_wan_name = '{{ virtual_wan_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
location,
properties,
tags,
type;

DELETE examples

Deletes a VirtualWAN.

DELETE FROM azure.network.virtual_wans
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND virtual_wan_name = '{{ virtual_wan_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;