Udostępnij za pośrednictwem


VirtualMachineProfile Constructors

Definition

Overloads

VirtualMachineProfile()

Initializes a new instance of the VirtualMachineProfile class.

VirtualMachineProfile(CreateOption, ImageReference, Sku, TimeSpan, Credentials, Nullable<OsType>, VirtualMachineAdditionalCapabilities, Nullable<EnableState>, Credentials)

Initializes a new instance of the VirtualMachineProfile class.

VirtualMachineProfile()

Initializes a new instance of the VirtualMachineProfile class.

public VirtualMachineProfile ();
Public Sub New ()

Applies to

VirtualMachineProfile(CreateOption, ImageReference, Sku, TimeSpan, Credentials, Nullable<OsType>, VirtualMachineAdditionalCapabilities, Nullable<EnableState>, Credentials)

Initializes a new instance of the VirtualMachineProfile class.

public VirtualMachineProfile (Microsoft.Azure.Management.LabServices.Models.CreateOption createOption, Microsoft.Azure.Management.LabServices.Models.ImageReference imageReference, Microsoft.Azure.Management.LabServices.Models.Sku sku, TimeSpan usageQuota, Microsoft.Azure.Management.LabServices.Models.Credentials adminUser, Microsoft.Azure.Management.LabServices.Models.OsType? osType = default, Microsoft.Azure.Management.LabServices.Models.VirtualMachineAdditionalCapabilities additionalCapabilities = default, Microsoft.Azure.Management.LabServices.Models.EnableState? useSharedPassword = default, Microsoft.Azure.Management.LabServices.Models.Credentials nonAdminUser = default);
new Microsoft.Azure.Management.LabServices.Models.VirtualMachineProfile : Microsoft.Azure.Management.LabServices.Models.CreateOption * Microsoft.Azure.Management.LabServices.Models.ImageReference * Microsoft.Azure.Management.LabServices.Models.Sku * TimeSpan * Microsoft.Azure.Management.LabServices.Models.Credentials * Nullable<Microsoft.Azure.Management.LabServices.Models.OsType> * Microsoft.Azure.Management.LabServices.Models.VirtualMachineAdditionalCapabilities * Nullable<Microsoft.Azure.Management.LabServices.Models.EnableState> * Microsoft.Azure.Management.LabServices.Models.Credentials -> Microsoft.Azure.Management.LabServices.Models.VirtualMachineProfile
Public Sub New (createOption As CreateOption, imageReference As ImageReference, sku As Sku, usageQuota As TimeSpan, adminUser As Credentials, Optional osType As Nullable(Of OsType) = Nothing, Optional additionalCapabilities As VirtualMachineAdditionalCapabilities = Nothing, Optional useSharedPassword As Nullable(Of EnableState) = Nothing, Optional nonAdminUser As Credentials = Nothing)

Parameters

createOption
CreateOption

Indicates what lab virtual machines are created from. Possible values include: 'Image', 'TemplateVM'

imageReference
ImageReference

The image configuration for lab virtual machines.

sku
Sku

The SKU for the lab. Defines the type of virtual machines used in the lab.

usageQuota
TimeSpan

The initial quota alloted to each lab user. Must be a time span between 0 and 9999 hours.

adminUser
Credentials

Credentials for the admin user on the VM.

osType
Nullable<OsType>

The OS type of the image. Possible values include: 'Windows', 'Linux'

additionalCapabilities
VirtualMachineAdditionalCapabilities

Additional VM capabilities.

useSharedPassword
Nullable<EnableState>

Enabling this option will use the same password for all user VMs. Possible values include: 'Enabled', 'Disabled'

nonAdminUser
Credentials

Credentials for the non-admin user on the VM, if one exists.

Applies to