Dela via


UpgradePolicy Constructors

Definition

Overloads

UpgradePolicy()

Initializes a new instance of the UpgradePolicy class.

UpgradePolicy(Nullable<UpgradeMode>, RollingUpgradePolicy, AutomaticOSUpgradePolicy)

Initializes a new instance of the UpgradePolicy class.

UpgradePolicy()

Initializes a new instance of the UpgradePolicy class.

public UpgradePolicy ();
Public Sub New ()

Applies to

UpgradePolicy(Nullable<UpgradeMode>, RollingUpgradePolicy, AutomaticOSUpgradePolicy)

Initializes a new instance of the UpgradePolicy class.

public UpgradePolicy (Microsoft.Azure.Management.Compute.Models.UpgradeMode? mode = default, Microsoft.Azure.Management.Compute.Models.RollingUpgradePolicy rollingUpgradePolicy = default, Microsoft.Azure.Management.Compute.Models.AutomaticOSUpgradePolicy automaticOSUpgradePolicy = default);
new Microsoft.Azure.Management.Compute.Models.UpgradePolicy : Nullable<Microsoft.Azure.Management.Compute.Models.UpgradeMode> * Microsoft.Azure.Management.Compute.Models.RollingUpgradePolicy * Microsoft.Azure.Management.Compute.Models.AutomaticOSUpgradePolicy -> Microsoft.Azure.Management.Compute.Models.UpgradePolicy
Public Sub New (Optional mode As Nullable(Of UpgradeMode) = Nothing, Optional rollingUpgradePolicy As RollingUpgradePolicy = Nothing, Optional automaticOSUpgradePolicy As AutomaticOSUpgradePolicy = Nothing)

Parameters

mode
Nullable<UpgradeMode>

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. Possible values include: 'Automatic', 'Manual', 'Rolling'

rollingUpgradePolicy
RollingUpgradePolicy

The configuration parameters used while performing a rolling upgrade.

automaticOSUpgradePolicy
AutomaticOSUpgradePolicy

Configuration parameters used for performing automatic OS Upgrade.

Applies to