你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
StorageProfile 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
StorageProfile() |
初始化 StorageProfile 类的新实例。 |
StorageProfile(ImageReference, OSDisk, IList<DataDisk>, String) |
初始化 StorageProfile 类的新实例。 |
StorageProfile()
初始化 StorageProfile 类的新实例。
public StorageProfile ();
Public Sub New ()
适用于
StorageProfile(ImageReference, OSDisk, IList<DataDisk>, String)
初始化 StorageProfile 类的新实例。
public StorageProfile (Microsoft.Azure.Management.Compute.Models.ImageReference imageReference = default, Microsoft.Azure.Management.Compute.Models.OSDisk osDisk = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.DataDisk> dataDisks = default, string diskControllerType = default);
new Microsoft.Azure.Management.Compute.Models.StorageProfile : Microsoft.Azure.Management.Compute.Models.ImageReference * Microsoft.Azure.Management.Compute.Models.OSDisk * System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.DataDisk> * string -> Microsoft.Azure.Management.Compute.Models.StorageProfile
Public Sub New (Optional imageReference As ImageReference = Nothing, Optional osDisk As OSDisk = Nothing, Optional dataDisks As IList(Of DataDisk) = Nothing, Optional diskControllerType As String = Nothing)
参数
- imageReference
- ImageReference
指定有关要使用的映像的信息。 可以指定有关平台映像、市场映像或虚拟机映像的信息。 若要使用平台映像、市场映像或虚拟机映像,但未在其他创建操作中使用,则此元素是必需的。
- osDisk
- OSDisk
指定有关虚拟机使用的操作系统磁盘的信息。 有关磁盘的详细信息,请参阅 关于 Azure 虚拟机的磁盘和 VHD。
指定用于将数据磁盘添加到虚拟机的参数。 有关磁盘的详细信息,请参阅 关于 Azure 虚拟机的磁盘和 VHD。
- diskControllerType
- String
指定为 VM 配置的磁盘控制器类型。 注意: 如果未指定,则会将此属性设置为默认磁盘控制器类型,并且根据指定的最低 API 版本中操作系统磁盘的功能和 VM 大小创建“hyperVGeneration”设置为 V2 的虚拟机。 需要先解除分配 VM,然后再更新其磁盘控制器类型,除非更新 VM 配置中的 VM 大小,该配置会隐式解除分配并重新分配 VM。 最低 API 版本:2022-08-01。 可能的值包括:“SCSI”、“NVMe”