ArmComputeModelFactory.SpotRestorePolicy Method
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.
public static Azure.ResourceManager.Compute.Models.SpotRestorePolicy SpotRestorePolicy(bool? enabled = default, string restoreTimeout = default);
static member SpotRestorePolicy : Nullable<bool> * string -> Azure.ResourceManager.Compute.Models.SpotRestorePolicy
Public Shared Function SpotRestorePolicy (Optional enabled As Nullable(Of Boolean) = Nothing, Optional restoreTimeout As String = Nothing) As SpotRestorePolicy
Parameters
Enables the Spot-Try-Restore feature where evicted VMSS SPOT instances will be tried to be restored opportunistically based on capacity availability and pricing constraints.
- restoreTimeout
- String
Timeout value expressed as an ISO 8601 time duration after which the platform will not try to restore the VMSS SPOT instances.
Returns
A new SpotRestorePolicy instance for mocking.