| Modifier and Type | Method and Description |
|---|---|
UpgradePolicy |
VirtualMachineScaleSetUpdate.upgradePolicy()
Get the upgrade policy.
|
UpgradePolicy |
UpgradePolicy.withAutomaticOSUpgrade(Boolean automaticOSUpgrade)
Set whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the image becomes available.
|
UpgradePolicy |
UpgradePolicy.withAutoOSUpgradePolicy(AutoOSUpgradePolicy autoOSUpgradePolicy)
Set configuration parameters used for performing automatic OS Upgrade.
|
UpgradePolicy |
UpgradePolicy.withMode(UpgradeMode mode)
Set specifies the mode of an upgrade to virtual machines in the scale set.<br /><br /> Possible values are:<br /><br /> **Manual** - You control the application of updates to virtual machines in the scale set.
|
UpgradePolicy |
UpgradePolicy.withRollingUpgradePolicy(RollingUpgradePolicy rollingUpgradePolicy)
Set the configuration parameters used while performing a rolling upgrade.
|
| Modifier and Type | Method and Description |
|---|---|
VirtualMachineScaleSetUpdate |
VirtualMachineScaleSetUpdate.withUpgradePolicy(UpgradePolicy upgradePolicy)
Set the upgrade policy.
|
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/