Share via


UpgradePolicy Class

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

Constructor

UpgradePolicy(*args: Any, **kwargs: Any)

Variables

Name Description
mode

Specifies the mode of an upgrade to virtual machines in the scale set.

Possible values are:

Manual - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.

Automatic - All virtual machines in the scale set are automatically updated at the same time.

Rolling - Scale set performs updates in batches with an optional pause time in between. Required. Known values are: "automatic", "manual", and "rolling".

automatic_os_upgrade_policy

Configuration parameters used for performing automatic OS Upgrade.

rolling_upgrade_policy

The configuration parameters used while performing a rolling upgrade.

Attributes

automatic_os_upgrade_policy

Configuration parameters used for performing automatic OS Upgrade.

automatic_os_upgrade_policy: _models.AutomaticOSUpgradePolicy | None

mode

Specifies the mode of an upgrade to virtual machines in the scale set.

Possible values are:

Manual - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.

Automatic - All virtual machines in the scale set are automatically updated at the same time.

Rolling - Scale set performs updates in batches with an optional pause time in between. Required. Known values are: "automatic", "manual", and "rolling".

mode: str | _models.UpgradeMode

rolling_upgrade_policy

The configuration parameters used while performing a rolling upgrade.

rolling_upgrade_policy: _models.RollingUpgradePolicy | None