UpgradePolicy Class

Describes an upgrade policy - automatic, manual, or rolling.

Inheritance
UpgradePolicy

Constructor

UpgradePolicy(*, mode: Optional[Union[str, azure.mgmt.compute.v2017_03_30.models._compute_management_client_enums.UpgradeMode]] = None, rolling_upgrade_policy: Optional[azure.mgmt.compute.v2017_03_30.models._models_py3.RollingUpgradePolicy] = None, automatic_os_upgrade: Optional[bool] = None, **kwargs)

Parameters

mode
str or UpgradeMode
Required

Specifies the mode of an upgrade to virtual machines in the scale set.:code:
<br /> Possible values are:<br />``<br /> Manual - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.:code:
<br /> Automatic - All virtual machines in the scale set are automatically updated at the same time. Possible values include: "Automatic", "Manual", "Rolling".

rolling_upgrade_policy
RollingUpgradePolicy
Required

The configuration parameters used while performing a rolling upgrade.

automatic_os_upgrade
bool
Required

Whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the image becomes available.