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.

Certifications
ISO/IEC 27001:2022

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 rankHetzner Cloud: 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 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 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 MachinesHetzner Cloudboat
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
CPU speedNot in the public benchmarks we useNot in the public benchmarks we use28.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 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 virtualization is "not possible on cloud server" (Hetzner dedicated servers allow it)Docker, root, systemd and /dev/kvm on every sandbox
Billing and stoppingPer full minute; a deallocated VM stops compute billing, but disks and static IPs keep billingEvery started hour, with a monthly cap; a powered-off server bills at the full rate until you delete itPer second from a monthly plan; no compute charge while stopped; disk kept at least 14 days, longer as a saved snapshot
SnapshotsDisk snapshots you take; scheduled ones need Azure Backup, a separate paid serviceDaily backups in 7 slots for 20% of the server price, or snapshots you take through the Console or schedule with the APIDisk snapshot 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)Disk snapshots only; memory is not savedResume 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 coldSnapshot 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 machinePublic IPv4, static if you pay for it, and any port through security groups; you set up HTTPS, or add a gatewayFixed public IPv4 and IPv6 on any port; HTTPS needs your own certificates or a paid 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 FirewallCloud Firewalls at no extra cost, with outbound rules by IP, port and protocolOpen 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 and a remote-display server; the VNC console is for admin1920x1080 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 can read themYou set it up: install each agent and drive it over SSH; secrets go on the server through cloud-init, files or env varsSeven 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 systemsLinux and Windows on Intel, AMD and Arm; GPU families such as NC with Nvidia H100 and A100Linux on shared or dedicated vCPU, up to 48 vCPU / 192 GB (CCX63); no GPU cloud serversLinux x86_64 up to 16 vCPU / 32 GB (16 vCPU needs the $100 plan or higher); no GPU on any size
Regions77 regions worldwide, available or coming soon, including many in the EUGermany and Finland, plus Ashburn, Hillsboro and SingaporeGermany, Finland and France; you cannot pick a region; no US or Asia region
Every feature Battleships tracks (43)
FeatureAzure Virtual MachinesHetzner Cloudboat
Full VM (own kernel)YesYesYes
Docker insideYesYesYes
Nested virtualizationYesNo documented wayYes
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/resumeYesYesYes
Automatic snapshotsNo documented wayWith your own setupYes
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 serverYesNo documented wayNo documented way
GPUYesNo documented wayNo documented way
WindowsYesNo documented wayNo documented way
Arm64YesYesNo 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)YesNo documented wayYes
Audit logsYesNot publishedNo documented way
SSOYesNo documented wayNo documented way
SOC 2YesNo documented wayNo documented way
HIPAAYesNo documented wayNo documented way
EU data residencyYesYesNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

Azure Virtual MachinesNot measured
Hetzner CloudNot measured
boat28.06 runs/s

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.

ScenarioAzure Virtual Machines, a monthHetzner Cloud, 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)$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.

ScenarioAzure Virtual MachinesHetzner Cloudboat
One coding agent, workdaysNone for this scenario
  • stock-limited: every type "currently unavailable" on hetzner.com (2,026-11-08); Hetzner status page: "Limited availability of cloud instances" since 2,026-06-26
None for this scenario
One agent that never stops
  • 3-year commitment
  • stock-limited: every type "currently unavailable" on hetzner.com (2,026-11-08); Hetzner status page: "Limited availability of cloud instances" since 2,026-06-26
None for this scenario
50 agents in parallelNone for this scenario
  • stock-limited: every type "currently unavailable" on hetzner.com (2,026-11-08); Hetzner status page: "Limited availability of cloud instances" since 2,026-06-26
None for this scenario
Sandboxes for your usersNone for this scenario
  • stock-limited: every type "currently unavailable" on hetzner.com (2,026-11-08); Hetzner status page: "Limited availability of cloud instances" since 2,026-06-26
None for this scenario
1,000 short jobs at once
  • burstable CPU: 30% of each vCPU guaranteed, throttled above that
  • stock-limited: every type "currently unavailable" on hetzner.com (2,026-11-08); Hetzner status page: "Limited availability of cloud instances" since 2,026-06-26
  • 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 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