你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ImageDataDisk 构造函数

定义

重载

ImageDataDisk()

初始化 ImageDataDisk 类的新实例。

ImageDataDisk(Int32, SubResource, SubResource, String, Nullable<CachingTypes>, Nullable<Int32>, String, DiskEncryptionSetParameters)

初始化 ImageDataDisk 类的新实例。

ImageDataDisk()

初始化 ImageDataDisk 类的新实例。

public ImageDataDisk ();
Public Sub New ()

适用于

ImageDataDisk(Int32, SubResource, SubResource, String, Nullable<CachingTypes>, Nullable<Int32>, String, DiskEncryptionSetParameters)

初始化 ImageDataDisk 类的新实例。

public ImageDataDisk (int lun, Microsoft.Azure.Management.Compute.Models.SubResource snapshot = default, Microsoft.Azure.Management.Compute.Models.SubResource managedDisk = default, string blobUri = default, Microsoft.Azure.Management.Compute.Models.CachingTypes? caching = default, int? diskSizeGB = default, string storageAccountType = default, Microsoft.Azure.Management.Compute.Models.DiskEncryptionSetParameters diskEncryptionSet = default);
new Microsoft.Azure.Management.Compute.Models.ImageDataDisk : int * Microsoft.Azure.Management.Compute.Models.SubResource * Microsoft.Azure.Management.Compute.Models.SubResource * string * Nullable<Microsoft.Azure.Management.Compute.Models.CachingTypes> * Nullable<int> * string * Microsoft.Azure.Management.Compute.Models.DiskEncryptionSetParameters -> Microsoft.Azure.Management.Compute.Models.ImageDataDisk
Public Sub New (lun As Integer, Optional snapshot As SubResource = Nothing, Optional managedDisk As SubResource = Nothing, Optional blobUri As String = Nothing, Optional caching As Nullable(Of CachingTypes) = Nothing, Optional diskSizeGB As Nullable(Of Integer) = Nothing, Optional storageAccountType As String = Nothing, Optional diskEncryptionSet As DiskEncryptionSetParameters = Nothing)

参数

lun
Int32

指定数据磁盘的逻辑单元号。 此值用于标识 VM 中的数据磁盘,因此对于附加到 VM 的每个数据磁盘必须是唯一的。

snapshot
SubResource

快照。

managedDisk
SubResource

managedDisk。

blobUri
String

虚拟硬盘。

caching
Nullable<CachingTypes>

指定缓存要求。 可能的值为:None、ReadOnly、ReadWrite。对于标准存储,默认值为:None。高级存储的 ReadOnly。 可能的值包括:“None”、“ReadOnly”、“ReadWrite”

diskSizeGB
Nullable<Int32>

指定空数据磁盘的大小(以 GB 为单位)。 此元素可用于覆盖虚拟机映像中的磁盘名称。 此值不能大于 1023 GB。

storageAccountType
String

指定托管磁盘的存储帐户类型。 注意:UltraSSD_LRS只能与数据磁盘一起使用,不能与 OS 磁盘一起使用。 可能的值包括:“Standard_LRS”、“Premium_LRS”、“StandardSSD_LRS”、“UltraSSD_LRS”、“Premium_ZRS”、“StandardSSD_ZRS”、“PremiumV2_LRS”

diskEncryptionSet
DiskEncryptionSetParameters

指定托管映像磁盘的客户托管磁盘加密集资源 ID。

适用于