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

Snapshot.DefinitionStages.WithOSSnapshotFromImage Interface

public interface WithOSSnapshotFromImage

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

Method Summary

Modifier and Type Method and Description
Snapshot.DefinitionStages.WithCreate fromImage(String imageId, OperatingSystemTypes osType)

Specifies an image containing an operating system.

Snapshot.DefinitionStages.WithCreate fromImage(VirtualMachineCustomImage image)

Specifies a custom image containing an operating system.

Snapshot.DefinitionStages.WithCreate fromImage(VirtualMachineImage image)

Specifies an image containing an operating system.

Method Details

fromImage

public WithCreate fromImage(String imageId, OperatingSystemTypes osType)

Specifies an image containing an operating system.

Parameters:

imageId - image resource ID
osType - operating system type

Returns:

the next stage of the definition

fromImage

public WithCreate fromImage(VirtualMachineCustomImage image)

Specifies a custom image containing an operating system.

Parameters:

image - the image

Returns:

the next stage of the definition

fromImage

public WithCreate fromImage(VirtualMachineImage image)

Specifies an image containing an operating system.

Parameters:

image - the image

Returns:

the next stage of the definition

Applies to