UpgradePolicy Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
UpgradePolicy() |
Initializes a new instance of the UpgradePolicy class. |
UpgradePolicy(UpgradeMode, AutomaticOSUpgradePolicy, RollingUpgradePolicy) |
Initializes a new instance of the UpgradePolicy class. |
UpgradePolicy()
- Source:
- UpgradePolicy.cs
Initializes a new instance of the UpgradePolicy class.
public UpgradePolicy ();
Public Sub New ()
Applies to
UpgradePolicy(UpgradeMode, AutomaticOSUpgradePolicy, RollingUpgradePolicy)
- Source:
- UpgradePolicy.cs
Initializes a new instance of the UpgradePolicy class.
public UpgradePolicy (Microsoft.Azure.Batch.Protocol.Models.UpgradeMode mode, Microsoft.Azure.Batch.Protocol.Models.AutomaticOSUpgradePolicy automaticOSUpgradePolicy = default, Microsoft.Azure.Batch.Protocol.Models.RollingUpgradePolicy rollingUpgradePolicy = default);
new Microsoft.Azure.Batch.Protocol.Models.UpgradePolicy : Microsoft.Azure.Batch.Protocol.Models.UpgradeMode * Microsoft.Azure.Batch.Protocol.Models.AutomaticOSUpgradePolicy * Microsoft.Azure.Batch.Protocol.Models.RollingUpgradePolicy -> Microsoft.Azure.Batch.Protocol.Models.UpgradePolicy
Public Sub New (mode As UpgradeMode, Optional automaticOSUpgradePolicy As AutomaticOSUpgradePolicy = Nothing, Optional rollingUpgradePolicy As RollingUpgradePolicy = Nothing)
Parameters
- mode
- 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.<br /><br /> Rolling - Scale set performs updates in batches with an optional pause time in between.
- automaticOSUpgradePolicy
- AutomaticOSUpgradePolicy
Configuration parameters used for performing automatic OS Upgrade.
- rollingUpgradePolicy
- RollingUpgradePolicy
The configuration parameters used while performing a rolling upgrade.
Applies to
Azure SDK for .NET