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

IWithOSDiskImageSource.WithWindowsFromDisk 方法

定义

重载

WithWindowsFromDisk(IDisk, OperatingSystemStateTypes)

指定 OS 磁盘映像的 Windows 源托管磁盘。

WithWindowsFromDisk(String, OperatingSystemStateTypes)

指定 OS 磁盘映像的 Windows 源托管磁盘。

WithWindowsFromDisk(IDisk, OperatingSystemStateTypes)

指定 OS 磁盘映像的 Windows 源托管磁盘。

public Microsoft.Azure.Management.Compute.Fluent.VirtualMachineCustomImage.Definition.IWithCreateAndDataDiskImageOSDiskSettings WithWindowsFromDisk (Microsoft.Azure.Management.Compute.Fluent.IDisk sourceManagedDisk, Microsoft.Azure.Management.Compute.Fluent.Models.OperatingSystemStateTypes osState);
abstract member WithWindowsFromDisk : Microsoft.Azure.Management.Compute.Fluent.IDisk * Microsoft.Azure.Management.Compute.Fluent.Models.OperatingSystemStateTypes -> Microsoft.Azure.Management.Compute.Fluent.VirtualMachineCustomImage.Definition.IWithCreateAndDataDiskImageOSDiskSettings
Public Function WithWindowsFromDisk (sourceManagedDisk As IDisk, osState As OperatingSystemStateTypes) As IWithCreateAndDataDiskImageOSDiskSettings

参数

sourceManagedDisk
IDisk

源托管磁盘。

osState
OperatingSystemStateTypes

操作系统状态。

返回

适用于

WithWindowsFromDisk(String, OperatingSystemStateTypes)

指定 OS 磁盘映像的 Windows 源托管磁盘。

public Microsoft.Azure.Management.Compute.Fluent.VirtualMachineCustomImage.Definition.IWithCreateAndDataDiskImageOSDiskSettings WithWindowsFromDisk (string sourceManagedDiskId, Microsoft.Azure.Management.Compute.Fluent.Models.OperatingSystemStateTypes osState);
abstract member WithWindowsFromDisk : string * Microsoft.Azure.Management.Compute.Fluent.Models.OperatingSystemStateTypes -> Microsoft.Azure.Management.Compute.Fluent.VirtualMachineCustomImage.Definition.IWithCreateAndDataDiskImageOSDiskSettings
Public Function WithWindowsFromDisk (sourceManagedDiskId As String, osState As OperatingSystemStateTypes) As IWithCreateAndDataDiskImageOSDiskSettings

参数

sourceManagedDiskId
String

源托管磁盘资源 ID。

osState
OperatingSystemStateTypes

操作系统状态。

返回

适用于