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

ImageDisk 构造函数

定义

重载

ImageDisk()

初始化 ImageDisk 类的新实例。

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

初始化 ImageDisk 类的新实例。

ImageDisk()

初始化 ImageDisk 类的新实例。

public ImageDisk ();
Public Sub New ()

适用于

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

初始化 ImageDisk 类的新实例。

public ImageDisk (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.ImageDisk : 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.ImageDisk
Public Sub New (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)

参数

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。

适用于