共用方式為


VirtualMachineConfiguration 建構函式

定義

多載

VirtualMachineConfiguration()

初始化 VirtualMachineConfiguration 類別的新實例。

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

初始化 VirtualMachineConfiguration 類別的新實例。

VirtualMachineConfiguration()

初始化 VirtualMachineConfiguration 類別的新實例。

public VirtualMachineConfiguration ();
Public Sub New ()

適用於

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

初始化 VirtualMachineConfiguration 類別的新實例。

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)

參數

imageReference
ImageReference

Azure 虛擬機器 Marketplace 映射或要使用的自訂虛擬機器映射參考。

nodeAgentSkuId
String

要布建在集區中計算節點上的 Batch-節點代理程式的 SKU。

windowsConfiguration
WindowsConfiguration

虛擬機器上的 Windows 作業系統設定。

dataDisks
IList<DataDisk>

連結至集區中計算節點的資料磁片組態。

licenseType
String

部署作業系統時要使用的內部部署授權類型。

containerConfiguration
ContainerConfiguration

集區的容器組態。

diskEncryptionConfiguration
DiskEncryptionConfiguration

集區的磁片加密組態。

nodePlacementConfiguration
NodePlacementConfiguration

集區的節點放置組態。

extensions
IList<VMExtension>

集區的虛擬機器擴充功能。

osDisk
OSDisk

虛擬機器作業系統磁片的設定。

適用於