AutomaticRepairsPolicy 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
AutomaticRepairsPolicy() |
Initializes a new instance of the AutomaticRepairsPolicy class. |
AutomaticRepairsPolicy(Nullable<Boolean>, String, String) |
Initializes a new instance of the AutomaticRepairsPolicy class. |
AutomaticRepairsPolicy()
Initializes a new instance of the AutomaticRepairsPolicy class.
public AutomaticRepairsPolicy ();
Public Sub New ()
Applies to
AutomaticRepairsPolicy(Nullable<Boolean>, String, String)
Initializes a new instance of the AutomaticRepairsPolicy class.
public AutomaticRepairsPolicy (bool? enabled = default, string gracePeriod = default, string repairAction = default);
new Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy : Nullable<bool> * string * string -> Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy
Public Sub New (Optional enabled As Nullable(Of Boolean) = Nothing, Optional gracePeriod As String = Nothing, Optional repairAction As String = Nothing)
Parameters
Specifies whether automatic repairs should be enabled on the virtual machine scale set. The default value is false.
- gracePeriod
- String
The amount of time for which automatic repairs are suspended due to a state change on VM. The grace time starts after the state change has completed. This helps avoid premature or accidental repairs. The time duration should be specified in ISO 8601 format. The minimum allowed grace period is 10 minutes (PT10M), which is also the default value. The maximum allowed grace period is 90 minutes (PT90M).
- repairAction
- String
Type of repair action (replace, restart, reimage) that will be used for repairing unhealthy virtual machines in the scale set. Default value is replace. Possible values include: 'Replace', 'Restart', 'Reimage'
Applies to
Azure SDK for .NET