Skip to main content

virtual_machine_instances

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

Overview

Namevirtual_machine_instances
TypeResource
Idazure.system_center_vm_manager.virtual_machine_instances

Fields

NameDatatypeDescription
extendedLocationobjectThe extended location.
propertiesobjectDefines the resource properties.

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__extendedLocationThe 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.
restore_checkpointEXECresourceUriRestores to a checkpoint in 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
extendedLocation,
properties
FROM azure.system_center_vm_manager.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.system_center_vm_manager.virtual_machine_instances (
resourceUri,
data__extendedLocation,
properties,
extendedLocation
)
SELECT
'{{ resourceUri }}',
'{{ data__extendedLocation }}',
'{{ properties }}',
'{{ extendedLocation }}'
;

UPDATE example

Updates a virtual_machine_instances resource.

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

DELETE example

Deletes the specified virtual_machine_instances resource.

/*+ delete */
DELETE FROM azure.system_center_vm_manager.virtual_machine_instances
WHERE resourceUri = '{{ resourceUri }}';