LabVirtualMachineProfile Constructor

Definition

Initializes a new instance of LabVirtualMachineProfile.

public LabVirtualMachineProfile (Azure.ResourceManager.LabServices.Models.LabVirtualMachineCreateOption createOption, Azure.ResourceManager.LabServices.Models.LabVirtualMachineImageReference imageReference, Azure.ResourceManager.LabServices.Models.LabServicesSku sku, TimeSpan usageQuota, Azure.ResourceManager.LabServices.Models.LabVirtualMachineCredential adminUser);
new Azure.ResourceManager.LabServices.Models.LabVirtualMachineProfile : Azure.ResourceManager.LabServices.Models.LabVirtualMachineCreateOption * Azure.ResourceManager.LabServices.Models.LabVirtualMachineImageReference * Azure.ResourceManager.LabServices.Models.LabServicesSku * TimeSpan * Azure.ResourceManager.LabServices.Models.LabVirtualMachineCredential -> Azure.ResourceManager.LabServices.Models.LabVirtualMachineProfile
Public Sub New (createOption As LabVirtualMachineCreateOption, imageReference As LabVirtualMachineImageReference, sku As LabServicesSku, usageQuota As TimeSpan, adminUser As LabVirtualMachineCredential)

Parameters

createOption
LabVirtualMachineCreateOption

Indicates what lab virtual machines are created from.

imageReference
LabVirtualMachineImageReference

The image configuration for lab virtual machines.

sku
LabServicesSku

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
LabVirtualMachineCredential

Credentials for the admin user on the VM.

Exceptions

imageReference, sku or adminUser is null.

Applies to