Skip to main content

virtual_machine_instances

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

Overview

Namevirtual_machine_instances
TypeResource
Idazure_isv.connected_vsphere.virtual_machine_instances

Fields

NameDatatypeDescription
extended_locationtextfield from the properties object
hardware_profiletextfield from the properties object
infrastructure_profiletextfield from the properties object
network_profiletextfield from the properties object
os_profiletextfield from the properties object
placement_profiletextfield from the properties object
power_statetextfield from the properties object
provisioning_statetextfield from the properties object
resourceUritextfield from the properties object
resource_uidtextfield from the properties object
security_profiletextfield from the properties object
statusestextfield from the properties object
storage_profiletextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceUriRetrieves information about a virtual machine instance.
listSELECTresourceUriLists all of the virtual machine instances within the specified parent resource.
create_or_updateINSERTresourceUri, data__propertiesThe operation to create or update a virtual machine instance. Please note some properties can be set only during virtual machine instance creation.
deleteDELETEresourceUriThe operation to delete a virtual machine instance.
updateUPDATEresourceUriThe operation to update a virtual machine instance.
restartEXECresourceUriThe operation to restart a virtual machine instance.
startEXECresourceUriThe operation to start a virtual machine instance.
stopEXECresourceUriThe operation to power off (stop) a virtual machine instance.

SELECT examples

Retrieves information about a virtual machine instance.

SELECT
extended_location,
hardware_profile,
infrastructure_profile,
network_profile,
os_profile,
placement_profile,
power_state,
provisioning_state,
resourceUri,
resource_uid,
security_profile,
statuses,
storage_profile
FROM azure_isv.connected_vsphere.vw_virtual_machine_instances
WHERE resourceUri = '{{ resourceUri }}';

INSERT example

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

/*+ create */
INSERT INTO azure_isv.connected_vsphere.virtual_machine_instances (
resourceUri,
data__properties,
properties,
extendedLocation
)
SELECT
'{{ resourceUri }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ extendedLocation }}'
;

UPDATE example

Updates a virtual_machine_instances resource.

/*+ update */
UPDATE azure_isv.connected_vsphere.virtual_machine_instances
SET
properties = '{{ properties }}'
WHERE
resourceUri = '{{ resourceUri }}';

DELETE example

Deletes the specified virtual_machine_instances resource.

/*+ delete */
DELETE FROM azure_isv.connected_vsphere.virtual_machine_instances
WHERE resourceUri = '{{ resourceUri }}';