Share via


VirtualMachine Class

Definition

A lab virtual machine resource.

[Microsoft.Rest.Serialization.JsonTransformation]
public class VirtualMachine : Microsoft.Azure.Management.LabServices.Models.ProxyResource
[<Microsoft.Rest.Serialization.JsonTransformation>]
type VirtualMachine = class
    inherit ProxyResource
Public Class VirtualMachine
Inherits ProxyResource
Inheritance
VirtualMachine
Attributes

Constructors

VirtualMachine()

Initializes a new instance of the VirtualMachine class.

VirtualMachine(String, String, String, SystemData, Nullable<ProvisioningState>, Nullable<VirtualMachineState>, VirtualMachineConnectionProfile, String, Nullable<VirtualMachineType>)

Initializes a new instance of the VirtualMachine class.

Properties

ClaimedByUserId

Gets the lab user ID (not the PUID!) of who claimed the virtual machine.

ConnectionProfile

Gets profile for information about connecting to the virtual machine.

Id

Gets fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

(Inherited from Resource)
Name

Gets the name of the resource

(Inherited from Resource)
ProvisioningState

Gets current provisioning state of the virtual machine. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Locked'

State

Gets the current state of the virtual machine. Possible values include: 'Stopped', 'Starting', 'Running', 'Stopping', 'ResettingPassword', 'Reimaging', 'Redeploying'

SystemData

Gets system data of the Lab virtual machine.

Type

Gets the type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

(Inherited from Resource)
VmType

Gets the type of this VM resource. Possible values include: 'User', 'Template'

Applies to