VirtualMachine Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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. |
VirtualMachine()
Initializes a new instance of the VirtualMachine class.
public VirtualMachine ();
Public Sub New ()
Applies to
VirtualMachine(String, String, String, SystemData, Nullable<ProvisioningState>, Nullable<VirtualMachineState>, VirtualMachineConnectionProfile, String, Nullable<VirtualMachineType>)
Initializes a new instance of the VirtualMachine class.
public VirtualMachine (string id = default, string name = default, string type = default, Microsoft.Azure.Management.LabServices.Models.SystemData systemData = default, Microsoft.Azure.Management.LabServices.Models.ProvisioningState? provisioningState = default, Microsoft.Azure.Management.LabServices.Models.VirtualMachineState? state = default, Microsoft.Azure.Management.LabServices.Models.VirtualMachineConnectionProfile connectionProfile = default, string claimedByUserId = default, Microsoft.Azure.Management.LabServices.Models.VirtualMachineType? vmType = default);
new Microsoft.Azure.Management.LabServices.Models.VirtualMachine : string * string * string * Microsoft.Azure.Management.LabServices.Models.SystemData * Nullable<Microsoft.Azure.Management.LabServices.Models.ProvisioningState> * Nullable<Microsoft.Azure.Management.LabServices.Models.VirtualMachineState> * Microsoft.Azure.Management.LabServices.Models.VirtualMachineConnectionProfile * string * Nullable<Microsoft.Azure.Management.LabServices.Models.VirtualMachineType> -> Microsoft.Azure.Management.LabServices.Models.VirtualMachine
Public Sub New (Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional systemData As SystemData = Nothing, Optional provisioningState As Nullable(Of ProvisioningState) = Nothing, Optional state As Nullable(Of VirtualMachineState) = Nothing, Optional connectionProfile As VirtualMachineConnectionProfile = Nothing, Optional claimedByUserId As String = Nothing, Optional vmType As Nullable(Of VirtualMachineType) = Nothing)
Parameters
- id
- String
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- name
- String
The name of the resource
- type
- String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- systemData
- SystemData
System data of the Lab virtual machine.
- provisioningState
- Nullable<ProvisioningState>
Current provisioning state of the virtual machine. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Locked'
- state
- Nullable<VirtualMachineState>
The current state of the virtual machine. Possible values include: 'Stopped', 'Starting', 'Running', 'Stopping', 'ResettingPassword', 'Reimaging', 'Redeploying'
- connectionProfile
- VirtualMachineConnectionProfile
Profile for information about connecting to the virtual machine.
- claimedByUserId
- String
The lab user ID (not the PUID!) of who claimed the virtual machine.
- vmType
- Nullable<VirtualMachineType>
The type of this VM resource. Possible values include: 'User', 'Template'
Applies to
Azure SDK for .NET