|
| 1 | +--- |
| 2 | +title: Spot Virtual Machine Size Recommendation for Virtual Machine Scale Sets |
| 3 | +description: Learn how to pick the right VM size when using Azure Spot for Virtual Machine Scale Sets. |
| 4 | +author: ju-shim |
| 5 | +ms.author: jushiman |
| 6 | +ms.service: virtual-machine-scale-sets |
| 7 | +ms.subservice: spot |
| 8 | +ms.workload: infrastructure-services |
| 9 | +ms.topic: how-to |
| 10 | +ms.date: 06/15/2022 |
| 11 | +ms.reviewer: cynthn |
| 12 | +--- |
| 13 | + |
| 14 | +# Spot Virtual Machine size recommendation |
| 15 | + |
| 16 | +**Applies to:** :heavy_check_mark: Flexible scale sets :heavy_check_mark: Uniform scale sets |
| 17 | + |
| 18 | +The Spot VM size recommendations tool is an easy way to view and select alternative VM sizes that are better suited for your stateless, flexible, and fault tolerant workload needs during the Virtual Machine Scale Set deployment process in the Azure portal. This tool allows Azure to recommend appropriate VM sizes to you after you filter by region, price, and eviction rate. You can further filter the recommended VMs list by size, type, generation, and disk (premium or ephemeral OS disk). |
| 19 | + |
| 20 | + |
| 21 | +## Azure portal |
| 22 | + |
| 23 | +You can access Azure's size recommendations through the virtual machine scale sets creation process in the Azure portal. The following steps will instruct you on how to access this tool during that process. |
| 24 | + |
| 25 | +1. Log in to the [Azure portal](https://portal.azure.com). |
| 26 | +1. In the search bar, search for and select **Virtual machine scale sets**. |
| 27 | +1. Select **Create** on the **Virtual machine scale sets** page. |
| 28 | +1. In the **Basics** tab, fill out the required fields. |
| 29 | +1. Under **Instance details**, select **Run with Azure Spot discount**. |
| 30 | + |
| 31 | + :::image type="content" source="./media/spot-vm-size-recommendation/run-with-azure-spot-discount.png" alt-text="Screenshot of a selected checkbox next to the Run with Azure Spot discount option."::: |
| 32 | + |
| 33 | +1. In the same section, under **Azure Spot configuration**, select **Configure**. |
| 34 | +1. On the **Azure Spot configuration** page, in the **Spot details** tab, go to the **Size** selector. |
| 35 | +1. Expand the **Size** drop-down and select **See all sizes** option at the bottom of the list. |
| 36 | + |
| 37 | + :::image type="content" source="./media/spot-vm-size-recommendation/spot-details-see-all-sizes.png" alt-text="Screenshot of the See all sizes option in the Size selector"::: |
| 38 | + |
| 39 | +1. On the **Select a VM size** page, click **Add filter**. |
| 40 | +1. You can choose which filters to apply. For this example, we will only apply **Size** and set it to *Medium (7-16)* for the number of vCPU. |
| 41 | + |
| 42 | + :::image type="content" source="./media/spot-vm-size-recommendation/size-filter-medium.png" alt-text="Screenshot of the Medium option selected for the Size filter."::: |
| 43 | + |
| 44 | +1. Click **OK**. |
| 45 | +1. From the resulting list of VMs, select a preferred VM size. |
| 46 | +1. Click **Select** at the bottom to continue. |
| 47 | +1. Back on the **Spot details** tab, click **Next** to go to the next tab. |
| 48 | +1. The **Size recommendations** tab allows you to view and select alternative VM sizes that are better suited for your stateless, flexible, and fault tolerant workload needs with regard to region, pricing, and eviction rates. |
| 49 | + |
| 50 | + :::image type="content" source="./media/spot-vm-size-recommendation/size-recommendations-tab.png" alt-text="Screenshot of the Size recommendations tab with a list of alternative VM sizes."::: |
| 51 | + |
| 52 | +1. Make your selection and click **Save**. |
| 53 | +1. Continue through the virtual machine scale set creation process. |
| 54 | + |
| 55 | + |
| 56 | +## Next steps |
| 57 | + |
| 58 | +> [!div class="nextstepaction"] |
| 59 | +> [Learn more about Spot virtual machines](../virtual-machines/spot-vms.md) |
0 commit comments