Skip to content

Commit ffb6341

Browse files
authored
Merge pull request #209723 from ju-shim/spot-evict-toc
Adding links to Spot Eviction guide in VM space
2 parents b81f27f + c37ef49 commit ffb6341

File tree

2 files changed

+20
-14
lines changed

2 files changed

+20
-14
lines changed

articles/virtual-machines/TOC.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,10 @@
677677
- name: Error codes
678678
displayName: pre-empt, preempt, spot, low priority, low-priority
679679
href: error-codes-spot.md
680+
- name: Handle Spot Evictions
681+
displayName: pre-empt, preempt, spot, low priority, low-priority
682+
href: /azure/architecture/guide/spot/spot-eviction
683+
maintainContext: true
680684
- name: Azure Hybrid Benefit
681685
items:
682686
- name: Linux

articles/virtual-machines/spot-vms.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.service: virtual-machines
77
ms.subservice: spot
88
ms.workload: infrastructure-services
99
ms.topic: how-to
10-
ms.date: 10/05/2020
10+
ms.date: 8/30/2022
1111
ms.reviewer: cynthn
1212
---
1313

@@ -18,35 +18,37 @@ ms.reviewer: cynthn
1818

1919
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.
2020

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 30 seconds 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.
2222

2323

2424
## Eviction policy
2525

2626
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*.
2727

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.
2929

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.
3131

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.
3333

3434

3535
| Option | Outcome |
3636
|--------|---------|
3737
| 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. |
4141
| 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.|
4444
| 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. |
4545

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.
4648
4749
## Limitations
4850

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:
5052
- B-series
5153
- Promo versions of any size (like Dv2, NV, NC, H promo sizes)
5254

@@ -68,7 +70,7 @@ Pricing for Azure Spot Virtual Machines is variable, based on region and SKU. Fo
6870

6971
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`.
7072

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.
7274

7375
## Pricing and eviction history
7476

@@ -125,7 +127,7 @@ Alternatively, try out the [ARG REST API](/rest/api/azure-resourcegraph/) to get
125127

126128
**Q:** Once created, is an Azure Spot Virtual Machine the same as regular standard VM?
127129

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.
129131

130132

131133
**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
140142

141143
**Q:** Can I request for additional quota for Azure Spot Virtual Machines?
142144

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).
144146

145147

146148
**Q:** Where can I post questions?

0 commit comments

Comments
 (0)