Compartir vía


Disk.DefinitionStages.WithOSDiskFromImage Interface

public interface WithOSDiskFromImage

The stage of the managed disk definition allowing to choose source operating system image.

Method Summary

Modifier and Type Method and Description
Disk.DefinitionStages.WithCreateAndSize fromImage(String imageId, OperatingSystemTypes osType)

Specifies the ID of an image containing the operating system.

Disk.DefinitionStages.WithCreateAndSize fromImage(VirtualMachineCustomImage image)

Specifies a custom image containing the operating system.

Disk.DefinitionStages.WithCreateAndSize fromImage(VirtualMachineImage image)

Specifies an image containing the operating system.

Method Details

fromImage

public WithCreateAndSize fromImage(String imageId, OperatingSystemTypes osType)

Specifies the ID of an image containing the operating system.

Parameters:

imageId - image resource ID
osType - operating system type

Returns:

the next stage of the definition

fromImage

public WithCreateAndSize fromImage(VirtualMachineCustomImage image)

Specifies a custom image containing the operating system.

Parameters:

image - the image

Returns:

the next stage of the definition

fromImage

public WithCreateAndSize fromImage(VirtualMachineImage image)

Specifies an image containing the operating system.

Parameters:

image - the image

Returns:

the next stage of the definition

Applies to