Skip to main content

virtual_machine_instances

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

Overview

Namevirtual_machine_instances
TypeResource
Idazure_stack.azure_stack_hci.virtual_machine_instances

Fields

NameDatatypeDescription
extended_locationtextfield from the properties object
guest_agent_install_statustextfield from the properties object
hardware_profiletextfield from the properties object
http_proxy_configtextfield from the properties object
identitytextIdentity for the resource.
instance_viewtextfield from the properties object
network_profiletextfield from the properties object
os_profiletextfield 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
statustextfield from the properties object
storage_profiletextfield from the properties object
vm_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceUriGets a virtual machine instance
listSELECTresourceUriLists all of the virtual machine instances within the specified parent resource.
create_or_updateINSERTresourceUriThe 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 stop a virtual machine instance.

SELECT examples

Gets a virtual machine instance

SELECT
extended_location,
guest_agent_install_status,
hardware_profile,
http_proxy_config,
identity,
instance_view,
network_profile,
os_profile,
provisioning_state,
resourceUri,
resource_uid,
security_profile,
status,
storage_profile,
vm_id
FROM azure_stack.azure_stack_hci.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_stack.azure_stack_hci.virtual_machine_instances (
resourceUri,
properties,
extendedLocation,
identity
)
SELECT
'{{ resourceUri }}',
'{{ properties }}',
'{{ extendedLocation }}',
'{{ identity }}'
;

UPDATE example

Updates a virtual_machine_instances resource.

/*+ update */
UPDATE azure_stack.azure_stack_hci.virtual_machine_instances
SET
properties = '{{ properties }}',
identity = '{{ identity }}'
WHERE
resourceUri = '{{ resourceUri }}';

DELETE example

Deletes the specified virtual_machine_instances resource.

/*+ delete */
DELETE FROM azure_stack.azure_stack_hci.virtual_machine_instances
WHERE resourceUri = '{{ resourceUri }}';