Skip to main content

virtual_machine_templates

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

Overview

Namevirtual_machine_templates
TypeResource
Idazure_isv.connected_vsphere.virtual_machine_templates

Fields

NameDatatypeDescription
idtextGets or sets the Id.
nametextGets or sets the name.
custom_resource_nametextfield from the properties object
diskstextfield from the properties object
extended_locationtextfield from the properties object
firmware_typetextfield from the properties object
folder_pathtextfield from the properties object
inventory_item_idtextfield from the properties object
kindtextMetadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
locationtextGets or sets the location.
memory_size_mbtextfield from the properties object
mo_nametextfield from the properties object
mo_ref_idtextfield from the properties object
network_interfacestextfield from the properties object
num_cores_per_sockettextfield from the properties object
num_cp_ustextfield from the properties object
os_nametextfield from the properties object
os_typetextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
statusestextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextGets or sets the Resource tags.
tools_versiontextfield from the properties object
tools_version_statustextfield from the properties object
typetextGets or sets the type of the resource.
uuidtextfield from the properties object
v_center_idtextfield from the properties object
virtualMachineTemplateNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, virtualMachineTemplateNameImplements virtual machine template GET method.
listSELECTsubscriptionIdList of virtualMachineTemplates in a subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList of virtualMachineTemplates in a resource group.
createINSERTresourceGroupName, subscriptionId, virtualMachineTemplateName, data__location, data__propertiesCreate Or Update virtual machine template.
deleteDELETEresourceGroupName, subscriptionId, virtualMachineTemplateNameImplements virtual machine template DELETE method.
updateUPDATEresourceGroupName, subscriptionId, virtualMachineTemplateNameAPI to update certain properties of the virtual machine template resource.

SELECT examples

List of virtualMachineTemplates in a subscription.

SELECT
id,
name,
custom_resource_name,
disks,
extended_location,
firmware_type,
folder_path,
inventory_item_id,
kind,
location,
memory_size_mb,
mo_name,
mo_ref_id,
network_interfaces,
num_cores_per_socket,
num_cp_us,
os_name,
os_type,
provisioning_state,
resourceGroupName,
statuses,
subscriptionId,
system_data,
tags,
tools_version,
tools_version_status,
type,
uuid,
v_center_id,
virtualMachineTemplateName
FROM azure_isv.connected_vsphere.vw_virtual_machine_templates
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_isv.connected_vsphere.virtual_machine_templates (
resourceGroupName,
subscriptionId,
virtualMachineTemplateName,
data__location,
data__properties,
properties,
location,
extendedLocation,
systemData,
tags,
kind
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ virtualMachineTemplateName }}',
'{{ data__location }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ location }}',
'{{ extendedLocation }}',
'{{ systemData }}',
'{{ tags }}',
'{{ kind }}'
;

UPDATE example

Updates a virtual_machine_templates resource.

/*+ update */
UPDATE azure_isv.connected_vsphere.virtual_machine_templates
SET
tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualMachineTemplateName = '{{ virtualMachineTemplateName }}';

DELETE example

Deletes the specified virtual_machine_templates resource.

/*+ delete */
DELETE FROM azure_isv.connected_vsphere.virtual_machine_templates
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualMachineTemplateName = '{{ virtualMachineTemplateName }}';