Class OSSku

java.lang.Object
com.azure.core.util.ExpandableStringEnum<OSSku>
com.azure.resourcemanager.containerservice.models.OSSku
All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>

public final class OSSku extends com.azure.core.util.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

    Fields
    Modifier and Type
    Field
    Description
    static final OSSku
    Use AzureLinux as the OS for node images.
    static final OSSku
    Use AzureLinux3 as the OS for node images.
    static final OSSku
    Deprecated OSSKU.
    static final OSSku
    Use Ubuntu as the OS for node images.
    static final OSSku
    Use Ubuntu2204 as the OS for node images, however, Ubuntu 22.04 may not be supported for all nodepools.
    static final OSSku
    Use Ubuntu2404 as the OS for node images, however, Ubuntu 24.04 may not be supported for all nodepools.
    static final OSSku
    Use Windows2019 as the OS for node images.
    static final OSSku
    Use Windows2022 as the OS for node images.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Use the fromString(String) factory method.
  • Method Summary

    Modifier and Type
    Method
    Description
    static OSSku
    Creates or finds a OSSku from its string representation.
    Gets known OSSku values.

    Methods inherited from class com.azure.core.util.ExpandableStringEnum

    equals, fromString, getValue, hashCode, toString, values

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • UBUNTU

      public static final OSSku UBUNTU
      Use Ubuntu as the OS for node images.
    • AZURE_LINUX

      public static final OSSku AZURE_LINUX
      Use AzureLinux as the OS for node images. Azure Linux is a container-optimized Linux distro built by Microsoft, visit https://aka.ms/azurelinux for more information.
    • AZURE_LINUX3

      public static final OSSku AZURE_LINUX3
      Use AzureLinux3 as the OS for node images. Azure Linux is a container-optimized Linux distro built by Microsoft, visit https://aka.ms/azurelinux for more information. For limitations, visit https://aka.ms/aks/node-images. For OS migration guidance, see https://aka.ms/aks/upgrade-os-version.
    • CBLMARINER

      public static final OSSku CBLMARINER
      Deprecated OSSKU. Microsoft recommends that new deployments choose 'AzureLinux' instead.
    • WINDOWS2019

      public static final OSSku WINDOWS2019
      Use Windows2019 as the OS for node images. Unsupported for system node pools. Windows2019 only supports Windows2019 containers; it cannot run Windows2022 containers and vice versa.
    • WINDOWS2022

      public static final OSSku WINDOWS2022
      Use Windows2022 as the OS for node images. Unsupported for system node pools. Windows2022 only supports Windows2022 containers; it cannot run Windows2019 containers and vice versa.
    • UBUNTU2204

      public static final OSSku UBUNTU2204
      Use Ubuntu2204 as the OS for node images, however, Ubuntu 22.04 may not be supported for all nodepools. For limitations and supported kubernetes versions, see https://aka.ms/aks/supported-ubuntu-versions.
    • UBUNTU2404

      public static final OSSku UBUNTU2404
      Use Ubuntu2404 as the OS for node images, however, Ubuntu 24.04 may not be supported for all nodepools. For limitations and supported kubernetes versions, see see https://aka.ms/aks/supported-ubuntu-versions.
  • Constructor Details

  • 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<OSSku> values()
      Gets known OSSku values.
      Returns:
      known OSSku values.