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