Dela via


UpgradePolicy Class

Definition

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

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

Constructors

UpgradePolicy()

Initializes a new instance of the UpgradePolicy class.

UpgradePolicy(Nullable<UpgradeMode>, RollingUpgradePolicy, AutomaticOSUpgradePolicy)

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.&lt;br /&gt;&lt;br /&gt; Possible values are:&lt;br /&gt;&lt;br /&gt; Manual - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.&lt;br /&gt;&lt;br /&gt; Automatic - All virtual machines in the scale set are automatically updated at the same time. Possible values include: 'Automatic', 'Manual', 'Rolling'

RollingUpgradePolicy

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

Methods

Validate()

Validate the object.

Applies to