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:

Request successful. Returns the details of the VirtualWAN retrieved.

NameDatatypeDescription
idstring (arm-id)Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
namestringThe name of the resource
etagstringA unique read-only string that changes whenever the resource is updated.
propertiesobjectProperties of the virtual WAN.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, VirtualWANName, subscriptionIdRetrieves the details of a VirtualWAN.
list_by_resource_groupselectsubscriptionId, resourceGroupNameLists all the VirtualWANs in a resource group.
listselectsubscriptionIdLists all the VirtualWANs in a subscription.
create_or_updateinsertsubscriptionId, resourceGroupName, VirtualWANName, data__locationCreates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN.
deletedeletesubscriptionId, resourceGroupName, VirtualWANNameDeletes a VirtualWAN.
update_tagsexecsubscriptionId, resourceGroupName, VirtualWANNameUpdates a VirtualWAN tags.

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
VirtualWANNamestringThe name of the VirtualWAN being updated.
resourceGroupNamestringThe resource group name of the VirtualWan.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Retrieves the details of a VirtualWAN.

SELECT
id,
name,
etag,
properties,
systemData,
type
FROM azure.network.virtual_wans
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND VirtualWANName = '{{ VirtualWANName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

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

INSERT INTO azure.network.virtual_wans (
data__properties,
subscriptionId,
resourceGroupName,
VirtualWANName
)
SELECT
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ VirtualWANName }}'
RETURNING
id,
name,
etag,
properties,
systemData,
type
;

DELETE examples

Deletes a VirtualWAN.

DELETE FROM azure.network.virtual_wans
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND VirtualWANName = '{{ VirtualWANName }}' --required
;

Lifecycle Methods

Updates a VirtualWAN tags.

EXEC azure.network.virtual_wans.update_tags 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@VirtualWANName='{{ VirtualWANName }}' --required
@@json=
'{
"tags": "{{ tags }}"
}'
;