Class UpgradePolicy
Describes an upgrade policy - automatic, manual, or rolling.
Namespace: System.Dynamic.ExpandoObject
Assembly: Microsoft.Azure.Management.Compute.dll
Syntax
public class UpgradePolicy
Constructors
UpgradePolicy()
Initializes a new instance of the UpgradePolicy class.
Declaration
public UpgradePolicy ();
UpgradePolicy(Nullable<UpgradeMode>, RollingUpgradePolicy, AutomaticOSUpgradePolicy)
Initializes a new instance of the UpgradePolicy class.
Declaration
public UpgradePolicy (Nullable<Microsoft.Azure.Management.Compute.Models.UpgradeMode> mode = null, Microsoft.Azure.Management.Compute.Models.RollingUpgradePolicy rollingUpgradePolicy = null, Microsoft.Azure.Management.Compute.Models.AutomaticOSUpgradePolicy automaticOSUpgradePolicy = null);
Parameters
|
Nullable<UpgradeMode>
mode
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. |
Properties
AutomaticOSUpgradePolicy
Gets or sets configuration parameters used for performing automatic OS Upgrade.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="automaticOSUpgradePolicy")]
public Microsoft.Azure.Management.Compute.Models.AutomaticOSUpgradePolicy AutomaticOSUpgradePolicy { get; set; }
Property Value
|
AutomaticOSUpgradePolicy
|
Mode
Gets or sets 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'
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="mode")]
public Nullable<Microsoft.Azure.Management.Compute.Models.UpgradeMode> Mode { get; set; }
Property Value
|
Nullable<UpgradeMode>
|
RollingUpgradePolicy
Gets or sets the configuration parameters used while performing a rolling upgrade.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="rollingUpgradePolicy")]
public Microsoft.Azure.Management.Compute.Models.RollingUpgradePolicy RollingUpgradePolicy { get; set; }
Property Value
|
RollingUpgradePolicy
|
Methods
Validate()
Validate the object.
Declaration
public virtual void Validate ();
Exceptions
|
ValidationException
Thrown if validation fails |