OSSku Class

public final class OSSku
extends ExpandableStringEnum<OSSku>

Specifies the OS SKU used by the agent pool. The default is Ubuntu if OSType is Linux. The default is Windows2019 when Kubernetes <= 1.24 or Windows2022 when Kubernetes >= 1.25 if OSType is Windows.

Field Summary

Modifier and Type Field and Description
static final OSSku AZURE_LINUX

Static value AzureLinux for OSSku.

static final OSSku CBLMARINER

Static value CBLMariner for OSSku.

static final OSSku UBUNTU

Static value Ubuntu for OSSku.

static final OSSku WINDOWS2019

Static value Windows2019 for OSSku.

static final OSSku WINDOWS2022

Static value Windows2022 for OSSku.

Constructor Summary

Constructor Description
OSSku()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of OSSku value.

Method Summary

Modifier and Type Method and Description
static OSSku fromString(String name)

Creates or finds a OSSku from its string representation.

static Collection<OSSku> values()

Gets known OSSku values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

AZURE_LINUX

public static final OSSku AZURE_LINUX

Static value AzureLinux for OSSku.

CBLMARINER

public static final OSSku CBLMARINER

Static value CBLMariner for OSSku.

UBUNTU

public static final OSSku UBUNTU

Static value Ubuntu for OSSku.

WINDOWS2019

public static final OSSku WINDOWS2019

Static value Windows2019 for OSSku.

WINDOWS2022

public static final OSSku WINDOWS2022

Static value Windows2022 for OSSku.

Constructor Details

OSSku

@Deprecated
public OSSku()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of OSSku value.

Method Details

fromString

public static OSSku fromString(String name)

Creates or finds a OSSku from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding OSSku.

values

public static Collection values()

Gets known OSSku values.

Returns:

known OSSku values.

Applies to