Skip to main content

virtual_appliances

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

Overview

Namevirtual_appliances
TypeResource
Idazure.network.virtual_appliances

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
additional_nicstextfield from the properties object
address_prefixtextfield from the properties object
boot_strap_configuration_blobstextfield from the properties object
cloud_init_configurationtextfield from the properties object
cloud_init_configuration_blobstextfield from the properties object
delegationtextfield from the properties object
deployment_typetextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
identitytextIdentity for the resource.
inbound_security_rulestextfield from the properties object
internet_ingress_public_ipstextfield from the properties object
locationtextResource location.
networkVirtualApplianceNametextfield from the properties object
network_profiletextfield from the properties object
nva_skutextfield from the properties object
partner_managed_resourcetextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
ssh_public_keytextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
typetextResource type.
virtual_appliance_asntextfield from the properties object
virtual_appliance_connectionstextfield from the properties object
virtual_appliance_nicstextfield from the properties object
virtual_appliance_sitestextfield from the properties object
virtual_hubtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTnetworkVirtualApplianceName, resourceGroupName, subscriptionIdGets the specified Network Virtual Appliance.
listSELECTsubscriptionIdGets all Network Virtual Appliances in a subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists all Network Virtual Appliances in a resource group.
create_or_updateINSERTnetworkVirtualApplianceName, resourceGroupName, subscriptionIdCreates or updates the specified Network Virtual Appliance.
deleteDELETEnetworkVirtualApplianceName, resourceGroupName, subscriptionIdDeletes the specified Network Virtual Appliance.
restartEXECnetworkVirtualApplianceName, resourceGroupName, subscriptionIdRestarts one or more VMs belonging to the specified Network Virtual Appliance.
update_tagsEXECnetworkVirtualApplianceName, resourceGroupName, subscriptionIdUpdates a Network Virtual Appliance.

SELECT examples

Gets all Network Virtual Appliances in a subscription.

SELECT
id,
name,
additional_nics,
address_prefix,
boot_strap_configuration_blobs,
cloud_init_configuration,
cloud_init_configuration_blobs,
delegation,
deployment_type,
etag,
identity,
inbound_security_rules,
internet_ingress_public_ips,
location,
networkVirtualApplianceName,
network_profile,
nva_sku,
partner_managed_resource,
provisioning_state,
resourceGroupName,
ssh_public_key,
subscriptionId,
tags,
type,
virtual_appliance_asn,
virtual_appliance_connections,
virtual_appliance_nics,
virtual_appliance_sites,
virtual_hub
FROM azure.network.vw_virtual_appliances
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.network.virtual_appliances (
networkVirtualApplianceName,
resourceGroupName,
subscriptionId,
properties,
identity,
id,
location,
tags
)
SELECT
'{{ networkVirtualApplianceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ identity }}',
'{{ id }}',
'{{ location }}',
'{{ tags }}'
;

DELETE example

Deletes the specified virtual_appliances resource.

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