Skip to main content

virtual_appliance_sites

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

Overview

Namevirtual_appliance_sites
TypeResource
Idazure.network.virtual_appliance_sites

Fields

NameDatatypeDescription
idtextResource ID.
nametextName of the virtual appliance site.
address_prefixtextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
networkVirtualApplianceNametextfield from the properties object
o365_policytextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
siteNametextfield from the properties object
subscriptionIdtextfield from the properties object
typetextSite type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTnetworkVirtualApplianceName, resourceGroupName, siteName, subscriptionIdGets the specified Virtual Appliance Site.
listSELECTnetworkVirtualApplianceName, resourceGroupName, subscriptionIdLists all Network Virtual Appliance Sites in a Network Virtual Appliance resource.
create_or_updateINSERTnetworkVirtualApplianceName, resourceGroupName, siteName, subscriptionIdCreates or updates the specified Network Virtual Appliance Site.
deleteDELETEnetworkVirtualApplianceName, resourceGroupName, siteName, subscriptionIdDeletes the specified site from a Virtual Appliance.

SELECT examples

Lists all Network Virtual Appliance Sites in a Network Virtual Appliance resource.

SELECT
id,
name,
address_prefix,
etag,
networkVirtualApplianceName,
o365_policy,
provisioning_state,
resourceGroupName,
siteName,
subscriptionId,
type
FROM azure.network.vw_virtual_appliance_sites
WHERE networkVirtualApplianceName = '{{ networkVirtualApplianceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.network.virtual_appliance_sites (
networkVirtualApplianceName,
resourceGroupName,
siteName,
subscriptionId,
properties,
name,
id
)
SELECT
'{{ networkVirtualApplianceName }}',
'{{ resourceGroupName }}',
'{{ siteName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ name }}',
'{{ id }}'
;

DELETE example

Deletes the specified virtual_appliance_sites resource.

/*+ delete */
DELETE FROM azure.network.virtual_appliance_sites
WHERE networkVirtualApplianceName = '{{ networkVirtualApplianceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND siteName = '{{ siteName }}'
AND subscriptionId = '{{ subscriptionId }}';