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

IWithOSDiskImageSource.WithLinuxFromDisk 方法

定义

重载

WithLinuxFromDisk(IDisk, OperatingSystemStateTypes)

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

WithLinuxFromDisk(String, OperatingSystemStateTypes)

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

WithLinuxFromDisk(IDisk, OperatingSystemStateTypes)

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

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

参数

sourceManagedDisk
IDisk

源托管磁盘。

osState
OperatingSystemStateTypes

操作系统状态。

返回

适用于

WithLinuxFromDisk(String, OperatingSystemStateTypes)

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

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

参数

sourceManagedDiskId
String

源托管磁盘资源 ID。

osState
OperatingSystemStateTypes

操作系统状态。

返回

适用于