You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -20,15 +20,6 @@ Using Azure Spot Virtual Machines on scale sets allows you to take advantage of
20
20
21
21
The amount of available capacity can vary based on size, region, time of day, and more. When deploying Azure Spot Virtual Machine instances on scale sets, Azure will allocate the instance only if there is capacity available, but there is no SLA for these instances. An Azure Spot Virtual machine scale set is deployed in a single fault domain and offers no high availability guarantees.
22
22
23
-
24
-
## Pricing
25
-
26
-
Pricing for Azure Spot Virtual Machine instances is variable, based on region and SKU. For more information, see pricing for [Linux](https://azure.microsoft.com/pricing/details/virtual-machine-scale-sets/linux/) and [Windows](https://azure.microsoft.com/pricing/details/virtual-machine-scale-sets/windows/).
27
-
28
-
29
-
With variable pricing, you have option to set a max price, in US dollars (USD), using up to five decimal places. For example, the value `0.98765`would be a max price of $0.98765 USD per hour. If you set the max price to be `-1`, the instance won't be evicted based on price. The price for the instance will be the current price for Azure Spot Virtual Machine or the price for a standard instance, which ever is less, as long as there is capacity and quota available.
30
-
31
-
32
23
## Limitations
33
24
34
25
The following sizes are not supported for Azure Spot Virtual Machines:
@@ -37,15 +28,22 @@ The following sizes are not supported for Azure Spot Virtual Machines:
37
28
38
29
Azure Spot Virtual Machine can be deployed to any region, except Microsoft Azure China 21Vianet.
39
30
40
-
<aname="channel"></a>
41
-
42
31
The following [offer types](https://azure.microsoft.com/support/legal/offer-details/) are currently supported:
43
32
44
33
- Enterprise Agreement
45
34
- Pay-as-you-go offer code (003P)
46
35
- Sponsored (0036P and 0136P)
47
36
- For Cloud Service Provider (CSP), see the [Partner Center](/partner-center/azure-plan-get-started) or contact your partner directly.
48
37
38
+
## Pricing
39
+
40
+
Pricing for Azure Spot Virtual Machine instances is variable, based on region and SKU. For more information, see pricing for [Linux](https://azure.microsoft.com/pricing/details/virtual-machine-scale-sets/linux/) and [Windows](https://azure.microsoft.com/pricing/details/virtual-machine-scale-sets/windows/).
41
+
42
+
43
+
With variable pricing, you have option to set a max price, in US dollars (USD), using up to five decimal places. For example, the value `0.98765`would be a max price of $0.98765 USD per hour. If you set the max price to be `-1`, the instance won't be evicted based on price. The price for the instance will be the current price for Azure Spot Virtual Machine or the price for a standard instance, which ever is less, as long as there is capacity and quota available.
44
+
45
+
46
+
49
47
## Eviction policy
50
48
51
49
When creating a scale set using Azure Spot Virtual Machines, you can set the eviction policy to *Deallocate* (default) or *Delete*.
@@ -56,15 +54,20 @@ If you would like your instances to be deleted when they are evicted, you can se
56
54
57
55
Users can opt in to receive in-VM notifications through [Azure Scheduled Events](../virtual-machines/linux/scheduled-events.md). This will notify you if your VMs are being evicted and you will have 30 seconds to finish any jobs and perform shutdown tasks prior to the eviction.
58
56
59
-
<aname="bkmk_try"></a>
60
-
## Try & restore (preview)
57
+
## Eviction history
58
+
You can see historical pricing and eviction rates per size in a region in the portal. Select **View pricing history and compare prices in nearby regions** to see a table or graph of pricing for a specific size. The pricing and eviction rates in the following images are only examples.
61
59
62
-
This new platform-level feature will use AI to automatically try to restore evicted Azure Spot Virtual Machine instances inside a scale set to maintain the target instance count.
60
+
**Chart**:
63
61
64
-
> [!IMPORTANT]
65
-
> Try & restore is currently in public preview.
66
-
> This preview version is provided without a service level agreement, and it's not recommended for production workloads. Certain features might not be supported or might have constrained capabilities.
67
-
> For more information, see [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
62
+
:::image type="content" source="../virtual-machines/media/spot-chart.png" alt-text="Screenshot of the region options with the difference in pricing and eviction rates as a chart.":::
63
+
64
+
**Table**:
65
+
66
+
:::image type="content" source="../virtual-machines/media/spot-table.png" alt-text="Screenshot of the region options with the difference in pricing and eviction rates as a table.":::
67
+
68
+
## Try & restore
69
+
70
+
This platform-level feature will use AI to automatically try to restore evicted Azure Spot Virtual Machine instances inside a scale set to maintain the target instance count.
68
71
69
72
Try & restore benefits:
70
73
- Attempts to restore Azure Spot Virtual Machines evicted due to capacity.
@@ -74,49 +77,6 @@ Try & restore benefits:
74
77
75
78
Try & restore is disabled in scale sets that use [Autoscale](virtual-machine-scale-sets-autoscale-overview.md). The number of VMs in the scale set is driven by the autoscale rules.
76
79
77
-
### Register for try & restore
78
-
79
-
Before you can use the try & restore feature, you must register your subscription for the preview. The registration may take several minutes to complete. You can use the Azure CLI or PowerShell to complete the feature registration.
80
-
81
-
82
-
**Use CLI**
83
-
84
-
Use [az feature register](/cli/azure/feature#az_feature_register) to enable the preview for your subscription.
85
-
86
-
```azurecli-interactive
87
-
az feature register --namespace Microsoft.Compute --name SpotTryRestore
88
-
```
89
-
90
-
Feature registration can take up to 15 minutes. To check the registration status:
91
-
92
-
```azurecli-interactive
93
-
az feature show --namespace Microsoft.Compute --name SpotTryRestore
94
-
```
95
-
96
-
Once the feature has been registered for your subscription, complete the opt-in process by propagating the change into the Compute resource provider.
97
-
98
-
```azurecli-interactive
99
-
az provider register --namespace Microsoft.Compute
100
-
```
101
-
**Use PowerShell**
102
-
103
-
Use the [Register-AzProviderFeature](/powershell/module/az.resources/register-azproviderfeature) cmdlet to enable the preview for your subscription.
@@ -135,8 +95,8 @@ To deploy Azure Spot Virtual Machines on scale sets, you can set the new *Priori
135
95
136
96
## Portal
137
97
138
-
The process to create a scale set that uses Azure Spot Virtual Machines is the same as detailed in the [getting started article](quick-create-portal.md). When you are deploying a scale set, you can choose to set the Spot flag, and the eviction policy:
139
-

98
+
The process to create a scale set that uses Azure Spot Virtual Machines is the same as detailed in the [getting started article](quick-create-portal.md). When you are deploying a scale set, you can choose to set the Spot flag, eviction type, eviction policy and if you want to enable try to restore instances:
99
+

@@ -177,7 +143,7 @@ The process to create a scale set that uses Azure Spot Virtual Machines is the s
177
143
178
144
For Azure Spot Virtual Machine template deployments, use`"apiVersion": "2019-03-01"` or later.
179
145
180
-
Add the `priority`, `evictionPolicy`and `billingProfile` properties to the `"virtualMachineProfile":`section and the `"singlePlacementGroup": false,` property to the `"Microsoft.Compute/virtualMachineScaleSets"` section in your template:
146
+
Add the `priority`, `evictionPolicy`, `billingProfile`and `spotRestoryPolicy` properties to the `"virtualMachineProfile":`section and the `"singlePlacementGroup": false,` property to the `"Microsoft.Compute/virtualMachineScaleSets"` section in your template:
181
147
182
148
```json
183
149
@@ -193,7 +159,11 @@ Add the `priority`, `evictionPolicy` and `billingProfile` properties to the `"vi
Copy file name to clipboardExpand all lines: articles/virtual-machines/error-codes-spot.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,9 @@ Here are some possible error codes you could receive when using Azure Spot Virtu
35
35
| MoveResourcesWithAzureSpotVMNotSupported | The Move resources request contains an Azure Spot Virtual Machine. Not supported. Check the error details for virtual machine Ids. | You cannot move Azure Spot Virtual Machines. |
36
36
| MoveResourcesWithAzureSpotVmssNotSupported | The Move resources request contains an Azure Spot virtual machine scale set. Not supported. Check the error details for virtual machine scale set Ids. | You cannot move Azure Spot virtual machine scale set instances. |
37
37
| AzureSpotVMNotSupportedInVmssWithVMOrchestrationMode | Azure Spot Virtual Machine is not supported in Virtual machine scale set with VM Orchestration mode. | Set the orchestration mode to virtual machine scale set in order to use Azure Spot Virtual Machine instances. |
38
+
| SpotRestorationIsNotSupportedForThisAPIVersion | Spot restoration feature is not supported for this API version. | For an existing scaleset, perform a PATCH using using API version 2021-07-01 or later. <br><br> For new scale set deployments, add the following property to the Azure Resource Manager template using API version 2021-07-01 or later: <br><br> :::image type="content" source="media/spot/spot-try-restore-error-codes-1.png" alt-text="Error code sample to use the correct API version.":::|
39
+
| SpotRestorationIsSupportedOnlyForAzureSpotScaleSets | Spot restoration feature is supported only for Azure Spot Virtual Machine scale sets. | Spot restoration feature is only supported for Azure Spot Virtual Machine scale sets. To use this feature, deploy Azure Spot using Virtual Machine scale sets. |
38
40
39
41
40
42
**Next steps**
41
-
For more information, see [spot Virtual Machines](./spot-vms.md).
43
+
For more information, see [spot Virtual Machines](./spot-vms.md).
0 commit comments