VirtualMachine.DefinitionStages.WithOS Interface

public interface WithOS

The stage of a virtual machine definition allowing to specify the operating system image.

Method Summary

Modifier and Type Method and Description
VirtualMachine.DefinitionStages.WithLinuxRootUsernameManagedOrUnmanaged withLatestLinuxImage(String publisher, String offer, String sku)

Specifies that the latest version of a marketplace Linux image is to be used as the virtual machine's OS.

VirtualMachine.DefinitionStages.WithWindowsAdminUsernameManagedOrUnmanaged withLatestWindowsImage(String publisher, String offer, String sku)

Specifies that the latest version of a marketplace Windows image should to be used as the virtual machine's OS.

VirtualMachine.DefinitionStages.WithLinuxRootUsernameManaged withLinuxCustomImage(String customImageId)

Specifies the resource ID of a Linux custom image to be used as the virtual machines' OS.

VirtualMachine.DefinitionStages.WithLinuxRootUsernameManagedOrUnmanaged withPopularLinuxImage(KnownLinuxVirtualMachineImage knownImage)

Specifies a known marketplace Linux image to be used for the virtual machine's OS.

VirtualMachine.DefinitionStages.WithWindowsAdminUsernameManagedOrUnmanaged withPopularWindowsImage(KnownWindowsVirtualMachineImage knownImage)

Specifies a known marketplace Windows image to be used for the virtual machine's OS.

VirtualMachine.DefinitionStages.WithManagedCreate withSpecializedOSDisk(Disk disk, OperatingSystemTypes osType)

Specifies a specialized operating system managed disk to be attached to the virtual machine.

VirtualMachine.DefinitionStages.WithUnmanagedCreate withSpecializedOSUnmanagedDisk(String osDiskUrl, OperatingSystemTypes osType)

Specifies a specialized operating system unmanaged disk to be attached to the virtual machine.

VirtualMachine.DefinitionStages.WithLinuxRootUsernameManagedOrUnmanaged withSpecificLinuxImageVersion(ImageReference imageReference)

Specifies a version of a market-place Linux image to be used as the virtual machine's OS.

VirtualMachine.DefinitionStages.WithWindowsAdminUsernameManagedOrUnmanaged withSpecificWindowsImageVersion(ImageReference imageReference)

Specifies a version of a marketplace Windows image to be used as the virtual machine's OS.

VirtualMachine.DefinitionStages.WithLinuxRootUsernameUnmanaged withStoredLinuxImage(String imageUrl)

Specifies a user (generalized) Linux image to be used for the virtual machine's OS.

VirtualMachine.DefinitionStages.WithWindowsAdminUsernameUnmanaged withStoredWindowsImage(String imageUrl)

Specifies the user (generalized) Windows image to be used for the virtual machine's OS.

VirtualMachine.DefinitionStages.WithWindowsAdminUsernameManaged withWindowsCustomImage(String customImageId)

Specifies the resource ID of a Windows custom image to be used as the virtual machine's OS.

Method Details

withLatestLinuxImage

public WithLinuxRootUsernameManagedOrUnmanaged withLatestLinuxImage(String publisher, String offer, String sku)

Specifies that the latest version of a marketplace Linux image is to be used as the virtual machine's OS.

Parameters:

publisher - specifies the publisher of an image
offer - specifies an offer of the image
sku - specifies a SKU of the image

Returns:

the next stage of the definition

withLatestWindowsImage

public WithWindowsAdminUsernameManagedOrUnmanaged withLatestWindowsImage(String publisher, String offer, String sku)

Specifies that the latest version of a marketplace Windows image should to be used as the virtual machine's OS.

Parameters:

publisher - specifies the publisher of the image
offer - specifies the offer of the image
sku - specifies the SKU of the image

Returns:

the next stage of the definition

withLinuxCustomImage

public WithLinuxRootUsernameManaged withLinuxCustomImage(String customImageId)

Specifies the resource ID of a Linux custom image to be used as the virtual machines' OS.

Parameters:

customImageId - the resource ID of a custom image

Returns:

the next stage of the definition

withPopularLinuxImage

public WithLinuxRootUsernameManagedOrUnmanaged withPopularLinuxImage(KnownLinuxVirtualMachineImage knownImage)

Specifies a known marketplace Linux image to be used for the virtual machine's OS.

Parameters:

knownImage - a known market-place image

Returns:

the next stage of the definition

withPopularWindowsImage

public WithWindowsAdminUsernameManagedOrUnmanaged withPopularWindowsImage(KnownWindowsVirtualMachineImage knownImage)

Specifies a known marketplace Windows image to be used for the virtual machine's OS.

Parameters:

knownImage - a known market-place image

Returns:

the next stage of the definition

withSpecializedOSDisk

public WithManagedCreate withSpecializedOSDisk(Disk disk, OperatingSystemTypes osType)

Specifies a specialized operating system managed disk to be attached to the virtual machine.

Parameters:

disk - the managed disk to attach
osType - the OS type

Returns:

the next stage of the definition

withSpecializedOSUnmanagedDisk

public WithUnmanagedCreate withSpecializedOSUnmanagedDisk(String osDiskUrl, OperatingSystemTypes osType)

Specifies a specialized operating system unmanaged disk to be attached to the virtual machine.

Parameters:

osDiskUrl - osDiskUrl the URL to the OS disk in the Azure Storage account
osType - the OS type

Returns:

the next stage of the definition

withSpecificLinuxImageVersion

public WithLinuxRootUsernameManagedOrUnmanaged withSpecificLinuxImageVersion(ImageReference imageReference)

Specifies a version of a market-place Linux image to be used as the virtual machine's OS.

Parameters:

imageReference - describes the publisher, offer, SKU and version of the market-place image

Returns:

the next stage of the definition

withSpecificWindowsImageVersion

public WithWindowsAdminUsernameManagedOrUnmanaged withSpecificWindowsImageVersion(ImageReference imageReference)

Specifies a version of a marketplace Windows image to be used as the virtual machine's OS.

Parameters:

imageReference - describes publisher, offer, SKU and version of the market-place image

Returns:

the next stage of the definition

withStoredLinuxImage

public WithLinuxRootUsernameUnmanaged withStoredLinuxImage(String imageUrl)

Specifies a user (generalized) Linux image to be used for the virtual machine's OS.

Parameters:

imageUrl - the URL of a VHD

Returns:

the next stage of the definition

withStoredWindowsImage

public WithWindowsAdminUsernameUnmanaged withStoredWindowsImage(String imageUrl)

Specifies the user (generalized) Windows image to be used for the virtual machine's OS.

Parameters:

imageUrl - the URL of a VHD

Returns:

the next stage of the definition

withWindowsCustomImage

public WithWindowsAdminUsernameManaged withWindowsCustomImage(String customImageId)

Specifies the resource ID of a Windows custom image to be used as the virtual machine's OS.

Parameters:

customImageId - the resource ID of the custom image

Returns:

the next stage of the definition

Applies to