Azure Virtual Machines vs DigitalOcean

Azure Virtual Machines is a large menu of Linux, Windows, Arm and GPU machines in 77 regions, with quotas, reservations and Spot. DigitalOcean Droplets are simpler Linux servers with a fixed hourly price and a monthly cap. A new DigitalOcean team can run 3 Droplets at once until it reaches a higher tier.

The companies and products

Azure Virtual Machines

Azure Virtual Machines is Microsoft's general-purpose cloud VM service: you rent Linux or Windows machines by the minute in Azure regions worldwide.

It is a hyperscaler IaaS product, not a sandbox API. Each VM runs on Microsoft's Hyper-V hypervisor with its own kernel, root and SSH. You pick from hundreds of sizes, including Arm, burstable and GPU families. Networking, disks, images, firewalls and agent tooling are separate pieces that you set up. It suits teams that already run on Azure and want full control.

DigitalOcean

DigitalOcean is a general-purpose cloud, and Droplets are its Linux virtual machines.

A Droplet is a Linux VM you rent by size, with root, a public IP, local SSD and a monthly transfer allowance. You pick an image, then install and run your own software on it, next to DigitalOcean products like Kubernetes, managed databases, load balancers and cloud firewalls. It is a server host, not an agent sandbox, so this page compares the two where they overlap: giving an agent its own Linux machine. DigitalOcean also sells two separate products in public preview, Harness Runtime for agents and MicroVMs. Neither is a Droplet.

Founded
2012

Which use cases each one fits

For each use case, Battleships prices every sandbox provider on the same workload and sorts them from the cheapest monthly bill up. “5th cheapest of 359” means 4 of the other 358 providers run that workload, with every feature it needs, for less. “With limits” means the provider runs it but misses something, so it is listed after every full match. Open a use case for its whole ranking and what each provider misses.

Use case and its workloadAzure Virtual Machines: price rankDigitalOcean: price rankboat: price rank
Software factory
100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month
Both give a full Linux VM with root and Docker that you set up yourself. boat has agents, snapshots and HTTPS URLs on every sandbox.
114th of 365, with limits
$730 a month
37th of 365, with limits
$1,187 a month
5th cheapest of 365
$634 a month
Always-on AI employees
50 machines 24/7 · 2 vCPU / 4 GB
A Droplet is the simpler always-on server, at $48 a month month to month. Azure's $48 needs a 3-year reservation. boat runs it for $26 once auto-stop is off (default 1 hour).
176th of 361, with limits
$644 a month
59th of 361, with limits
$1,429 a month
6th cheapest of 361
$657 a month
Code interpreter bursts
100 at once · 1 vCPU / 2 GB · 200,000 sessions of 1 min a month
DigitalOcean bills per second with a 60 second minimum and Azure per full minute. Both suit short runs better than boat, whose start limits make big bursts a compromise.
118th of 336, with limits
$222 a month
70th of 336, with limits
$60 a month
189th of 336, with limits
$2,000 a month
Sandboxes for your users
300 at once · 2 vCPU / 4 GB · 30,000 sessions of 23 min a month
A new DigitalOcean team can run 3 Droplets at once, and Azure caps vCPUs per region and family. boat allows 100 to 2,000 sandboxes by plan, with starts per minute, hour and day capped by plan.
69th of 349, with limits
$500 a month
59th of 349, with limits
$421 a month
3rd cheapest of 349
$209 a month
RL rollouts
1,000 at once · 2 vCPU / 4 GB · 1,000,000 sessions of 3 min a month
Azure Spot VMs make big RL fleets cheap if rollouts survive eviction with 30 seconds of notice. DigitalOcean sells spot capacity for GPU Droplets, not for CPU Droplets.
22nd of 349, with limits
$1,039 a month
36th of 349, with limits
$1,786 a month
39th of 349, with limits
$2,000 a month
Agent evals
250 at once · 4 vCPU / 8 GB · 15,000 sessions of 20 min a month
Azure fits eval batches well with per-minute billing and many sizes. On DigitalOcean the 3-Droplet limit of a new team gets in the way first.
5th cheapest of 359
$173 a month
111th of 359, with limits
$357 a month
10th cheapest of 359
$200 a month
CI runners
40 at once · 8 vCPU / 16 GB · 6,000 sessions of 12 min a month
33rd cheapest of 374
$335 a month
146th of 374, with limits
$171 a month
2nd cheapest of 374
$86 a month
24/7 dev boxes
1 machine 24/7 · 4 vCPU / 8 GB
All three fit a 24/7 dev box. A Droplet or an Azure VM is a classic always-on server; a boat sandbox saves its disk every minute.
74th cheapest of 371
$94 a month
40th cheapest of 371
$48 a month
19th cheapest of 371
$26 a month
Computer-use agents
50 at once · 4 vCPU / 8 GB · 20,000 sessions of 15 min a month
On both clouds you set up the desktop yourself: install a desktop and an RDP or VNC server. boat streams a 60 fps desktop with Chrome on every sandbox.
143rd of 367, with limits
$192 a month
70th of 367, with limits
$263 a month
7th cheapest of 367
$200 a month
Browser-use agents
50 at once · 2 vCPU / 4 GB · 30,000 sessions of 10 min a month
233rd of 356, with limits
$107 a month
60th of 356, with limits
$147 a month
7th cheapest of 356
$200 a month
Scraping & bots (startup scale)
50 at once · 1 vCPU / 2 GB · 100,000 sessions of 3 min a month
258th of 343, with limits
$116 a month
126th of 343, with limits
$175 a month
6th cheapest of 343
$90 a month
Mass scraping & bots (undetectable)
1,000 at once · 1 vCPU / 2 GB · 3,000,000 sessions of 2 min a month
84th of 327, with limits
$2,044 a month
71st of 327, with limits
$1,786 a month
73rd of 327, with limits
$1,800 a month
Parallel red teaming
200 at once · 2 vCPU / 4 GB · 5,000 sessions of 30 min a month
164th of 351, with limits
$46 a month
45th of 351, with limits
$199 a month
3rd cheapest of 351
$200 a month
GPU eval jobs
10 at once · 8 vCPU / 32 GB · 500 sessions of 30 min a month
Not ranked: misses a requirementNot ranked: misses a requirementNot ranked: misses a requirement
macOS agents
5 at once · 4 vCPU / 8 GB · 1,000 sessions of 20 min a month
Not ranked: misses a requirementNot ranked: misses a requirementNot ranked: misses a requirement

Key features

FeatureAzure Virtual MachinesDigitalOceanboat
What you getA general cloud VM from hundreds of sizes; you set up the image, networking and toolingA general Linux server you set up and run yourselfAn agent sandbox: a full VM per sandbox, created and driven by API
IsolationFull Hyper-V VM with its own kernelFull VM with its own kernelFull VM with its own kernel, on physical hosts dedicated to boat (AMD Ryzen 7 9700X and Ryzen 9 9950X); vCPUs are shared
Operating systems and CPUsLinux and Windows guests on Intel, AMD and Arm sizes, plus burstable B-seriesLinux on x86; Basic plans share hyper-threads, dedicated CPU plans cost moreLinux x86_64 only; no promised CPU model; Windows apps through Wine
Docker and nested virtualizationRoot and Docker on any size; nested virtualization on many Intel and AMD sizes (such as D, E and F series), not on Arm or B-seriesRoot and Docker; nested VMs run, and the live migration docs tell you to restart them after a migrationDocker, root, systemd and /dev/kvm on every sandbox, documented
StoppingA deallocated VM stops compute billing; disks and static IPs keep billing; a shutdown from inside the OS keeps billingA powered-off bundled Droplet is billed in full and keeps its disk and IP; to stop paying, snapshot and destroy itNo compute charge while stopped; disk kept at least 14 days, longer as a saved snapshot; memory is not kept
SnapshotsOn-demand disk snapshots; scheduled ones need Azure Backup, a separate paid serviceOn-demand disk snapshots, billed by size; paid scheduled backups every 4, 6 or 12 hours, daily or weeklyAutomatic disk snapshots every minute and at each stop; writes after the last good snapshot can be lost if a machine fails
Pause with memoryHibernation saves memory to the OS disk on supported sizes (up to 64 GB of RAM on general-purpose sizes, 112 GB on some GPU sizes); you trigger it by APINo memory pause documented for Droplets; a new Droplet from a snapshot gets the diskResume reboots from disk; memory and running programs are not saved
Fork and cloneCapture a gallery image (the VM stops briefly) or snapshot its disks, then create new VMs that boot coldTake a live snapshot, then create new Droplets from it (disk, no memory)Fork a running sandbox in one call, from its last 1-minute snapshot (disk, no memory)
Reaching the machinePublic IPv4, static if you pay for it, and any port through security group rules; you set up HTTPS, or add a gatewayPublic IPv4 and IPv6 on any port; reserved IPv4 free while assigned; HTTPS needs your own certificates or a load balancerUp to 50 HTTPS URLs per sandbox, token-gated by default; public IPv6; no static IPv4, and the IP changes at each resume
Outbound rulesSecurity group rules by IP, and domain allowlists with the paid Azure FirewallFree cloud firewalls with outbound rules by IP range, Droplet or tagOpen internet on every plan; no provider-side allowlist
Desktop and computer useYou set it up: install a desktop such as xfce and xrdp, then open port 3389 (Microsoft guide)You set it up: install a desktop environment and a VNC server (DigitalOcean tutorial); Harness Runtime includes Chromium1920x1080 desktop and Chrome at 60 fps, computer-use tools and browser control, embeddable stream
Coding agents and keysYou set it up: install agents with Run Command, scripts or SSH; Key Vault fetches secrets into the VM, where code inside can read themNone on Droplets; DigitalOcean's separate Harness Runtime (public preview, one US region) runs Claude Code, Codex and others in microVMs and injects credentialsSeven harnesses installed, including Claude Code, Codex and OpenCode, with a prompt, steer and events API; optional AI credentials proxy ($1 a day plus $1 per 1,000 requests)
GPUsGPU families such as NC with Nvidia H100 and A100Nvidia and AMD GPU Droplets, on demand, reserved or spotNo GPU on any size
Regions77 regions worldwide, available or coming soon13 regions in the US, Canada, Europe, Asia and AustraliaGermany, Finland and France; you cannot pick a region; no US or Asia region
Every feature Battleships tracks (43)
FeatureAzure Virtual MachinesDigitalOceanboat
Full VM (own kernel)YesYesYes
Docker insideYesYesYes
Nested virtualizationYesYesYes
RootYesYesYes
SystemdYesYesYes
Desktop GUIWith your own setupWith your own setupYes
BrowserNo documented wayNo documented wayYes
Computer-use APINo documented wayNo documented wayYes
SSHYesYesYes
Persistent diskYesYesYes
Pause/resumeYesNo documented wayYes
Automatic snapshotsNo documented wayNo documented wayYes
Fork/cloneYesYesYes
Live fork (no pause)No documented wayYesYes
Memory forkNo documented wayNo documented wayNo documented way
Custom image (Docker or snapshot)YesYesYes
≥24 h sessionsYesYesYes
Idle auto-stopNo documented wayNo documented wayNo documented way
Wake on requestNo documented wayNo documented wayNo documented way
HTTPS preview URLsNo documented wayWith your own setupYes
Raw TCP inboundYesYesYes
Public IPv4YesYesNo documented way
Egress allowlistYesYesNo documented way
Secret proxyNo documented wayNo documented wayYes
Secret proxy for any APINo documented wayNo documented wayYes
Preinstalled agentsNo documented wayNo documented wayYes
Agent harness APINo documented wayNo documented wayYes
MCP serverYesYesNo documented way
GPUYesYesNo documented way
WindowsYesNo documented wayNo documented way
Arm64YesNo documented wayNo documented way
Self-hostingNo documented wayNo documented wayNo documented way
BYOCNo documented wayNo documented wayNo documented way
Open sourceNo documented wayNo documented wayNo documented way
Scoped API keysNot publishedNot publishedYes
Spend limitsNo documented wayNo documented wayYes
Usage per sandbox (API)YesYesYes
Audit logsYesNot publishedNo documented way
SSOYesYesNo documented way
SOC 2YesYesNo documented way
HIPAAYesYesNo documented way
EU data residencyYesYesNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

Azure Virtual MachinesNot measured
DigitalOceanNot measured
boat28.06 runs/s

Azure Virtual Machines and DigitalOcean are not in the public benchmarks we use, so we cannot say which is faster. In StarSling's run of 3 October 2026 (run 37073680030), boat did 28.06 V8 Web Tooling Benchmark runs per second at 4 vCPU / 8 GB, second of 15. Every boat sandbox in that run ran on an AMD Ryzen 9 9950X host. boat also places sandboxes on Ryzen 7 9700X hosts, which that run did not test, and does not promise a CPU model. On both clouds, speed depends on the plan: Azure has many CPU families and burstable sizes, and DigitalOcean's Basic plans share hyper-threads.

V8 Web Tooling Benchmark at a 4 vCPU / 8 GB target, runs per second, higher is better. Source: StarSling's run of 3 October 2026 (run 37073680030), median of 5 sandboxes. Providers ran on different hardware in different regions. StarSling gives a shared rank when the run cannot separate two providers. Every boat sandbox in this run ran on an AMD Ryzen 9 9950X host. boat also places some sandboxes on AMD Ryzen 7 9700X hosts, which this run did not measure. Azure Virtual Machines and DigitalOcean are not in the public benchmarks we use, so we cannot say which is faster.

Pricing in five scenarios

Each bill is priced from the providers' public price lists by the open Battleships engine, with the cheapest plan that runs the scenario. Start limits, per-start fees and plan minimums are in the price, boat's included.

ScenarioAzure Virtual Machines, a monthDigitalOcean, a monthboat, a month
One coding agent, workdays
4 vCPU / 8 GB, 50 GB disk, 8 hours a day, 22 days a month, files kept between days
$26 · Pay-as-you-go subscription (no plan fee)$13 · Pay as you go$20 · $20/mo
One agent that never stops
4 vCPU / 8 GB, 50 GB disk, running 24/7 all month
$48 · Pay-as-you-go subscription (no plan fee) · with limits$48 · Pay as you go$26 · $20/mo
50 agents in parallel
50 machines of 4 vCPU / 8 GB at once, 8-hour sessions, 1,100 sessions a month, Docker inside
$1,168 · Pay-as-you-go subscription (no plan fee)$629 · Pay as you go · with limits$317 · $20/mo × 3 seats
Sandboxes for your users
2 vCPU / 4 GB, 30,000 sessions of 10 minutes a month, up to 300 at once
$225 · Pay-as-you-go subscription (no plan fee)$179 · Pay as you go · with limits$200 · $100/mo × 2 seats
1,000 short jobs at once
2 vCPU / 4 GB, 1,000 at once, 3 minutes each, 200,000 jobs a month
$483 · Pay-as-you-go subscription (no plan fee) · with limits$357 · Pay as you go · with limits$8,800 · $2000/mo · with limits

Azure Virtual Machines: Azure bills each VM per full minute while it runs, with no plan fee. Disks, public IPv4 and egress bill on top, and disks keep billing while the VM is deallocated. For a machine that never stops, the lowest price needs a 3-year reservation, billed whether the VM runs or not. Below about $20 of use a month, Azure costs less than boat's smallest plan.

DigitalOcean: Each bundled Droplet size has a fixed hourly price, billed per second with a 60 second minimum and capped at 672 hours a month. Bundled and GPU Droplets bill while powered off, until you destroy them. Snapshots ($0.06/GiB-month) and backups cost extra. There is no plan fee.

DigitalOcean: Plans cost $20, $100, $500 or $2,000 a month, and the whole plan price comes back as VM time for that month. A default 4 vCPU / 8 GB sandbox costs $0.036 an hour, billed per second while it runs. The $20 plan includes 12 starts a minute, 60 an hour and 200 a day; extra starts cost $0.03 to $0.07 each. A stopped sandbox has no compute charge. Saved snapshots above the plan's count and the AI credentials proxy still bill while stopped.

Limits in those scenarios

A new DigitalOcean team is on Tier 1: 3 Droplets at once, and only Basic shared CPU plans up to $48. So 50 agents in parallel and sandboxes for your users do not fit until you reach a higher tier. Tier 5 allows 100 Droplets. Azure fits both, within vCPU quotas per region and per family that start low and rise by request. Azure's $48 a month for one agent that never stops needs a 3-year commitment, while DigitalOcean's $48 is month to month. For 1,000 short jobs at once none of the three fits. Azure's burstable VMs guarantee 20% to 40% of each vCPU depending on size and throttle above that. DigitalOcean caps a new team at 3 Droplets. On the $2,000 plan, boat charges for starts above 90 a minute and refuses them above 270, and it never queues a start.

ScenarioAzure Virtual MachinesDigitalOceanboat
One coding agent, workdaysNone for this scenarioNone for this scenarioNone for this scenario
One agent that never stops
  • 3-year commitment
None for this scenarioNone for this scenario
50 agents in parallelNone for this scenario
  • Pay as you go: max 3 concurrent
None for this scenario
Sandboxes for your usersNone for this scenario
  • Pay as you go: max 3 concurrent
None for this scenario
1,000 short jobs at once
  • burstable CPU: 30% of each vCPU guaranteed, throttled above that
  • Pay as you go: max 3 concurrent
  • shared vCPUs on this tier, per-second with 672 h cap”): heavy, sustained CPU use can be slowed by other tenants
  • 2,400 starts/day included, paid above that (needs ~6,667)
  • 600 starts/hour included, paid above that (needs ~1,000)
  • starts above 90/min are paid, and starts above 270/min fail with 429

Which one should you use?

Use Azure Virtual Machines when

you need Windows, Arm, GPUs, hibernation, Spot pricing, replicated disks or a region in almost any country, or when your company already runs on Azure.

  • Windows, Arm and many sizes. Useful if agents need Windows or Arm machines, or a very specific size: Azure rents all of these, and DigitalOcean is Linux on x86.
  • Regions almost everywhere, durable disks. Useful if data must stay in a given country: Azure lists 77 regions against DigitalOcean's 13. Its managed disks keep three replicas.
  • Hibernation, Spot and reservations. Useful if a VM must resume with its memory, or if big batches can survive eviction or commit for years to pay less.

Use DigitalOcean when

you want simple Linux servers with one predictable price, a fixed IP, free firewalls and GPUs, and you need only a few machines at first.

  • One simple price per Droplet. Useful if you want a bill you can predict: a fixed hourly price, billed per second and capped at 672 hours a month on bundled plans.
  • Free firewalls and a small cloud around it. Useful if a server must sit next to managed databases and Kubernetes, behind free firewalls with outbound rules.
  • Nvidia and AMD GPUs. Useful if agents train or serve models: DigitalOcean rents Nvidia and AMD GPU Droplets, including AMD MI300X and newer cards.

Where boat fits

Azure and DigitalOcean both rent plain servers you build on. If you run agents, boat gives each one a full VM that already has Docker, /dev/kvm, a desktop, HTTPS URLs, forks and coding agents you drive by API. boat is a sandbox product, not a cloud. GPUs, Windows, static IPs and regions outside Germany, Finland and France stay with Azure or DigitalOcean.

No compute charge while stopped

A powered-off Droplet bills in full. A deallocated Azure VM still bills its disks and counts against your vCPU quota. boat saves the disk every minute and at each stop, and a stopped sandbox has no compute charge. Saved snapshots above the plan's count ($0.056 a day each) and the AI credentials proxy still bill.

Fork a running machine in one call

On Azure a copy starts from a gallery image or a disk snapshot and boots cold. On DigitalOcean you snapshot, then create Droplets, and a new team can run 3 at once. A boat fork starts from the last 1-minute snapshot, so the last minute of writes can be missing.

Agents, desktop and HTTPS built in

On both clouds you install the agents, a desktop and RDP or VNC, then run TLS or a load balancer for each preview link. boat ships these on every sandbox. Its optional credentials proxy keeps the real keys of supported AI providers out of the sandbox.

Use boat when the machines are for agents: full VMs with Docker and /dev/kvm, forks of running sandboxes, snapshots every minute, no compute charge while stopped, a desktop, HTTPS URLs and coding agents you drive by API. Compare it one to one: boat vs Azure Virtual Machines and boat vs DigitalOcean.

boat's own limits
  • Plans start at $20 a month. The plan price comes back as VM time for that month. Unused time does not carry over. Source
  • Starts (create, fork, resume): the $20 plan includes 12 a minute, 60 an hour and 200 a day. The $2,000 plan includes 90 a minute, 600 an hour and 2,400 a day. Extra starts cost $0.03 to $0.07. A start fails with 429 above 3 times the included starts per minute, or 6 times per hour or per day. Source
  • A stopped sandbox has no compute charge. boat keeps its disk for at least 14 days. A saved snapshot keeps it longer; extra saved snapshots and the AI credentials proxy are paid. Source
  • Auto-stop defaults to 1 hour. You can turn it off on a paid plan. The trial allows 2 hours at most. Source
  • boat saves the disk every minute and at each stop. Memory, running programs and /tmp are not saved: a resume is like a reboot. A machine failure loses writes after the last good snapshot. Source
  • Machines run in Germany, Finland and France only. Snapshot copies can be stored outside the EU. Source
  • Public IPv6 and outbound IPv4. No dedicated IPv4. The IP changes at each resume. Source
  • Hosts are AMD Ryzen 7 9700X and Ryzen 9 9950X. vCPUs are shared. No GPU. You cannot boot your own Docker image. Source

Questions people ask

Is Azure cheaper than DigitalOcean?

Usually not in our scenarios. One coding agent on workdays comes to $13 a month on DigitalOcean if you snapshot and destroy the Droplet each night, against $26 on Azure. One agent that never stops is $48 on both, but Azure needs a 3-year reservation for that price. boat comes to $20 and $26 for the same two, with auto-stop turned off for the second.

Which can run 50 agents at once?

Azure fits 50 agents in parallel at $1,168 a month, within your vCPU quota. DigitalOcean would cost $629, but a new team can run only 3 Droplets, so you need a higher tier first. boat fits it at $317 a month.

Which is faster?

Azure and DigitalOcean are not in the public benchmarks we use, so we cannot say. boat did 28.06 V8 Web Tooling Benchmark runs per second at 4 vCPU / 8 GB in StarSling's run of 3 October 2026, on an AMD Ryzen 9 9950X host. On both clouds the speed depends on the CPU family or plan you pick.

Can Azure VMs and Droplets run Docker and nested VMs?

Both run Docker with root. Azure documents nested virtualization on many Intel and AMD sizes, such as D, E and F series, but not on Arm or B-series. Nested VMs run on Droplets, and DigitalOcean's live migration docs tell you to restart them after a migration. boat documents Docker, systemd and /dev/kvm on every sandbox.

Do I pay for a stopped machine?

On DigitalOcean, yes: a powered-off bundled Droplet is billed in full until you destroy it. On Azure, a deallocated VM stops compute billing, but its disks and static IPs keep billing. A stopped boat sandbox has no compute charge, and boat keeps its disk for at least 14 days. Saved snapshots above the plan's count and the AI credentials proxy still bill.

Which has Windows, GPUs and more regions?

Azure has Windows, Arm and Nvidia GPUs in 77 regions. DigitalOcean is Linux, with Nvidia and AMD GPU Droplets in 13 regions. boat runs Linux in Germany, Finland and France, with no GPUs, and you cannot pick a region.

Try boat

Install the CLI, then run boat new.

7-day free trial

More comparisons