SpotRestorePolicy Class
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.
Specifies the Spot-Try-Restore properties for the virtual machine scale set. With this property customer can enable or disable automatic restore of the evicted Spot VMSS VM instances opportunistically based on capacity availability and pricing constraint.
public class SpotRestorePolicy : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Compute.Models.SpotRestorePolicy>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Compute.Models.SpotRestorePolicy>
type SpotRestorePolicy = class
interface IJsonModel<SpotRestorePolicy>
interface IPersistableModel<SpotRestorePolicy>
Public Class SpotRestorePolicy
Implements IJsonModel(Of SpotRestorePolicy), IPersistableModel(Of SpotRestorePolicy)
- Inheritance
-
SpotRestorePolicy
- Implements
Constructors
SpotRestorePolicy() |
Initializes a new instance of SpotRestorePolicy. |
Properties
Enabled |
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 |
Timeout value expressed as an ISO 8601 time duration after which the platform will not try to restore the VMSS SPOT instances. |
Methods
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) |
Explicit Interface Implementations
IJsonModel<SpotRestorePolicy>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJsonModel<SpotRestorePolicy>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
IPersistableModel<SpotRestorePolicy>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
IPersistableModel<SpotRestorePolicy>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistableModel<SpotRestorePolicy>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |
Applies to
Azure SDK for .NET