你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
SpotRestorePolicy Class
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.
- Inheritance
-
azure.mgmt.compute._serialization.ModelSpotRestorePolicy
Constructor
SpotRestorePolicy(*, enabled: bool | None = None, restore_timeout: str | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
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. |
restore_timeout
|
Timeout value expressed as an ISO 8601 time duration after which the platform will not try to restore the VMSS SPOT instances. |
Variables
Name | Description |
---|---|
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. |
restore_timeout
|
Timeout value expressed as an ISO 8601 time duration after which the platform will not try to restore the VMSS SPOT instances. |