Share via


VirtualMachineConfiguration Constructors

Definition

Overloads

VirtualMachineConfiguration()

Initializes a new instance of the VirtualMachineConfiguration class.

VirtualMachineConfiguration(ImageReference, String, WindowsConfiguration, IList<DataDisk>, String, ContainerConfiguration, DiskEncryptionConfiguration, NodePlacementConfiguration, IList<VMExtension>, OSDisk)

Initializes a new instance of the VirtualMachineConfiguration class.

VirtualMachineConfiguration()

Initializes a new instance of the VirtualMachineConfiguration class.

public VirtualMachineConfiguration ();
Public Sub New ()

Applies to

VirtualMachineConfiguration(ImageReference, String, WindowsConfiguration, IList<DataDisk>, String, ContainerConfiguration, DiskEncryptionConfiguration, NodePlacementConfiguration, IList<VMExtension>, OSDisk)

Initializes a new instance of the VirtualMachineConfiguration class.

public VirtualMachineConfiguration (Microsoft.Azure.Management.Batch.Models.ImageReference imageReference, string nodeAgentSkuId, Microsoft.Azure.Management.Batch.Models.WindowsConfiguration windowsConfiguration = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Batch.Models.DataDisk> dataDisks = default, string licenseType = default, Microsoft.Azure.Management.Batch.Models.ContainerConfiguration containerConfiguration = default, Microsoft.Azure.Management.Batch.Models.DiskEncryptionConfiguration diskEncryptionConfiguration = default, Microsoft.Azure.Management.Batch.Models.NodePlacementConfiguration nodePlacementConfiguration = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Batch.Models.VMExtension> extensions = default, Microsoft.Azure.Management.Batch.Models.OSDisk osDisk = default);
new Microsoft.Azure.Management.Batch.Models.VirtualMachineConfiguration : Microsoft.Azure.Management.Batch.Models.ImageReference * string * Microsoft.Azure.Management.Batch.Models.WindowsConfiguration * System.Collections.Generic.IList<Microsoft.Azure.Management.Batch.Models.DataDisk> * string * Microsoft.Azure.Management.Batch.Models.ContainerConfiguration * Microsoft.Azure.Management.Batch.Models.DiskEncryptionConfiguration * Microsoft.Azure.Management.Batch.Models.NodePlacementConfiguration * System.Collections.Generic.IList<Microsoft.Azure.Management.Batch.Models.VMExtension> * Microsoft.Azure.Management.Batch.Models.OSDisk -> Microsoft.Azure.Management.Batch.Models.VirtualMachineConfiguration
Public Sub New (imageReference As ImageReference, nodeAgentSkuId As String, Optional windowsConfiguration As WindowsConfiguration = Nothing, Optional dataDisks As IList(Of DataDisk) = Nothing, Optional licenseType As String = Nothing, Optional containerConfiguration As ContainerConfiguration = Nothing, Optional diskEncryptionConfiguration As DiskEncryptionConfiguration = Nothing, Optional nodePlacementConfiguration As NodePlacementConfiguration = Nothing, Optional extensions As IList(Of VMExtension) = Nothing, Optional osDisk As OSDisk = Nothing)

Parameters

imageReference
ImageReference

A reference to the Azure Virtual Machines Marketplace Image or the custom Virtual Machine Image to use.

nodeAgentSkuId
String

The SKU of the Batch node agent to be provisioned on compute nodes in the pool.

windowsConfiguration
WindowsConfiguration

Windows operating system settings on the virtual machine.

dataDisks
IList<DataDisk>

The configuration for data disks attached to the compute nodes in the pool.

licenseType
String

The type of on-premises license to be used when deploying the operating system.

containerConfiguration
ContainerConfiguration

The container configuration for the pool.

diskEncryptionConfiguration
DiskEncryptionConfiguration

The disk encryption configuration for the pool.

nodePlacementConfiguration
NodePlacementConfiguration

The node placement configuration for the pool.

extensions
IList<VMExtension>

The virtual machine extension for the pool.

osDisk
OSDisk

Settings for the operating system disk of the Virtual Machine.

Applies to