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

VirtualMachineCustomImage.DefinitionStages.WithSourceVirtualMachine Interface

public interface WithSourceVirtualMachine

The stage of the image definition allowing to choose source virtual machine.

Method Summary

Modifier and Type Method and Description
VirtualMachineCustomImage.DefinitionStages.WithCreate fromVirtualMachine(String virtualMachineId)

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

VirtualMachineCustomImage.DefinitionStages.WithCreate fromVirtualMachine(VirtualMachine virtualMachine)

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

Method Details

fromVirtualMachine

public WithCreate fromVirtualMachine(String virtualMachineId)

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

Parameters:

virtualMachineId - source virtual machine resource ID

Returns:

the next stage of the definition

fromVirtualMachine

public WithCreate fromVirtualMachine(VirtualMachine virtualMachine)

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

Parameters:

virtualMachine - source virtual machine

Returns:

the next stage of the definition

Applies to