On-demand cloud instances: flexible VM use without a long-term commitment
Learn when pay-as-you-go VMs fit, how they differ from discounts, Spot capacity and reservations, and how to estimate the full bill.
What is an on-demand instance?
An on-demand instance is a way to obtain a virtual machine without a long-term usage commitment and pay according to use. It is flexible for short, irregular or uncertain workloads, but costs can accumulate when usage is steady. “On-demand” describes a purchasing and billing model, not a VM architecture or a guarantee that any size is immediately available. Quotas and actual capacity still apply.
Compare the choices
| Model | Useful for | Trade-off |
|---|---|---|
| On-demand or pay-as-you-go | Short tests, variable demand, new services | No or limited commitment discount; ongoing use accumulates cost |
| Usage commitment or reserved discount | Predictable baseline usage | Term or scope commitment may reduce flexibility; a price discount does not itself reserve capacity |
| Spot or preemptible capacity | Retryable batch, rendering or other interruptible work | Provider can reclaim it; design for checkpointing and restart |
On-demand pricing does not guarantee capacity in a chosen zone. A separate capacity reservation may be needed when availability assurance matters. A mixed approach can keep a predictable baseline under a discount and uncertain peaks on-demand.
What affects the bill?
Cost depends on VM size, operating system or license, region, runtime and purchase model. Disks, snapshots, IP addresses, data transfer, load balancers and monitoring can add separate charges. AWS EC2 On-Demand bills running compute by the second with a 60-second minimum. Google Compute Engine describes per-second billing after a one-minute minimum for standard VMs. Azure prices VM size and OS, billing partial hours by the minutes used. These are provider-specific rules, not a universal unit; check current pricing for the exact region and configuration.
Stopping also has provider-specific states. In Azure, a VM that is merely Stopped while still allocated can continue to incur compute charges; Deallocated releases the hardware, though disks or networking may still cost money. AWS stops instance compute billing when an instance is stopped, but attached EBS storage can remain billable. Verify the final state and invoice.
Choose and control cost
On-demand is a sensible starting point when demand is unknown, a test is brief, or workload hours vary. For example, a team might run an analytics job a few hours a day, first observe runtime and storage/transfer costs, then compare a commitment for stable baseline usage. This is hypothetical and guarantees no savings.
Estimate region, VM size and OS, running hours, peak concurrent count, and stop/start pattern. Include disks, snapshots, licenses, IPs and network transfer. Check both quota and capacity: having quota does not ensure resources are available in a particular zone. Monitor actual use and billing, set budget alerts, and confirm that stopped machines are truly in a state where compute is no longer billed. Review prices and billing policies because they vary by provider, region and configuration.
Official documentation
[AWS EC2 On-Demand Instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-on-demand-instances.html)
[Azure VM overview and billing components](https://learn.microsoft.com/en-us/azure/virtual-machines/overview)
[Azure VM states and billing](https://learn.microsoft.com/en-us/azure/virtual-machines/states-billing)
[Google Compute Engine FAQ and billing](https://docs.cloud.google.com/compute/docs/faq)
[Google Compute Engine provisioning models](https://docs.cloud.google.com/compute/docs/instances/provisioning-models)