Interface VirtualMachineCustomImage.DefinitionStages.WithSourceVirtualMachine
- All Known Subinterfaces:
VirtualMachineCustomImage.Definition
,VirtualMachineCustomImage.DefinitionStages.WithHyperVGeneration
,VirtualMachineCustomImage.DefinitionStages.WithOSDiskImageSourceAltVirtualMachineSource
- Enclosing interface:
- VirtualMachineCustomImage.DefinitionStages
public static interface VirtualMachineCustomImage.DefinitionStages.WithSourceVirtualMachine
The stage of the image definition allowing to choose source virtual machine.
-
Method Summary
Modifier and TypeMethodDescriptionfromVirtualMachine
(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.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.
-
Method Details
-
fromVirtualMachine
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
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.- Parameters:
virtualMachine
- source virtual machine- Returns:
- the next stage of the definition
-