Skip to main content

virtual_machines

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

Overview

Namevirtual_machines
TypeResource
Idazure.lab_services.virtual_machines

Fields

The following fields are returned by SELECT queries:

The request was successful; response contains the lab virtual machine.

NameDatatypeDescription
propertiesobjectVirtual machine resource properties
systemDataobjectSystem data of the Lab virtual machine.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectReturns the properties for a lab virtual machine.
list_by_labselectReturns a list of all virtual machines for a lab.
startexecAction to start a lab virtual machine.
stopexecAction to stop a lab virtual machine.
reimageexecRe-image a lab virtual machine. The virtual machine will be deleted and recreated using the latest published snapshot of the reference environment of the lab.
redeployexecAction to redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity.
reset_passwordexecusername, passwordResets a lab virtual machine password.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription

SELECT examples

Returns the properties for a lab virtual machine.

SELECT
properties,
systemData
FROM azure.lab_services.virtual_machines
;

Lifecycle Methods

Action to start a lab virtual machine.

EXEC azure.lab_services.virtual_machines.start 

;