Share via


UpgradePolicy Constructors

Definition

Overloads

UpgradePolicy()

Default constructor to support mocking the UpgradePolicy class.

UpgradePolicy(UpgradeMode)

Initializes a new instance of the UpgradePolicy class.

UpgradePolicy()

Source:
UpgradePolicy.cs

Default constructor to support mocking the UpgradePolicy class.

protected UpgradePolicy ();
Protected Sub New ()

Applies to

UpgradePolicy(UpgradeMode)

Source:
UpgradePolicy.cs

Initializes a new instance of the UpgradePolicy class.

public UpgradePolicy (Microsoft.Azure.Batch.Common.UpgradeMode mode);
new Microsoft.Azure.Batch.UpgradePolicy : Microsoft.Azure.Batch.Common.UpgradeMode -> Microsoft.Azure.Batch.UpgradePolicy
Public Sub New (mode As UpgradeMode)

Parameters

mode
UpgradeMode

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.

Applies to