UpgradePolicy Class
Describes an upgrade policy - automatic, manual, or rolling.
- Inheritance
-
azure.mgmt.compute._serialization.ModelUpgradePolicy
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
|
str or
UpgradeMode
Specifies the mode of an upgrade to virtual machines in the scale set.:code: |
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
|
str or
UpgradeMode
Specifies the mode of an upgrade to virtual machines in the scale set.:code: |
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. |
Azure SDK for Python