Azure Virtual Machines vs Hetzner Cloud
Azure Virtual Machines is a hyperscaler: hundreds of sizes, GPUs, Windows, Arm and 77 regions, billed per minute. Hetzner Cloud rents plain Linux servers by the hour with a monthly cap, in six locations, and bills them until you delete them. On 2026-11-08 Hetzner marked every cloud server line as currently unavailable.
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.
Hetzner Cloud
Hetzner is a German hosting company founded in 1997. Hetzner Cloud rents virtual servers, storage and networking by the hour.
A Hetzner Cloud server is a Linux VM. You pick shared vCPU (cost-optimized CX and Arm CAX, regular CPX) or dedicated vCPU (CCX). Each server has local NVMe disk, a public IPv4 and IPv6, and up to 20 TB of traffic in the EU. You add volumes, private networks, firewalls and load balancers. You run everything through the Console, the Cloud API, the hcloud CLI or Terraform. It is general infrastructure, not an agent sandbox. This page compares the two where they overlap: an agent on its own Linux machine.
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 workload | Azure Virtual Machines: price rank | Hetzner Cloud: price rank | boat: price rank |
|---|---|---|---|
| Software factory 100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month Both give a full VM with root and Docker. Hetzner cloud servers have no nested virtualization, and Azure has it on many Intel and AMD sizes (such as D, E and F series). boat has /dev/kvm, agents and HTTPS URLs on every sandbox. | 114th of 365, with limits $730 a month | 84th of 365, with limits $287 a month | 5th cheapest of 365 $634 a month |
| Always-on AI employees 50 machines 24/7 · 2 vCPU / 4 GB Either can run an assistant around the clock, but you set up the agent, HTTPS and backups yourself. boat has them on every sandbox. | 176th of 361, with limits $644 a month | 162nd of 361, with limits $325 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 Azure suits short code runs better than Hetzner, because it bills per minute while Hetzner bills every started hour in full. | 118th of 336, with limits $222 a month | 159th of 336, with limits $649 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 Hetzner ranks 41st and Azure 53rd here, and on both you build the sandbox layer (URLs, auth, cleanup) yourself. boat ranks 2nd and gives you that layer through its API. | 69th of 349, with limits $500 a month | 50th of 349, with limits $314 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 large RL fleets cheap if rollouts can survive eviction with 30 seconds of notice. Hetzner Cloud has no spot pricing or per-minute billing. | 22nd of 349, with limits $1,039 a month | 113th of 349, with limits $6,490 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 thanks to per-minute billing and a wide size range. On Hetzner each short run is billed a full hour. | 5th cheapest of 359 $173 a month | 105th of 359, with limits $240 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 | 147th of 374, with limits $178 a month | 2nd cheapest of 374 $86 a month |
| 24/7 dev boxes 1 machine 24/7 · 4 vCPU / 8 GB Both fit a 24/7 dev box. A Hetzner server is a classic always-on machine with a monthly cap and a fixed IP, and a boat sandbox saves its disk every minute. | 74th cheapest of 371 $94 a month | 130th of 371, with limits $9.99 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. On boat a 60 fps desktop and Chrome come with every sandbox. | 143rd of 367, with limits $192 a month | 176th of 367, with limits $320 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 | 275th of 356, with limits $312 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 | 229th of 343, with limits $62 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 | 48th of 327, with limits $1,248 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 | 165th of 351, with limits $52 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 requirement | Not ranked: misses a requirement | Not 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 requirement | Not ranked: misses a requirement | Not ranked: misses a requirement |
Key features
| Feature | Azure Virtual Machines | Hetzner Cloud | boat |
|---|---|---|---|
| Isolation | Full Hyper-V VM with its own kernel | Full VM with its own kernel | Full VM with its own kernel, on physical hosts dedicated to boat (AMD Ryzen 7 9700X and Ryzen 9 9950X); vCPUs are shared |
| CPU speed | Not in the public benchmarks we use | Not in the public benchmarks we use | 28.06 V8 Web Tooling Benchmark runs/s at 4 vCPU / 8 GB on a 9950X host, second of 15 (StarSling run of 3 October 2026) |
| Docker and nested virtualization | Root 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-series | Root and Docker; nested virtualization is "not possible on cloud server" (Hetzner dedicated servers allow it) | Docker, root, systemd and /dev/kvm on every sandbox |
| Billing and stopping | Per full minute; a deallocated VM stops compute billing, but disks and static IPs keep billing | Every started hour, with a monthly cap; a powered-off server bills at the full rate until you delete it | Per second from a monthly plan; no compute charge while stopped; disk kept at least 14 days, longer as a saved snapshot |
| Snapshots | Disk snapshots you take; scheduled ones need Azure Backup, a separate paid service | Daily backups in 7 slots for 20% of the server price, or snapshots you take through the Console or schedule with the API | Disk snapshot every minute and at each stop; writes after the last good snapshot can be lost if a machine fails |
| Pause with memory | Hibernation 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) | Disk snapshots only; memory is not saved | Resume reboots from disk; memory and running programs are not saved |
| Fork and clone | Capture a gallery image (the VM stops briefly) or snapshot its disks, then create new VMs that boot cold | Snapshot a running server through the API, then create a new server from it (disk, no memory; shutting down first is recommended) | Fork a running sandbox in one call, from its last 1-minute snapshot (disk, no memory) |
| Reaching the machine | Public IPv4, static if you pay for it, and any port through security groups; you set up HTTPS, or add a gateway | Fixed public IPv4 and IPv6 on any port; HTTPS needs your own certificates or a paid load balancer | Up to 50 HTTPS URLs per sandbox, token-gated by default; public IPv6; no static IPv4, and the IP changes at each resume |
| Outbound rules | Security group rules by IP, and domain allowlists with the paid Azure Firewall | Cloud Firewalls at no extra cost, with outbound rules by IP, port and protocol | Open internet on every plan; no provider-side allowlist |
| Desktop and computer use | You set it up: install a desktop such as xfce and xrdp, then open port 3389 (Microsoft guide) | You set it up: install a desktop and a remote-display server; the VNC console is for admin | 1920x1080 desktop and Chrome at 60 fps, computer-use tools and browser control, embeddable stream |
| Coding agents and keys | You set it up: install agents with Run Command, scripts or SSH; Key Vault fetches secrets into the VM, where code can read them | You set it up: install each agent and drive it over SSH; secrets go on the server through cloud-init, files or env vars | Seven 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) |
| Machines, GPUs and operating systems | Linux and Windows on Intel, AMD and Arm; GPU families such as NC with Nvidia H100 and A100 | Linux on shared or dedicated vCPU, up to 48 vCPU / 192 GB (CCX63); no GPU cloud servers | Linux x86_64 up to 16 vCPU / 32 GB (16 vCPU needs the $100 plan or higher); no GPU on any size |
| Regions | 77 regions worldwide, available or coming soon, including many in the EU | Germany and Finland, plus Ashburn, Hillsboro and Singapore | Germany, Finland and France; you cannot pick a region; no US or Asia region |
Every feature Battleships tracks (43)
| Feature | Azure Virtual Machines | Hetzner Cloud | boat |
|---|---|---|---|
| Full VM (own kernel) | Yes | Yes | Yes |
| Docker inside | Yes | Yes | Yes |
| Nested virtualization | Yes | No documented way | Yes |
| Root | Yes | Yes | Yes |
| Systemd | Yes | Yes | Yes |
| Desktop GUI | With your own setup | With your own setup | Yes |
| Browser | No documented way | No documented way | Yes |
| Computer-use API | No documented way | No documented way | Yes |
| SSH | Yes | Yes | Yes |
| Persistent disk | Yes | Yes | Yes |
| Pause/resume | Yes | Yes | Yes |
| Automatic snapshots | No documented way | With your own setup | Yes |
| Fork/clone | Yes | Yes | Yes |
| Live fork (no pause) | No documented way | Yes | Yes |
| Memory fork | No documented way | No documented way | No documented way |
| Custom image (Docker or snapshot) | Yes | Yes | Yes |
| ≥24 h sessions | Yes | Yes | Yes |
| Idle auto-stop | No documented way | No documented way | No documented way |
| Wake on request | No documented way | No documented way | No documented way |
| HTTPS preview URLs | No documented way | With your own setup | Yes |
| Raw TCP inbound | Yes | Yes | Yes |
| Public IPv4 | Yes | Yes | No documented way |
| Egress allowlist | Yes | Yes | No documented way |
| Secret proxy | No documented way | No documented way | Yes |
| Secret proxy for any API | No documented way | No documented way | Yes |
| Preinstalled agents | No documented way | No documented way | Yes |
| Agent harness API | No documented way | No documented way | Yes |
| MCP server | Yes | No documented way | No documented way |
| GPU | Yes | No documented way | No documented way |
| Windows | Yes | No documented way | No documented way |
| Arm64 | Yes | Yes | No documented way |
| Self-hosting | No documented way | No documented way | No documented way |
| BYOC | No documented way | No documented way | No documented way |
| Open source | No documented way | No documented way | No documented way |
| Scoped API keys | Not published | Not published | Yes |
| Spend limits | No documented way | No documented way | Yes |
| Usage per sandbox (API) | Yes | No documented way | Yes |
| Audit logs | Yes | Not published | No documented way |
| SSO | Yes | No documented way | No documented way |
| SOC 2 | Yes | No documented way | No documented way |
| HIPAA | Yes | No documented way | No documented way |
| EU data residency | Yes | Yes | No documented way |
| Zero data retention | Not published | Not published | Yes |
Performance
Azure Virtual Machines and Hetzner Cloud 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.
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 Hetzner Cloud 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.
| Scenario | Azure Virtual Machines, a month | Hetzner Cloud, a month | boat, 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) | $3 · Pay-as-you-go (postpaid) · with limits | $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 | $10 · Pay-as-you-go (postpaid) · with limits | $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) | $141 · Pay-as-you-go (postpaid) · 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) | $312 · Pay-as-you-go (postpaid) · 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 | $2,080 · Pay-as-you-go (postpaid) · 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. The always-on price here needs a 3-year reservation, billed whether the VM runs or not.
Hetzner Cloud: Hetzner bills every started hour with a monthly cap and keeps billing until you delete the server, also when it is off. The prices here use the shared CX line and include the public IPv4. On 2026-11-08 Hetzner's site marked every cloud server line (CX, CAX, CPX, CCX) as currently unavailable.
Hetzner Cloud: 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
Every Hetzner scenario is priced on the CX line, which Hetzner marked currently unavailable on 2026-11-08, so a scenario may not fit as priced today. Hetzner sets per-account limits that it does not publish, and raises them by a request reviewed by hand. Azure limits vCPUs per region and per VM family, stopped VMs still count, and the always-on price needs a 3-year commitment. For 1,000 short jobs at once, Azure's figure uses B-series burstable VMs that guarantee 20% to 40% of each vCPU depending on size, while Hetzner bills each 3-minute job as a full hour. On boat the same burst needs more starts than the $2,000 plan includes: starts above 90 a minute are paid, starts above 270 a minute fail with 429, and boat never queues a start.
| Scenario | Azure Virtual Machines | Hetzner Cloud | boat |
|---|---|---|---|
| One coding agent, workdays | None for this scenario |
| None for this scenario |
| One agent that never stops |
|
| None for this scenario |
| 50 agents in parallel | None for this scenario |
| None for this scenario |
| Sandboxes for your users | None for this scenario |
| None for this scenario |
| 1,000 short jobs at once |
|
|
|
Which one should you use?
Use Azure Virtual Machines when
you need GPUs, Windows, Arm, hibernation, replicated disks or a region outside Europe, or when your company already runs inside Azure.
- GPUs, Windows and Arm. Useful if agents train or test models, or need Windows or Arm: Azure rents all of these as plain VMs.
- Regions almost everywhere. Useful if data must stay in a given country: Azure lists 77 regions worldwide, against six Hetzner Cloud locations.
- Per-minute billing, Spot and hibernation. Useful for short batches, big jobs that can survive eviction, or machines that must resume with their memory.
Use Hetzner Cloud when
you want plain long-lived Linux servers you run yourself, with a monthly price cap, a fixed IP, big dedicated machines and free outbound firewall rules, once its stock is back.
- Low prices for long-lived servers. Useful for machines that run all month: a monthly price cap and a fixed IP for the life of the server. Hetzner marked every cloud line unavailable on 2026-11-08.
- Free outbound firewall rules. Useful if an agent's machine must reach only a few addresses: Cloud Firewalls cost nothing extra and drop all other outbound traffic.
- Big dedicated machines. Useful for heavy single machines: dedicated CCX servers go up to 48 vCPU and 192 GB of memory.
Where boat fits
Azure and Hetzner both rent general servers, and you build what an agent needs on top. If you run agents, boat gives each one a full VM that already has /dev/kvm, a desktop, HTTPS URLs, snapshots every minute, forks and coding agents you drive from outside. boat runs in Germany, Finland and France only, with no GPUs and no static IPv4.
/dev/kvm on every sandbox
Hetzner cloud servers do not offer nested virtualization; Hetzner points you to its dedicated servers for it. Azure has it on many Intel and AMD sizes (such as D, E and F series), but not on the Arm Dplsv6 sizes priced here for one agent and for 50 agents.
No compute charge while stopped, snapshots every minute
A powered-off Hetzner server bills in full until deleted, and a deallocated Azure VM still bills its disks and IPs. On both you script snapshot, delete and recreate. boat saves the disk every minute and at each stop; if a machine fails, writes after the last good snapshot are lost.
Agents, a desktop and keys handled for you
On both clouds you install and supervise each agent over SSH, add a desktop yourself, and keys placed by Key Vault or cloud-init sit inside the VM. boat ships agents with an API and a desktop. Its optional paid proxy keeps the real keys of supported AI providers out of the sandbox.
Use boat when the machines are for agents: a full VM with /dev/kvm, a desktop, HTTPS URLs, snapshots every minute, forks of running sandboxes and coding agents, with no compute charge while stopped. Compare it one to one: boat vs Azure Virtual Machines and boat vs Hetzner Cloud.
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 Hetzner Cloud?
Usually not on paper. One agent on workdays is $3 a month on Hetzner (if you delete the server each night) against $26 on Azure, and 50 agents in parallel are $141 against $1,168. Azure costs less for 300 user sandboxes ($225 against $312) and 1,000 short jobs ($483 against $2,080), because Hetzner bills every started hour. All Hetzner prices use the CX line, which Hetzner marked unavailable on 2026-11-08. boat comes to $20, $317 and $200 for the first three; for the fourth it would cost about $8,800 with paid extra starts and still does not fit.
Which is faster, Azure or Hetzner?
Neither is 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.
Can Azure and Hetzner run Docker and nested virtualization?
Both run Docker, since each server is a full VM with root. Azure supports nested virtualization on many Intel and AMD sizes, such as D, E and F series, but not on Arm or B-series. Hetzner says it is not possible on cloud servers, and allows it on its dedicated servers. boat documents Docker, systemd and /dev/kvm on every sandbox.
Do I pay for a stopped server?
On Hetzner, yes: a server bills at the full rate until you delete it. On Azure, a VM stopped from inside the OS keeps billing compute; a deallocated VM stops compute billing, but disks and static IPs still bill. 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.
Do Azure or Hetzner have GPUs?
Azure has GPU families such as NC with Nvidia H100 and A100, and Windows and Arm sizes too. Hetzner Cloud has no GPU cloud servers, and boat has no GPU on any size.
Where does my data run?
Azure lists 77 regions worldwide, including many in the EU. Hetzner Cloud runs in Germany and Finland, and also in Ashburn, Hillsboro and Singapore. boat sandboxes run on machines in Germany, Finland and France, and you cannot pick a region. boat can store snapshot copies outside the EU.
Try boat
Install the CLI, then run boat new.
7-day free trial
More comparisons
- boat vs Azure Virtual Machines
- boat vs Hetzner Cloud
- AWS EC2 vs Azure Virtual Machines
- Google Compute Engine vs Azure Virtual Machines
- Azure Virtual Machines vs Oracle Cloud
- Azure Virtual Machines vs DigitalOcean
- Azure Virtual Machines vs Vultr
- Azure Virtual Machines vs Linode
- Azure Virtual Machines vs Scaleway
- Azure Virtual Machines vs OVHcloud
- Azure Virtual Machines vs IONOS Cloud
- Azure Virtual Machines vs Contabo