VirtualMachineCustomImage.DefinitionStages.WithDataDiskImage Interface
public interface WithDataDiskImage
The stage of an image definition allowing to add a data disk image.
Method Summary
Modifier and Type | Method and Description |
---|---|
CustomImageDataDisk.DefinitionStages.Blank<Virtual |
defineDataDiskImage()
Begins the definition of a new data disk image to add to the image. |
Virtual |
withDataDiskImageFromManagedDisk(String sourceManagedDiskId)
Adds a data disk image with an existing managed disk as the source. |
Virtual |
withDataDiskImageFromSnapshot(String sourceSnapshotId)
Adds a data disk image with an existing snapshot as the source. |
Virtual |
withDataDiskImageFromVhd(String sourceVhdUrl)
Adds a data disk image with a virtual hard disk as the source. |
Method Details
defineDataDiskImage
public CustomImageDataDisk.DefinitionStages.Blank
Begins the definition of a new data disk image to add to the image.
Returns:
withDataDiskImageFromManagedDisk
public WithCreateAndDataDiskImageOSDiskSettings withDataDiskImageFromManagedDisk(String sourceManagedDiskId)
Adds a data disk image with an existing managed disk as the source.
Parameters:
Returns:
withDataDiskImageFromSnapshot
public WithCreateAndDataDiskImageOSDiskSettings withDataDiskImageFromSnapshot(String sourceSnapshotId)
Adds a data disk image with an existing snapshot as the source.
Parameters:
Returns:
withDataDiskImageFromVhd
public WithCreateAndDataDiskImageOSDiskSettings withDataDiskImageFromVhd(String sourceVhdUrl)
Adds a data disk image with a virtual hard disk as the source.
Parameters:
Returns:
Applies to
Azure SDK for Java