Class AutomaticRepairsPolicy
java.lang.Object
com.microsoft.azure.management.compute.AutomaticRepairsPolicy
Specifies the configuration parameters for automatic repairs on the virtual
machine scale set.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionenabled()
Get specifies whether automatic repairs should be enabled on the virtual machine scale set.Get the amount of time for which automatic repairs are suspended due to a state change on VM.withEnabled
(Boolean enabled) Set specifies whether automatic repairs should be enabled on the virtual machine scale set.withGracePeriod
(String gracePeriod) Set the amount of time for which automatic repairs are suspended due to a state change on VM.
-
Constructor Details
-
AutomaticRepairsPolicy
public AutomaticRepairsPolicy()
-
-
Method Details
-
enabled
Get specifies whether automatic repairs should be enabled on the virtual machine scale set. The default value is false.- Returns:
- the enabled value
-
withEnabled
Set specifies whether automatic repairs should be enabled on the virtual machine scale set. The default value is false.- Parameters:
enabled
- the enabled value to set- Returns:
- the AutomaticRepairsPolicy object itself.
-
gracePeriod
Get 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 30 minutes (PT30M), which is also the default value. The maximum allowed grace period is 90 minutes (PT90M).- Returns:
- the gracePeriod value
-
withGracePeriod
Set 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 30 minutes (PT30M), which is also the default value. The maximum allowed grace period is 90 minutes (PT90M).- Parameters:
gracePeriod
- the gracePeriod value to set- Returns:
- the AutomaticRepairsPolicy object itself.
-