你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

UpgradePolicy Class

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

Constructor

UpgradePolicy(*, mode: str | _models.UpgradeMode | None = None, rolling_upgrade_policy: _models.RollingUpgradePolicy | None = None, automatic_os_upgrade: bool | None = None, auto_os_upgrade_policy: _models.AutoOSUpgradePolicy | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
mode

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. You do this by using the manualUpgrade action.<br />``<br /> Automatic - All virtual machines in the scale set are automatically updated at the same time. Known values are: "Automatic", "Manual", and "Rolling".

rolling_upgrade_policy

The configuration parameters used while performing a rolling upgrade.

automatic_os_upgrade

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

auto_os_upgrade_policy

Configuration parameters used for performing automatic OS Upgrade.

Variables

Name Description
mode

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. You do this by using the manualUpgrade action.<br />``<br /> Automatic - All virtual machines in the scale set are automatically updated at the same time. Known values are: "Automatic", "Manual", and "Rolling".

rolling_upgrade_policy

The configuration parameters used while performing a rolling upgrade.

automatic_os_upgrade

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

auto_os_upgrade_policy

Configuration parameters used for performing automatic OS Upgrade.