liveBook · Manning

Azure Spot

As explained in Building Web APIs with ASP.NET Core

Azure Spot is an Azure compute pricing option that uses spare capacity at a discount while allowing eviction when Azure needs that capacity.

Azure Spot uses Azure’s unused compute capacity at a significant discount, but Azure can evict the virtual machine when that capacity is needed. section 12.2.2

Use Azure Spot with these practical constraints:

  • Select “Yes” for Run with Azure Spot discount when creating a virtual machine. section 12.2.2
  • Reserve it for short-term testing because eviction can occur at any time. section 12.2.2
  • Choose a standard pay-as-you-go machine for a permanent, production-like VM. section 12.2.2
  • Check availability before selecting a VM size; Azure Spot is unavailable for some series and sizes, including B2ms. section 12.2.2

Testing VM configuration

Create a Windows Server 2022 Datacenter VM for a deployment sample, enable Azure Spot for lower cost, and avoid treating the instance as production infrastructure. section 12.2.2

Figure 12.7 Create a new VM in Azure.
12-07

Review the Azure VM creation screen while locating the Azure Spot setting. section 12.2.2

How Building Web APIs with ASP.NET Core covers it

How deep it goes
Explains configuration, eviction risk, production trade-offs, and size availability without detailing eviction mechanics.
Examples
Uses a Windows Server 2022 VM deployment configured through Azure’s Basics tab.
What it assumes
Assumes familiarity with creating an Azure VM and selecting its subscription, resource group, region, image, and size.
What you can do after
Operate/configure an Azure VM with Azure Spot and choose when its eviction risk is acceptable.
How it connects
Connects Azure Spot with Azure virtual machines, VM sizes, spare capacity, and pay-as-you-go pricing.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Building Web APIs with ASP.NET Core. The section links point to the parts of the book it draws on.