Partilhar via


VirtualMachineCustomImage.DefinitionStages.WithDataDiskImage Interface

public static interface VirtualMachineCustomImage.DefinitionStages.WithDataDiskImage

The stage of an image definition allowing to add a data disk image.

Method Summary

Modifier and Type Method and Description
abstract Blank<WithCreateAndDataDiskImageOSDiskSettings> defineDataDiskImage()

Begins the definition of a new data disk image to add to the image.

abstract WithCreateAndDataDiskImageOSDiskSettings withDataDiskImageFromManagedDisk(String sourceManagedDiskId)

Adds a data disk image with an existing managed disk as the source.

abstract WithCreateAndDataDiskImageOSDiskSettings withDataDiskImageFromSnapshot(String sourceSnapshotId)

Adds a data disk image with an existing snapshot as the source.

abstract WithCreateAndDataDiskImageOSDiskSettings withDataDiskImageFromVhd(String sourceVhdUrl)

Adds a data disk image with a virtual hard disk as the source.

Method Details

defineDataDiskImage

public abstract VirtualMachineCustomImage.CustomImageDataDisk.DefinitionStages.Blank defineDataDiskImage()

Begins the definition of a new data disk image to add to the image.

Returns:

the first stage of the new data disk image definition

withDataDiskImageFromManagedDisk

public abstract VirtualMachineCustomImage.DefinitionStages.WithCreateAndDataDiskImageOSDiskSettings withDataDiskImageFromManagedDisk(String sourceManagedDiskId)

Adds a data disk image with an existing managed disk as the source.

Parameters:

sourceManagedDiskId - source managed disk resource ID

Returns:

the next stage of the definition

withDataDiskImageFromSnapshot

public abstract VirtualMachineCustomImage.DefinitionStages.WithCreateAndDataDiskImageOSDiskSettings withDataDiskImageFromSnapshot(String sourceSnapshotId)

Adds a data disk image with an existing snapshot as the source.

Parameters:

sourceSnapshotId - source snapshot resource ID

Returns:

the next stage of the definition

withDataDiskImageFromVhd

public abstract VirtualMachineCustomImage.DefinitionStages.WithCreateAndDataDiskImageOSDiskSettings withDataDiskImageFromVhd(String sourceVhdUrl)

Adds a data disk image with a virtual hard disk as the source.

Parameters:

sourceVhdUrl - source virtual hard disk URL

Returns:

the next stage of the definition

Applies to