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

GalleryImageVersion.DefinitionStages.WithSource Interface

public static interface GalleryImageVersion.DefinitionStages.WithSource

The stage of the image version definition allowing to specify the source.

Method Summary

Modifier and Type Method and Description
abstract WithCreate withSourceCustomImage(String customImageId)

Specifies that the provided custom image needs to be used as source of the image version.

abstract WithCreate withSourceCustomImage(VirtualMachineCustomImage customImage)

Specifies that the provided custom image needs to be used as source of the image version.

abstract WithCreate withSourceVirtualMachine(String vmId)

Specifies that the provided virtual machine needs to be used as source of the image version.

abstract WithCreate withSourceVirtualMachine(VirtualMachine virtualMachine)

Specifies that the provided virtual machine needs to be used as source of the image version.

Method Details

withSourceCustomImage

public abstract GalleryImageVersion.DefinitionStages.WithCreate withSourceCustomImage(String customImageId)

Specifies that the provided custom image needs to be used as source of the image version.

Parameters:

customImageId - the ARM id of the custom image

Returns:

the next definition stage

withSourceCustomImage

public abstract GalleryImageVersion.DefinitionStages.WithCreate withSourceCustomImage(VirtualMachineCustomImage customImage)

Specifies that the provided custom image needs to be used as source of the image version.

Parameters:

customImage - the custom image

Returns:

the next definition stage

withSourceVirtualMachine

public abstract GalleryImageVersion.DefinitionStages.WithCreate withSourceVirtualMachine(String vmId)

Specifies that the provided virtual machine needs to be used as source of the image version.

Parameters:

vmId - resource ID of the virtual machine

Returns:

the next definition stage

withSourceVirtualMachine

public abstract GalleryImageVersion.DefinitionStages.WithCreate withSourceVirtualMachine(VirtualMachine virtualMachine)

Specifies that the provided virtual machine needs to be used as source of the image version.

Parameters:

virtualMachine - virtual machine instance

Returns:

the next definition stage

Applies to