次の方法で共有


VirtualMachineScaleSet.DefinitionStages.WithOS Interface

public interface WithOS

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

Method Summary

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

Specifies that the latest version of a marketplace Linux image should be used.

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

Specifies that the latest version of the specified marketplace Windows image should be used.

VirtualMachineScaleSet.DefinitionStages.WithLinuxRootUsernameManaged withLinuxCustomImage(String customImageId)

Specifies the ID of a Linux custom image to be used.

VirtualMachineScaleSet.DefinitionStages.WithLinuxRootUsernameManagedOrUnmanaged withPopularLinuxImage(KnownLinuxVirtualMachineImage knownImage)

Specifies a known marketplace Linux image used as the virtual machine's operating system.

VirtualMachineScaleSet.DefinitionStages.WithWindowsAdminUsernameManagedOrUnmanaged withPopularWindowsImage(KnownWindowsVirtualMachineImage knownImage)

Specifies a known marketplace Windows image used as the operating system for the virtual machines in the scale set.

VirtualMachineScaleSet.DefinitionStages.WithLinuxRootUsernameManagedOrUnmanaged withSpecificLinuxImageVersion(ImageReference imageReference)

Specifies the specific version of a market-place Linux image that should be used.

VirtualMachineScaleSet.DefinitionStages.WithWindowsAdminUsernameManagedOrUnmanaged withSpecificWindowsImageVersion(ImageReference imageReference)

Specifies the specific version of a marketplace Windows image needs to be used.

VirtualMachineScaleSet.DefinitionStages.WithLinuxRootUsernameUnmanaged withStoredLinuxImage(String imageUrl)

Specifies the user (custom) Linux image used as the virtual machine's operating system.

VirtualMachineScaleSet.DefinitionStages.WithWindowsAdminUsernameUnmanaged withStoredWindowsImage(String imageUrl)

Specifies the user (custom) Windows image to be used as the operating system for the virtual machines in the scale set.

VirtualMachineScaleSet.DefinitionStages.WithWindowsAdminUsernameManaged withWindowsCustomImage(String customImageId)

Specifies the ID of a Windows custom image to be used.

Method Details

withLatestLinuxImage

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

Specifies that the latest version of a marketplace Linux image should be used.

Parameters:

publisher - the publisher of the image
offer - the offer of the image
sku - the 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 the specified marketplace Windows image should be used.

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 ID of a Linux custom image to be used.

Parameters:

customImageId - the resource ID of the custom image

Returns:

the next stage of the definition

withPopularLinuxImage

public WithLinuxRootUsernameManagedOrUnmanaged withPopularLinuxImage(KnownLinuxVirtualMachineImage knownImage)

Specifies a known marketplace Linux image used as the virtual machine's operating system.

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 used as the operating system for the virtual machines in the scale set.

Parameters:

knownImage - a known market-place image

Returns:

the next stage of the definition

withSpecificLinuxImageVersion

public WithLinuxRootUsernameManagedOrUnmanaged withSpecificLinuxImageVersion(ImageReference imageReference)

Specifies the specific version of a market-place Linux image that should be used.

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 the specific version of a marketplace Windows image needs to be used.

Parameters:

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

Returns:

the next stage of the definition

withStoredLinuxImage

public WithLinuxRootUsernameUnmanaged withStoredLinuxImage(String imageUrl)

Specifies the user (custom) Linux image used as the virtual machine's operating system.

Parameters:

imageUrl - the URL the the VHD

Returns:

the next stage of the definition

withStoredWindowsImage

public WithWindowsAdminUsernameUnmanaged withStoredWindowsImage(String imageUrl)

Specifies the user (custom) Windows image to be used as the operating system for the virtual machines in the scale set.

Parameters:

imageUrl - the URL of the VHD

Returns:

the next stage of the definition

withWindowsCustomImage

public WithWindowsAdminUsernameManaged withWindowsCustomImage(String customImageId)

Specifies the ID of a Windows custom image to be used.

Parameters:

customImageId - the resource ID of the custom image

Returns:

the next stage of the definition

Applies to