Share via


VirtualMachine Constructors

Definition

Overloads

VirtualMachine()

Initializes a new instance of the VirtualMachine class.

VirtualMachine(String, String, String, String, String, String, String)

Initializes a new instance of the VirtualMachine class.

VirtualMachine()

Initializes a new instance of the VirtualMachine class.

public VirtualMachine ();
Public Sub New ()

Applies to

VirtualMachine(String, String, String, String, String, String, String)

Initializes a new instance of the VirtualMachine class.

public VirtualMachine (string id = default, string name = default, string type = default, string displayName = default, string moRefId = default, string folderPath = default, string restrictMovement = default);
new Microsoft.Azure.Management.Avs.Models.VirtualMachine : string * string * string * string * string * string * string -> Microsoft.Azure.Management.Avs.Models.VirtualMachine
Public Sub New (Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional displayName As String = Nothing, Optional moRefId As String = Nothing, Optional folderPath As String = Nothing, Optional restrictMovement As String = Nothing)

Parameters

id
String

Resource ID.

name
String

Resource name.

type
String

Resource type.

displayName
String

Display name of the VM.

moRefId
String

Virtual machine managed object reference id

folderPath
String

Path to virtual machine's folder starting from datacenter virtual machine folder

restrictMovement
String

Possible values include: 'Enabled', 'Disabled'

Applies to