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-machine-scale-sets/use-spot.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
---
2
2
title: Create a scale set that uses Azure Spot Virtual Machines
3
3
description: Learn how to create Azure virtual machine scale sets that use Azure Spot Virtual Machines to save on costs.
4
-
author: mimckitt
5
-
ms.author: mimckitt
4
+
author: ju-shim
5
+
ms.author: jushiman
6
6
ms.topic: how-to
7
7
ms.service: virtual-machine-scale-sets
8
8
ms.subservice: spot
@@ -71,7 +71,7 @@ Try & restore benefits:
71
71
- Attempts to restore Azure Spot Virtual Machines evicted due to capacity.
72
72
- Restored Azure Spot Virtual Machines are expected to run for a longer duration with a lower probability of a capacity triggered eviction.
73
73
- Improves the lifespan of an Azure Spot Virtual Machine, so workloads run for a longer duration.
74
-
- Helps Virtual Machine Scale Sets to maintain the target count for Azure Spot Virtual Machines, similar to maintain target count feature that already exist for Pay-As-You-Go VMs.
74
+
- Helps Virtual Machine Scale Sets to maintain the target count for Azure Spot Virtual Machines, similar to maintain target count feature that already exists for Pay-As-You-Go VMs.
75
75
76
76
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.
77
77
@@ -93,7 +93,7 @@ To deploy Azure Spot Virtual Machines on scale sets, you can set the new *Priori
93
93
94
94
## Portal
95
95
96
-
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:
96
+
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 try to restore instances:
97
97

Copy file name to clipboardExpand all lines: articles/virtual-machines/linux/spot-template.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
---
2
-
title: Use a template to deploy Azure Azure Spot Virtual Machines
2
+
title: Use a template to deploy Azure Spot Virtual Machines
3
3
description: Learn how to use a template to deploy Azure Spot Virtual Machines to save costs.
4
-
author: cynthn
4
+
author: ju-shim
5
5
ms.service: virtual-machines
6
6
ms.subservice: spot
7
7
ms.workload: infrastructure-services
8
8
ms.topic: how-to
9
9
ms.date: 03/25/2020
10
-
ms.author: cynthn
11
-
ms.reviewer: jagaveer
10
+
ms.author: jushiman
11
+
ms.reviewer: cynthn
12
12
---
13
13
14
14
# Deploy Azure Spot Virtual Machines using a Resource Manager template
@@ -19,7 +19,7 @@ Using [Azure Spot Virtual Machines](../spot-vms.md) allows you to take advantage
19
19
20
20
Pricing for Azure Spot Virtual Machines is variable, based on region and SKU. For more information, see VM pricing for [Linux](https://azure.microsoft.com/pricing/details/virtual-machines/linux/) and [Windows](https://azure.microsoft.com/pricing/details/virtual-machines/windows/).
21
21
22
-
You have option to set a max price you are willing to pay, per hour, for the VM. The max price for a Azure Spot Virtual Machine can be set 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 Azure Spot Virtual Machines or the price for a standard VM, which ever is less, as long as there is capacity and quota available. For more information about setting the max price, see [Azure Spot Virtual Machines - Pricing](../spot-vms.md#pricing).
22
+
You have option to set a max price you are willing to pay, per hour, for the VM. The max price for an Azure Spot Virtual Machine can be set 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 Azure Spot Virtual Machines or the price for a standard VM, which ever is less, as long as there is capacity and quota available. For more information about setting the max price, see [Azure Spot Virtual Machines - Pricing](../spot-vms.md#pricing).
Here is a sample template with the added properties for a Azure Spot Virtual Machine. Replace the resource names with your own and `<password>` with a password for the local administrator account on the VM.
37
+
Here is a sample template with the added properties for an Azure Spot Virtual Machine. Replace the resource names with your own and `<password>` with a password for the local administrator account on the VM.
38
38
39
39
```json
40
40
{
@@ -173,7 +173,7 @@ Here is a sample template with the added properties for a Azure Spot Virtual Mac
173
173
174
174
## Simulate an eviction
175
175
176
-
You can [simulate an eviction](/rest/api/compute/virtualmachines/simulateeviction) of a Azure Spot Virtual Machine, to testing how well your application will repond to a sudden eviction.
176
+
You can [simulate an eviction](/rest/api/compute/virtualmachines/simulateeviction) of an Azure Spot Virtual Machine, to testing how well your application will repond to a sudden eviction.
177
177
178
178
Replace the following with your information:
179
179
@@ -188,7 +188,7 @@ POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/
188
188
189
189
## Next steps
190
190
191
-
You can also create a Azure Spot Virtual Machine using [Azure PowerShell](../windows/spot-powershell.md) or the [Azure CLI](spot-cli.md).
191
+
You can also create an Azure Spot Virtual Machine using [Azure PowerShell](../windows/spot-powershell.md) or the [Azure CLI](spot-cli.md).
192
192
193
193
Query current pricing information using the [Azure retail prices API](/rest/api/cost-management/retail-prices/azure-retail-prices) for information about Azure Spot Virtual Machine pricing. The `meterName` and `skuName` will both contain `Spot`.
Copy file name to clipboardExpand all lines: articles/virtual-machines/spot-portal.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
---
2
2
title: Use the portal to deploy Azure Spot Virtual Machines
3
3
description: How to use the Portal to deploy Spot Virtual Machines
4
-
author: cynthn
4
+
author: ju-shim
5
5
ms.service: virtual-machines
6
6
ms.subservice: spot
7
7
ms.workload: infrastructure-services
8
8
ms.topic: how-to
9
9
ms.date: 09/14/2020
10
-
ms.author: cynthn
11
-
ms.reviewer: jagaveer
10
+
ms.author: jushiman
11
+
ms.reviewer: cynthn
12
12
---
13
13
14
14
# Deploy Azure Spot Virtual Machines using the Azure portal
@@ -19,7 +19,7 @@ Using [Azure Spot Virtual Machines](spot-vms.md) allows you to take advantage of
19
19
20
20
Pricing for Azure Spot Virtual Machines is variable, based on region and SKU. For more information, see VM pricing for [Linux](https://azure.microsoft.com/pricing/details/virtual-machines/linux/) and [Windows](https://azure.microsoft.com/pricing/details/virtual-machines/windows/). For more information about setting the max price, see [Azure Spot Virtual Machines - Pricing](spot-vms.md#pricing).
21
21
22
-
You have option to set a max price you are willing to pay, per hour, for the VM. The max price for a Azure Spot Virtual Machine can be set in US dollars (USD), using up to 5 decimal places. For example, the value `0.05701`would be a max price of $0.05701 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.
22
+
You have option to set a max price you are willing to pay, per hour, for the VM. The max price for an Azure Spot Virtual Machine can be set in US dollars (USD), using up to 5 decimal places. For example, the value `0.05701`would be a max price of $0.05701 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.
23
23
24
24
When the VM is evicted, you have the option to either delete the VM and the underlying disk or deallocate the VM so that it can be restarted later.
25
25
@@ -47,7 +47,7 @@ You can change the region by selecting the choice that works the best for you an
47
47
48
48
## Simulate an eviction
49
49
50
-
You can [simulate an eviction](/rest/api/compute/virtualmachines/simulateeviction) of a Azure Spot Virtual Machine, to testing how well your application will respond to a sudden eviction.
50
+
You can [simulate an eviction](/rest/api/compute/virtualmachines/simulateeviction) of an Azure Spot Virtual Machine, to testing how well your application will respond to a sudden eviction.
Copy file name to clipboardExpand all lines: articles/virtual-machines/spot-vms.md
+40-3Lines changed: 40 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
---
2
2
title: Use Azure Spot Virtual Machines
3
3
description: Learn how to use Azure Spot Virtual Machines to save on costs.
4
-
author: JagVeerappan
5
-
ms.author: jagaveer
4
+
author: ju-shim
5
+
ms.author: jushiman
6
6
ms.service: virtual-machines
7
7
ms.subservice: spot
8
8
ms.workload: infrastructure-services
@@ -29,7 +29,7 @@ The *Deallocate* policy moves your VM to the stopped-deallocated state, allowing
29
29
30
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.
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 optin 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 |
@@ -72,6 +72,8 @@ With variable pricing, you have option to set a max price, in US dollars (USD),
72
72
73
73
## Pricing and eviction history
74
74
75
+
### Portal
76
+
75
77
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.
76
78
77
79
**Chart**:
@@ -82,7 +84,42 @@ You can see historical pricing and eviction rates per size in a region in the po
82
84
83
85
:::image type="content" source="./media/spot-table.png" alt-text="Screenshot of the region options with the difference in pricing and eviction rates as a table.":::
84
86
87
+
### Azure Resource Graph
88
+
89
+
You can programmatically access relevant Spot VM SKU data through [Azure Resource Graph](/azure/governance/resource-graph/overview). Get pricing history in the last 90 days and eviction rates for the last 28 trailing days to identify SKUs that better meet your specific needs.
90
+
91
+
Key benefits:
92
+
- Query Spot eviction rates and the last few months of Spot prices programmatically through ARM or the [ARG Explorer in Azure portal](/azure/governance/resource-graph/first-query-portal)
93
+
- Create a custom query to extract the specific data relevant to your scenario with the ability to filter across a variety of parameters, such as SKU and region
94
+
- Easily compare data across multiple regions and SKUs
95
+
- Find a different Spot SKU or region with a lower price and/or eviction rate
96
+
97
+
Try out the following sample queries for Spot pricing history and eviction rates using the [ARG Explorer in Azure portal](/azure/governance/resource-graph/first-query-portal). Spot pricing history and eviction rates data are available in the `SpotResources` table.
98
+
99
+
**Spot pricing history sample query**:
100
+
101
+
```sql
102
+
SpotResources
103
+
| where type =~ 'microsoft.compute/skuspotpricehistory/ostype/location'
0 commit comments