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
Copy file name to clipboardExpand all lines: articles/virtual-machines/spot-vms.md
+16-14Lines changed: 16 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ ms.service: virtual-machines
7
7
ms.subservice: spot
8
8
ms.workload: infrastructure-services
9
9
ms.topic: how-to
10
-
ms.date: 10/05/2020
10
+
ms.date: 8/30/2022
11
11
ms.reviewer: cynthn
12
12
---
13
13
@@ -18,35 +18,37 @@ ms.reviewer: cynthn
18
18
19
19
Using Azure Spot Virtual Machines allows you to take advantage of our unused capacity at a significant cost savings. At any point in time when Azure needs the capacity back, the Azure infrastructure will evict Azure Spot Virtual Machines. Therefore, Azure Spot Virtual Machines are great for workloads that can handle interruptions like batch processing jobs, dev/test environments, large compute workloads, and more.
20
20
21
-
The amount of available capacity can vary based on size, region, time of day, and more. When deploying Azure Spot Virtual Machines, Azure will allocate the VMs if there is capacity available, but there is no SLA for these VMs. An Azure Spot Virtual Machine offers no high availability guarantees. At any point in time when Azure needs the capacity back, the Azure infrastructure will evict Azure Spot Virtual Machines with 30seconds notice.
21
+
The amount of available capacity can vary based on size, region, time of day, and more. When deploying Azure Spot Virtual Machines, Azure will allocate the VMs if there's capacity available, but there's no SLA for these VMs. An Azure Spot Virtual Machine offers no high availability guarantees. At any point in time when Azure needs the capacity back, the Azure infrastructure will evict Azure Spot Virtual Machines with 30-seconds notice.
22
22
23
23
24
24
## Eviction policy
25
25
26
26
VMs can be evicted based on capacity or the max price you set. When creating an Azure Spot Virtual Machine, you can set the eviction policy to *Deallocate* (default) or *Delete*.
27
27
28
-
The *Deallocate* policy moves your VM to the stopped-deallocated state, allowing you to redeploy it later. However, there is no guarantee that the allocation will succeed. The deallocated VMs will count against your quota and you will be charged storage costs for the underlying disks.
28
+
The *Deallocate* policy moves your VM to the stopped-deallocated state, allowing you to redeploy it later. However, there's no guarantee that the allocation will succeed. The deallocated VMs will count against your quota and you'll be charged storage costs for the underlying disks.
29
29
30
-
If you would like your VM to be deleted when it is evicted, you can set the eviction policy to *delete*. The evicted VMs are deleted together with their underlying disks, so you will not continue to be charged for the storage.
30
+
If you would like your VM to be deleted when it's evicted, you can set the eviction policy to *delete*. The evicted VMs are deleted together with their underlying disks, so you'll not continue to be charged for the storage.
31
31
32
-
You can opt in to receive in-VM notifications through [Azure Scheduled Events](./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.
32
+
You can opt in to receive in-VM notifications through [Azure Scheduled Events](./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.
33
33
34
34
35
35
| Option | Outcome |
36
36
|--------|---------|
37
37
| Max price is set to >= the current price. | VM is deployed if capacity and quota are available. |
38
-
| Max price is set to < the current price. | The VM is not deployed. You will get an error message that the max price needs to be >= current price. |
39
-
| Restarting a stopped/deallocated VM if the max price is >= the current price | If there is capacity and quota, then the VM is deployed. |
40
-
| Restarting a stopped/deallocated VM if the max price is < the current price | You will get an error message that the max price needs to be >= current price. |
38
+
| Max price is set to < the current price. | The VM isn't deployed. You'll get an error message that the max price needs to be >= current price. |
39
+
| Restarting a stopped/deallocated VM if the max price is >= the current price | If there's capacity and quota, then the VM is deployed. |
40
+
| Restarting a stopped/deallocated VM if the max price is < the current price | You'll get an error message that the max price needs to be >= current price. |
41
41
| Price for the VM has gone up and is now > the max price. | The VM gets evicted. You get a 30s notification before actual eviction. |
42
-
| After eviction the price for the VM goes back to being < the max price. | The VM will not be automatically re-started. You can restart the VM yourself, and it will be charged at the current price. |
43
-
| If the max price is set to `-1`| The VM will not be evicted for pricing reasons. The max price will be the current price, up to the price for standard VMs. You will never be charged above the standard price.|
42
+
| After eviction, the price for the VM goes back to being < the max price. | The VM won't be automatically restarted. You can restart the VM yourself, and it will be charged at the current price. |
43
+
| If the max price is set to `-1`| The VM won't be evicted for pricing reasons. The max price will be the current price, up to the price for standard VMs. You'll never be charged above the standard price.|
44
44
| Changing the max price | You need to deallocate the VM to change the max price. Deallocate the VM, set a new max price, then update the VM. |
45
45
46
+
> [!TIP]
47
+
> Check out our [Azure Virtual Machine Spot Eviction](/azure/architecture/guide/spot/spot-eviction) guide to learn how to create a reliable interruptible workload in Azure.
46
48
47
49
## Limitations
48
50
49
-
The following VM sizes are not supported for Azure Spot Virtual Machines:
51
+
The following VM sizes aren't supported for Azure Spot Virtual Machines:
50
52
- B-series
51
53
- Promo versions of any size (like Dv2, NV, NC, H promo sizes)
52
54
@@ -68,7 +70,7 @@ Pricing for Azure Spot Virtual Machines is variable, based on region and SKU. Fo
68
70
69
71
You can also query pricing information using the [Azure retail prices API](/rest/api/cost-management/retail-prices/azure-retail-prices) to query for information about Spot pricing. The `meterName` and `skuName` will both contain `Spot`.
70
72
71
-
With variable pricing, you have option to set a max price, in US dollars (USD), using up to 5 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 VM won't be evicted based on price. The price for the VM will be the current price for spot or the price for a standard VM, which ever is less, as long as there is capacity and quota available.
73
+
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 VM won't be evicted based on price. The price for the VM will be the current price for spot or the price for a standard VM, which ever is less, as long as there's capacity and quota available.
72
74
73
75
## Pricing and eviction history
74
76
@@ -125,7 +127,7 @@ Alternatively, try out the [ARG REST API](/rest/api/azure-resourcegraph/) to get
125
127
126
128
**Q:** Once created, is an Azure Spot Virtual Machine the same as regular standard VM?
127
129
128
-
**A:** Yes, except there is no SLA for Azure Spot Virtual Machines and they can be evicted at any time.
130
+
**A:** Yes, except there's no SLA for Azure Spot Virtual Machines and they can be evicted at any time.
129
131
130
132
131
133
**Q:** What to do when you get evicted, but still need capacity?
@@ -140,7 +142,7 @@ Alternatively, try out the [ARG REST API](/rest/api/azure-resourcegraph/) to get
140
142
141
143
**Q:** Can I request for additional quota for Azure Spot Virtual Machines?
142
144
143
-
**A:** Yes, you will be able to submit the request to increase your quota for Azure Spot Virtual Machines through the [standard quota request process](../azure-portal/supportability/per-vm-quota-requests.md).
145
+
**A:** Yes, you'll be able to submit the request to increase your quota for Azure Spot Virtual Machines through the [standard quota request process](../azure-portal/supportability/per-vm-quota-requests.md).
0 commit comments