ArmLabServicesModelFactory.LabVirtualMachineProfile Method

Definition

Initializes a new instance of LabVirtualMachineProfile.

public static Azure.ResourceManager.LabServices.Models.LabVirtualMachineProfile LabVirtualMachineProfile (Azure.ResourceManager.LabServices.Models.LabVirtualMachineCreateOption createOption = Azure.ResourceManager.LabServices.Models.LabVirtualMachineCreateOption.Image, Azure.ResourceManager.LabServices.Models.LabVirtualMachineImageReference imageReference = default, Azure.ResourceManager.LabServices.Models.LabVirtualMachineImageOSType? osType = default, Azure.ResourceManager.LabServices.Models.LabServicesSku sku = default, Azure.ResourceManager.LabServices.Models.LabServicesEnableState? additionalCapabilitiesInstallGpuDrivers = default, TimeSpan usageQuota = default, Azure.ResourceManager.LabServices.Models.LabServicesEnableState? useSharedPassword = default, Azure.ResourceManager.LabServices.Models.LabVirtualMachineCredential adminUser = default, Azure.ResourceManager.LabServices.Models.LabVirtualMachineCredential nonAdminUser = default);
static member LabVirtualMachineProfile : Azure.ResourceManager.LabServices.Models.LabVirtualMachineCreateOption * Azure.ResourceManager.LabServices.Models.LabVirtualMachineImageReference * Nullable<Azure.ResourceManager.LabServices.Models.LabVirtualMachineImageOSType> * Azure.ResourceManager.LabServices.Models.LabServicesSku * Nullable<Azure.ResourceManager.LabServices.Models.LabServicesEnableState> * TimeSpan * Nullable<Azure.ResourceManager.LabServices.Models.LabServicesEnableState> * Azure.ResourceManager.LabServices.Models.LabVirtualMachineCredential * Azure.ResourceManager.LabServices.Models.LabVirtualMachineCredential -> Azure.ResourceManager.LabServices.Models.LabVirtualMachineProfile
Public Shared Function LabVirtualMachineProfile (Optional createOption As LabVirtualMachineCreateOption = Azure.ResourceManager.LabServices.Models.LabVirtualMachineCreateOption.Image, Optional imageReference As LabVirtualMachineImageReference = Nothing, Optional osType As Nullable(Of LabVirtualMachineImageOSType) = Nothing, Optional sku As LabServicesSku = Nothing, Optional additionalCapabilitiesInstallGpuDrivers As Nullable(Of LabServicesEnableState) = Nothing, Optional usageQuota As TimeSpan = Nothing, Optional useSharedPassword As Nullable(Of LabServicesEnableState) = Nothing, Optional adminUser As LabVirtualMachineCredential = Nothing, Optional nonAdminUser As LabVirtualMachineCredential = Nothing) As LabVirtualMachineProfile

Parameters

createOption
LabVirtualMachineCreateOption

Indicates what lab virtual machines are created from.

imageReference
LabVirtualMachineImageReference

The image configuration for lab virtual machines.

osType
Nullable<LabVirtualMachineImageOSType>

The OS type of the image.

sku
LabServicesSku

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

additionalCapabilitiesInstallGpuDrivers
Nullable<LabServicesEnableState>

Additional VM capabilities.

usageQuota
TimeSpan

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

useSharedPassword
Nullable<LabServicesEnableState>

Enabling this option will use the same password for all user VMs.

adminUser
LabVirtualMachineCredential

Credentials for the admin user on the VM.

nonAdminUser
LabVirtualMachineCredential

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

Returns

A new LabVirtualMachineProfile instance for mocking.

Applies to