Class OSDiskType

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

public final class OSDiskType extends com.azure.core.util.ExpandableStringEnum<OSDiskType>
The OS disk type to be used for machines in the agent pool. The default is 'Ephemeral' if the VM supports it and has a cache disk larger than the requested OSDiskSizeGB. Otherwise, defaults to 'Managed'. May not be changed after creation. For more information see [Ephemeral OS](https://docs.microsoft.com/azure/aks/cluster-configuration#ephemeral-os).
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final OSDiskType
    Ephemeral OS disks are stored only on the host machine, just like a temporary disk.
    static final OSDiskType
    Azure replicates the operating system disk for a virtual machine to Azure storage to avoid data loss should the VM need to be relocated to another host.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    static OSDiskType
    Creates or finds a OSDiskType from its string representation.
    Gets known OSDiskType 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

    • MANAGED

      public static final OSDiskType MANAGED
      Azure replicates the operating system disk for a virtual machine to Azure storage to avoid data loss should the VM need to be relocated to another host. Since containers aren't designed to have local state persisted, this behavior offers limited value while providing some drawbacks, including slower node provisioning and higher read/write latency.
    • EPHEMERAL

      public static final OSDiskType EPHEMERAL
      Ephemeral OS disks are stored only on the host machine, just like a temporary disk. This provides lower read/write latency, along with faster node scaling and cluster upgrades.
  • Constructor Details

  • Method Details

    • fromString

      public static OSDiskType fromString(String name)
      Creates or finds a OSDiskType from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding OSDiskType.
    • values

      public static Collection<OSDiskType> values()
      Gets known OSDiskType values.
      Returns:
      known OSDiskType values.