Udostępnij za pośrednictwem


UpgradePolicy Class

Definition

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

public class UpgradePolicy
type UpgradePolicy = class
Public Class UpgradePolicy
Inheritance
UpgradePolicy

Constructors

UpgradePolicy()

Default constructor to support mocking the UpgradePolicy class.

UpgradePolicy(UpgradeMode)

Initializes a new instance of the UpgradePolicy class.

Properties

AutomaticOSUpgradePolicy

Gets or sets configuration parameters used for performing automatic OS Upgrade.

Mode

Gets or sets 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.

RollingUpgradePolicy

Gets or sets the configuration parameters used while performing a rolling upgrade.

Applies to