Class AutomaticOSUpgradePolicy
java.lang.Object
com.microsoft.azure.management.compute.AutomaticOSUpgradePolicy
The configuration parameters used for performing automatic OS upgrade.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet whether OS image rollback feature should be disabled.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.withDisableAutomaticRollback
(Boolean disableAutomaticRollback) Set whether OS image rollback feature should be disabled.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.
-
Constructor Details
-
AutomaticOSUpgradePolicy
public AutomaticOSUpgradePolicy()
-
-
Method Details
-
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
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
Get whether OS image rollback feature should be disabled. Default value is false.- Returns:
- the disableAutomaticRollback value
-
withDisableAutomaticRollback
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.
-