你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
IWithDataDiskFromImage.FromImage 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
FromImage(IVirtualMachineCustomImage, Int32) |
指定包含源数据磁盘映像的自定义映像。 |
FromImage(IVirtualMachineImage, Int32) |
指定包含源数据磁盘映像的映像。 |
FromImage(String, Int32) |
指定包含源数据磁盘映像的映像的 ID。 |
FromImage(IVirtualMachineCustomImage, Int32)
指定包含源数据磁盘映像的自定义映像。
public Microsoft.Azure.Management.Compute.Fluent.Disk.Definition.IWithCreateAndSize FromImage (Microsoft.Azure.Management.Compute.Fluent.IVirtualMachineCustomImage image, int diskLun);
abstract member FromImage : Microsoft.Azure.Management.Compute.Fluent.IVirtualMachineCustomImage * int -> Microsoft.Azure.Management.Compute.Fluent.Disk.Definition.IWithCreateAndSize
Public Function FromImage (image As IVirtualMachineCustomImage, diskLun As Integer) As IWithCreateAndSize
参数
映像。
- diskLun
- Int32
磁盘映像的 LUN。
返回
适用于
FromImage(IVirtualMachineImage, Int32)
指定包含源数据磁盘映像的映像。
public Microsoft.Azure.Management.Compute.Fluent.Disk.Definition.IWithCreateAndSize FromImage (Microsoft.Azure.Management.Compute.Fluent.IVirtualMachineImage image, int diskLun);
abstract member FromImage : Microsoft.Azure.Management.Compute.Fluent.IVirtualMachineImage * int -> Microsoft.Azure.Management.Compute.Fluent.Disk.Definition.IWithCreateAndSize
Public Function FromImage (image As IVirtualMachineImage, diskLun As Integer) As IWithCreateAndSize
参数
- image
- IVirtualMachineImage
映像。
- diskLun
- Int32
磁盘映像的 LUN。
返回
适用于
FromImage(String, Int32)
指定包含源数据磁盘映像的映像的 ID。
public Microsoft.Azure.Management.Compute.Fluent.Disk.Definition.IWithCreateAndSize FromImage (string imageId, int diskLun);
abstract member FromImage : string * int -> Microsoft.Azure.Management.Compute.Fluent.Disk.Definition.IWithCreateAndSize
Public Function FromImage (imageId As String, diskLun As Integer) As IWithCreateAndSize
参数
- imageId
- String
图像资源 ID。
- diskLun
- Int32
磁盘映像的 LUN。