Class AutomaticOSUpgradePolicy

java.lang.Object
com.microsoft.azure.management.compute.AutomaticOSUpgradePolicy

public class AutomaticOSUpgradePolicy extends Object
The configuration parameters used for performing automatic OS upgrade.
  • Constructor Details

    • AutomaticOSUpgradePolicy

      public AutomaticOSUpgradePolicy()
  • Method Details

    • enableAutomaticOSUpgrade

      public Boolean enableAutomaticOSUpgrade()
      Get indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available. Default value is false. <br><br> If this is set to true for Windows based scale sets, [enableAutomaticUpdates](https://docs.microsoft.com/dotnet/api/microsoft.azure.management.compute.models.windowsconfiguration.enableautomaticupdates?view=azure-dotnet) is automatically set to false and cannot be set to true.
      Returns:
      the enableAutomaticOSUpgrade value
    • withEnableAutomaticOSUpgrade

      public AutomaticOSUpgradePolicy withEnableAutomaticOSUpgrade(Boolean enableAutomaticOSUpgrade)
      Set indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available. Default value is false. <br><br> If this is set to true for Windows based scale sets, [enableAutomaticUpdates](https://docs.microsoft.com/dotnet/api/microsoft.azure.management.compute.models.windowsconfiguration.enableautomaticupdates?view=azure-dotnet) is automatically set to false and cannot be set to true.
      Parameters:
      enableAutomaticOSUpgrade - the enableAutomaticOSUpgrade value to set
      Returns:
      the AutomaticOSUpgradePolicy object itself.
    • disableAutomaticRollback

      public Boolean disableAutomaticRollback()
      Get whether OS image rollback feature should be disabled. Default value is false.
      Returns:
      the disableAutomaticRollback value
    • withDisableAutomaticRollback

      public AutomaticOSUpgradePolicy withDisableAutomaticRollback(Boolean disableAutomaticRollback)
      Set whether OS image rollback feature should be disabled. Default value is false.
      Parameters:
      disableAutomaticRollback - the disableAutomaticRollback value to set
      Returns:
      the AutomaticOSUpgradePolicy object itself.