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

IWithOSDiskFromImage.FromImage 方法

定义

重载

FromImage(IVirtualMachineCustomImage)

指定包含操作系统的自定义映像。

FromImage(IVirtualMachineImage)

指定包含操作系统的映像。

FromImage(String, OperatingSystemTypes)

指定包含操作系统的映像的 ID。

FromImage(IVirtualMachineCustomImage)

指定包含操作系统的自定义映像。

public Microsoft.Azure.Management.Compute.Fluent.Disk.Definition.IWithCreateAndSize FromImage (Microsoft.Azure.Management.Compute.Fluent.IVirtualMachineCustomImage image);
abstract member FromImage : Microsoft.Azure.Management.Compute.Fluent.IVirtualMachineCustomImage -> Microsoft.Azure.Management.Compute.Fluent.Disk.Definition.IWithCreateAndSize
Public Function FromImage (image As IVirtualMachineCustomImage) As IWithCreateAndSize

参数

image
IVirtualMachineCustomImage

映像。

返回

适用于

FromImage(IVirtualMachineImage)

指定包含操作系统的映像。

public Microsoft.Azure.Management.Compute.Fluent.Disk.Definition.IWithCreateAndSize FromImage (Microsoft.Azure.Management.Compute.Fluent.IVirtualMachineImage image);
abstract member FromImage : Microsoft.Azure.Management.Compute.Fluent.IVirtualMachineImage -> Microsoft.Azure.Management.Compute.Fluent.Disk.Definition.IWithCreateAndSize
Public Function FromImage (image As IVirtualMachineImage) As IWithCreateAndSize

参数

image
IVirtualMachineImage

映像。

返回

适用于

FromImage(String, OperatingSystemTypes)

指定包含操作系统的映像的 ID。

public Microsoft.Azure.Management.Compute.Fluent.Disk.Definition.IWithCreateAndSize FromImage (string imageId, Microsoft.Azure.Management.Compute.Fluent.Models.OperatingSystemTypes osType);
abstract member FromImage : string * Microsoft.Azure.Management.Compute.Fluent.Models.OperatingSystemTypes -> Microsoft.Azure.Management.Compute.Fluent.Disk.Definition.IWithCreateAndSize
Public Function FromImage (imageId As String, osType As OperatingSystemTypes) As IWithCreateAndSize

参数

imageId
String

图像资源 ID。

osType
OperatingSystemTypes

操作系统类型。

返回

适用于