共用方式為


IWithSourceVirtualMachine.FromVirtualMachine Method

Definition

Overloads

FromVirtualMachine(IVirtualMachine)

Uses the virtual machine's OS and data disks as the sources for OS disk image and data disk images of this image.

FromVirtualMachine(String)

Uses the virtual machine's OS disk and data disks as the source for OS disk image and data disk images of this image.

FromVirtualMachine(IVirtualMachine)

Uses the virtual machine's OS and data disks as the sources for OS disk image and data disk images of this image.

public Microsoft.Azure.Management.Compute.Fluent.VirtualMachineCustomImage.Definition.IWithCreate FromVirtualMachine (Microsoft.Azure.Management.Compute.Fluent.IVirtualMachine virtualMachine);
abstract member FromVirtualMachine : Microsoft.Azure.Management.Compute.Fluent.IVirtualMachine -> Microsoft.Azure.Management.Compute.Fluent.VirtualMachineCustomImage.Definition.IWithCreate
Public Function FromVirtualMachine (virtualMachine As IVirtualMachine) As IWithCreate

Parameters

virtualMachine
IVirtualMachine

Source virtual machine.

Returns

Applies to

FromVirtualMachine(String)

Uses the virtual machine's OS disk and data disks as the source for OS disk image and data disk images of this image.

public Microsoft.Azure.Management.Compute.Fluent.VirtualMachineCustomImage.Definition.IWithCreate FromVirtualMachine (string virtualMachineId);
abstract member FromVirtualMachine : string -> Microsoft.Azure.Management.Compute.Fluent.VirtualMachineCustomImage.Definition.IWithCreate
Public Function FromVirtualMachine (virtualMachineId As String) As IWithCreate

Parameters

virtualMachineId
String

Source virtual machine resource ID.

Returns

Applies to