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

VirtualMachineCustomImage Interface

Implements

public interface VirtualMachineCustomImage
extends GroupableResource<ComputeManager,ImageInner>, Refreshable<VirtualMachineCustomImage>

An immutable client-side representation of an Azure virtual machine custom image.

Method Summary

Modifier and Type Method and Description
abstract Map<Integer,ImageDataDisk> dataDiskImages()

Gets data disk images in this image.

abstract HyperVGenerationTypes hyperVGeneration()

Gets the hyper v Generation.

abstract boolean isCreatedFromVirtualMachine()

Checks whether this image was created by capturing a virtual machine.

abstract ImageOSDisk osDiskImage()

Gets operating system disk image in this image.

abstract String sourceVirtualMachineId()

Gets ID of the virtual machine if this image was created by capturing that virtual machine.

Method Details

dataDiskImages

public abstract Map<Integer,ImageDataDisk> dataDiskImages()

Gets data disk images in this image.

Returns:

data disk images in this image, indexed by the disk LUN

hyperVGeneration

public abstract HyperVGenerationTypes hyperVGeneration()

Gets the hyper v Generation.

Returns:

the hyper v Generation

isCreatedFromVirtualMachine

public abstract boolean isCreatedFromVirtualMachine()

Checks whether this image was created by capturing a virtual machine.

Returns:

true if this image was created by capturing a virtual machine

osDiskImage

public abstract ImageOSDisk osDiskImage()

Gets operating system disk image in this image.

Returns:

operating system disk image in this image

sourceVirtualMachineId

public abstract String sourceVirtualMachineId()

Gets ID of the virtual machine if this image was created by capturing that virtual machine.

Returns:

ID of the virtual machine if this image was created by capturing that virtual machine

Applies to