ArmComputeModelFactory.SpotRestorePolicy Method

Definition

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

enabled
Nullable<Boolean>

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.

Applies to