UpgradePolicy Class

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

All required parameters must be populated in order to send to server.

Inheritance
azure.mgmt.batch._serialization.Model
UpgradePolicy

Constructor

UpgradePolicy(*, mode: str | _models.UpgradeMode, automatic_os_upgrade_policy: _models.AutomaticOSUpgradePolicy | None = None, rolling_upgrade_policy: _models.RollingUpgradePolicy | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
mode

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.:code:
<br /> 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

The configuration parameters used for performing automatic OS upgrade.

rolling_upgrade_policy

The configuration parameters used while performing a rolling upgrade.

Variables

Name Description
mode

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.:code:
<br /> 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

The configuration parameters used for performing automatic OS upgrade.

rolling_upgrade_policy

The configuration parameters used while performing a rolling upgrade.