Condividi tramite


LabVirtualMachineProfile Class

Definition

The base virtual machine configuration for a lab.

public class LabVirtualMachineProfile : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.LabServices.Models.LabVirtualMachineProfile>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.LabServices.Models.LabVirtualMachineProfile>
public class LabVirtualMachineProfile
type LabVirtualMachineProfile = class
    interface IJsonModel<LabVirtualMachineProfile>
    interface IPersistableModel<LabVirtualMachineProfile>
type LabVirtualMachineProfile = class
Public Class LabVirtualMachineProfile
Implements IJsonModel(Of LabVirtualMachineProfile), IPersistableModel(Of LabVirtualMachineProfile)
Public Class LabVirtualMachineProfile
Inheritance
LabVirtualMachineProfile
Implements

Constructors

LabVirtualMachineProfile(LabVirtualMachineCreateOption, LabVirtualMachineImageReference, LabServicesSku, TimeSpan, LabVirtualMachineCredential)

Initializes a new instance of LabVirtualMachineProfile.

Properties

AdditionalCapabilitiesInstallGpuDrivers

Flag to pre-install dedicated GPU drivers.

AdminUser

Credentials for the admin user on the VM.

CreateOption

Indicates what lab virtual machines are created from.

ImageReference

The image configuration for lab virtual machines.

NonAdminUser

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

OSType

The OS type of the image.

Sku

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

UsageQuota

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

UseSharedPassword

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

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<LabVirtualMachineProfile>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<LabVirtualMachineProfile>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<LabVirtualMachineProfile>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<LabVirtualMachineProfile>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<LabVirtualMachineProfile>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to