AutomaticOSUpgradePolicy.withEnableAutomaticOSUpgrade(Boolean enableAutomaticOSUpgrade) Method

Definition

Set the enableAutomaticOSUpgrade property: 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.

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.

public AutomaticOSUpgradePolicy withEnableAutomaticOSUpgrade(Boolean enableAutomaticOSUpgrade)

Parameters

enableAutomaticOSUpgrade
java.lang.Boolean

the enableAutomaticOSUpgrade value to set.

Returns

the AutomaticOSUpgradePolicy object itself.

Applies to