Google Compute Engine vs Azure Virtual Machines

Google Compute Engine and Azure Virtual Machines are both hyperscaler VM services: you rent a full Linux or Windows machine and set up the rest yourself. Compute Engine bills per second and runs on KVM. Azure bills per full minute on Hyper-V, offers nested virtualization on many Intel and AMD sizes, and lists more regions.

The companies and products

Google Compute Engine

Google Compute Engine is Google Cloud's general-purpose VM service, not a sandbox product: you rent virtual machines by the second and set them up yourself.

You pick a machine type (E2, N2D, C3D, Arm T2A, GPU families and more), a boot image and a network. Compute Engine boots a KVM-based VM with its own kernel and root access. Disks are Persistent Disk or Hyperdisk volumes, and VPC firewall rules control traffic. You set up the agent parts yourself: agents, a desktop, HTTPS URLs and key handling. Compute Engine serves every kind of server workload, from websites to GPU training, in Google Cloud regions worldwide.

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.

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. “29th cheapest of 365” means 28 of the other 364 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 workloadGoogle Compute Engine: price rankAzure Virtual Machines: price rankboat: price rank
Software factory
100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month
Compute Engine fits a software factory (18th). Azure's priced line is a Spot VM that Azure can take back, so it is a compromise (82nd). On either cloud you set up the agents, preview URLs and cloning yourself. boat ranks 8th with these on every sandbox.
29th cheapest of 365
$2,607 a month
114th of 365, with limits
$730 a month
5th cheapest of 365
$634 a month
Always-on AI employees
50 machines 24/7 · 2 vCPU / 4 GB
Compute Engine fits an always-on assistant (17th). Azure's priced line is Spot (109th, compromise). On both clouds the lowest always-on price needs a commitment, and disks bill while stopped. boat ranks 5th, month to month.
45th cheapest of 361
$2,558 a month
176th of 361, with limits
$644 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
Both are compromises for short code runs, because the scenario expects a sandbox and these are general VMs: Compute Engine ranks 76th and Azure 87th. Their only start limit is your vCPU quota. boat's start limits make big bursts a compromise too (130th).
98th of 336, with limits
$133 a month
118th of 336, with limits
$222 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
Giving each user a VM on either cloud means building your own sandbox layer (URLs, auth, cleanup). Azure ranks 53rd and Compute Engine 71st, both compromises. boat ranks 2nd.
97th of 349, with limits
$836 a month
69th of 349, with limits
$500 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 (20th). Compute Engine ranks 31st. Both are compromises because fast boot is not benchmarked. boat ranks 29th, limited by starts.
40th of 349, with limits
$2,050 a month
22nd of 349, with limits
$1,039 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
Both fit eval batches well: Azure ranks 3rd and Compute Engine 11th. boat ranks 8th, with forks and snapshots built in.
12th cheapest of 359
$228 a month
5th cheapest of 359
$173 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
Both fit CI: Azure ranks 26th and Compute Engine 30th. /dev/kvm works on many Azure Intel and AMD sizes (such as D, E and F) and on some Compute Engine Intel families and N4D, but not on E2. boat ranks 2nd with /dev/kvm on every sandbox.
39th cheapest of 374
$359 a month
33rd cheapest of 374
$335 a month
2nd cheapest of 374
$86 a month
24/7 dev boxes
1 machine 24/7 · 4 vCPU / 8 GB
84th cheapest of 371
$109 a month
74th cheapest of 371
$94 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
Compute Engine fits (20th) once you install a desktop and Chrome Remote Desktop from Google's guide. Azure's priced line is Spot (91st, compromise); Microsoft's guide installs xfce and xrdp. boat ranks 8th with a 60 fps desktop built in.
49th cheapest of 367
$720 a month
143rd of 367, with limits
$192 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
86th of 356, with limits
$378 a month
233rd of 356, with limits
$107 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
99th cheapest of 343
$256 a month
258th of 343, with limits
$116 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
101st of 327, with limits
$2,644 a month
84th of 327, with limits
$2,044 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
21st cheapest of 351
$187 a month
164th of 351, with limits
$46 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

FeatureGoogle Compute EngineAzure Virtual Machinesboat
What you getA general cloud VM; you set up everything else from images, startup scripts or your own toolingA general cloud VM; you set up the image, networking and toolingAn agent sandbox: a full VM with agents, desktop, URLs and snapshots set up
IsolationFull VM on Google's KVM-based hypervisor, with its own kernelFull Hyper-V VM with its own kernelFull VM with its own kernel, on physical hosts dedicated to boat; vCPUs are shared
Billing unitPer second after a 1 minute minimumPer full minute while running; a VM shut down from inside the OS keeps billing until you deallocate itPer second while running, from a monthly plan that comes back as VM time for that month
Docker and nested virtualizationDocker, root and systemd on any VM; nested KVM once enabled per VM on Intel families or N4D, not on E2, Arm or other AMD VMsDocker and root on any size; nested virtualization on many Intel and AMD sizes (such as D, E and F series), not on Arm or B-seriesDocker, root, systemd and /dev/kvm on every sandbox
Files after a stopPersistent disks are kept with no time limit and billed while stopped; snapshots on demand or on a schedule you setDisk is kept; a deallocated VM stops compute billing, but disks and static IPs keep billing; managed disks keep three replicasDisk saved every minute and at each stop; no compute charge while stopped; kept at least 14 days, longer with a saved snapshot; writes after the last good snapshot can be lost if a host fails
Pause with memorySuspend keeps memory for up to 60 days, and memory keeps billing while suspendedHibernation saves memory to the OS disk on supported sizes (up to 64 GB of RAM on general-purpose sizes)No; a resume is like a reboot
Fork and cloneMake a machine image (disks, not memory) and boot a new VMCapture a gallery image (the VM stops briefly) or snapshot its disks, then boot new VMs coldFork a running sandbox in one call, from its last 1-minute snapshot
Coding agentsYou set it up: install the agent CLIs and drive them over SSH or startup scriptsYou set it up: install and run them with Run Command, scripts or SSHSeven harnesses installed, with a prompt, steer and events API
Keeping keys out of the machineSecret Manager values and service account tokens are read from inside the VM; for a key-injecting proxy you run your ownKey Vault secrets are fetched into the VM; for a key-injecting proxy you run your ownOptional AI credentials proxy ($1 a day when on, plus $1 per 1,000 requests); other secrets still enter the sandbox
Desktop and computer useYou set it up: install a desktop such as Xfce and Chrome Remote Desktop (Google guide), then add your own click and screenshot toolsYou set it up: install a desktop such as xfce and xrdp (Microsoft guide); Azure Virtual Desktop is a separate product1920x1080, 60 fps desktop and Chrome, with computer tools for agents and an embeddable stream
Reaching the machineExternal IPv4 (static on request) and any port through firewall rules; HTTPS needs a load balancer or a web server you configurePublic IPv4 (static if you pay for it) and any port through security group rules; HTTPS is yours to run, or add a load balancer or gatewayUp to 50 HTTPS URLs, token-gated by default; public IPv6; no static IPv4, and the IP changes at each resume
Outbound network rulesVPC egress firewall rules by IP and port; domain rules on Cloud NGFW Standard, a paid tierSecurity group rules by IP; domain allowlists with the paid Azure FirewallOpen internet on every plan; no provider-side allowlist
GPUsNvidia GPUs from T4 and L4 up to H100, H200, B200, GB200 and GB300GPU families such as NC with Nvidia H100 and A100None
Regions43 regions and 130 zones77 regions listed as available or coming soonGermany, Finland and France; no region choice, no US or Asia region
Every feature Battleships tracks (43)
FeatureGoogle Compute EngineAzure Virtual Machinesboat
Full VM (own kernel)YesYesYes
Docker insideYesYesYes
Nested virtualizationNo documented wayYesYes
RootYesYesYes
SystemdYesYesYes
Desktop GUIWith your own setupWith your own setupYes
BrowserWith your own setupNo documented wayYes
Computer-use APINo documented wayNo documented wayYes
SSHYesYesYes
Persistent diskYesYesYes
Pause/resumeYesYesYes
Automatic snapshotsNo documented wayNo documented wayYes
Fork/cloneYesYesYes
Live fork (no pause)YesNo documented wayYes
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 URLsWith your own setupNo documented wayYes
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 serverNo documented wayYesNo documented way
GPUYesYesNo documented way
WindowsNo documented wayYesNo 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)YesYesYes
Audit logsYesYesNo documented way
SSOYesYesNo documented way
SOC 2YesYesNo documented way
HIPAAYesYesNo documented way
EU data residencyYesYesNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

Google Compute EngineNot measured
Azure Virtual MachinesNot measured
boat28.06 runs/s

Compute Engine and Azure Virtual Machines are not in the public benchmarks we use, so we cannot say how they compare, and their speed depends on the CPU family you pick. In StarSling's run of 3 October 2026 (run 37073680030), boat did 28.06 V8 Web Tooling Benchmark runs/s at 4 vCPU / 8 GB, 2nd of 15 (shared rank). That boat sandbox 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.

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. Google Compute Engine and Azure Virtual Machines 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.

ScenarioGoogle Compute Engine, a monthAzure Virtual Machines, 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
$31 · Pay-as-you-go billing account (no plan fee)$26 · Pay-as-you-go subscription (no plan fee)$20 · $20/mo
One agent that never stops
4 vCPU / 8 GB, 50 GB disk, running 24/7 all month
$64 · Pay-as-you-go billing account (no plan fee) · with limits$48 · Pay-as-you-go subscription (no plan fee) · 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,291 · Pay-as-you-go billing account (no plan fee)$1,168 · Pay-as-you-go subscription (no plan fee)$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
$378 · Pay-as-you-go billing account (no plan fee)$225 · Pay-as-you-go subscription (no plan fee)$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
$690 · Pay-as-you-go billing account (no plan fee)$483 · Pay-as-you-go subscription (no plan fee) · with limits$8,800 · $2000/mo · with limits

Google Compute Engine: Compute Engine bills each VM per second after a 1 minute minimum at its list rate, here E2 sizes on demand in us-central1, with no plan fee. The E2 sizes priced have more RAM than boat's (16 GiB against 8 GB at 4 vCPU). Disks and external IPs bill on top, also while stopped, and lower rates need a 1-year or 3-year commitment. New users get $300 of trial credit for 90 days.

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 deallocated. The lowest prices in the rankings use Spot VMs, Arm Cobalt sizes or B-series burstable sizes, and a machine that never stops reaches its lowest price only with a 3-year reservation.

Azure Virtual Machines: Plans cost $20, $100, $500 or $2,000 a month, and the whole plan price comes back as VM time for that month. A 4 vCPU / 8 GB sandbox costs $0.036 an hour, billed per second while it runs, busy or idle. A stopped sandbox has no compute charge and keeps its disk at least 14 days; saved snapshots above the included count and the AI credentials proxy still charge. The $20 plan includes 200 starts a day; extra starts cost $0.03 to $0.07. A card is required, also for the 7-day trial.

Limits in those scenarios

Both clouds cap vCPUs per region with quotas, and Azure also caps each VM family and counts stopped VMs, so 50 agents in parallel or 300 user sandboxes may need a quota request first on either. Azure's lowest prices in several scenarios use Spot VMs, which Azure can take back with 30 seconds of notice, or B-series burstable VMs that guarantee 20% to 40% of each vCPU depending on size. boat's auto-stop defaults to 1 hour. Its $2,000 plan includes 90 starts a minute and 2,400 a day, bills extra starts at $0.03 to $0.07, and refuses starts above 270 a minute with 429, so 1,000 short jobs at once do not fit boat.

ScenarioGoogle Compute EngineAzure Virtual Machinesboat
One coding agent, workdaysNone for this scenarioNone for this scenarioNone for this scenario
One agent that never stops
  • 3-year commitment
  • 3-year commitment
None for this scenario
50 agents in parallelNone for this scenarioNone for this scenarioNone for this scenario
Sandboxes for your usersNone for this scenarioNone for this scenarioNone for this scenario
1,000 short jobs at onceNone for this scenario
  • burstable CPU: 30% of each vCPU guaranteed, throttled above that
  • 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 Google Compute Engine when

you want per-second billing for short jobs, the newest Nvidia GPUs, or your team already runs on Google Cloud.

  • Billed by the second. Useful for many short jobs: Compute Engine bills per second after the first minute, where Azure rounds to full minutes.
  • Newer GPUs. Useful if agents train or serve models: Compute Engine rents Nvidia GPUs up to H200, B200, GB200 and GB300.
  • Stops mean stopped. Useful if people stop VMs from inside: a stopped Compute Engine VM ends CPU and memory charges, with only disks and IPs left.

Use Azure Virtual Machines when

you need nested virtualization on common x86 sizes, a region Compute Engine does not cover, Spot fleets or hibernation, or your company already runs on Azure.

  • Nested virtualization on common sizes. Useful for Android emulators or VMs inside VMs: Azure supports it on many Intel and AMD sizes, such as D, E and F series.
  • More regions. Useful if data must sit in a given country: Azure lists 77 regions, against 43 for Compute Engine.
  • Spot fleets and hibernation. Useful for big batches that can survive eviction, or a VM that must resume with its memory on supported sizes.

Where boat fits

Both clouds rent you a general VM, and everything an agent needs on top is yours to set up. If what you are really running is agents, boat gives each one a full VM that already has Docker, /dev/kvm, a desktop, HTTPS URLs, forks and coding agents you drive from outside. Stay on a cloud if you need GPUs, Windows, a static IPv4, replicated disks or regions outside the EU.

Coding agents driven from outside

On Compute Engine or Azure you write the code that installs, prompts and watches every agent, and keys from Secret Manager or Key Vault land inside the VM unless you run your own proxy. boat ships the agents, an events API and an optional credentials proxy.

Fork a running machine

Copying a live machine on either cloud means a machine image, a captured image or a disk snapshot, then a cold boot. Parked VMs keep billing disks. boat forks a running sandbox from its last 1-minute snapshot, and a stopped sandbox has no compute charge; saved snapshots above the included count and the AI proxy still bill.

/dev/kvm, desktop and HTTPS on every machine

Compute Engine E2 and Azure B-series or Arm sizes have no nested virtualization. On both clouds you install a desktop yourself, and HTTPS needs your own certificates or a load balancer. Every boat sandbox has /dev/kvm, a 60 fps desktop and up to 50 HTTPS URLs.

Use boat when what you are really running is agents and you want each one on a ready, full VM: coding agents with an API, an optional proxy for AI keys, /dev/kvm, a desktop, HTTPS URLs, minute snapshots and forks, without setting up that layer on a cloud. Compare it one to one: boat vs Google Compute Engine and boat vs Azure Virtual Machines.

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 Google Compute Engine cheaper than Azure Virtual Machines?

In most of the scenarios we priced, Azure comes out lower, often on Spot or burstable VMs. One 4 vCPU / 8 GB dev box running all month is $94 on Azure and $109 on Compute Engine. 250 parallel evals cost $173 against $263, and CI runners $335 against $359. boat costs $26, $200 and $86 for those three.

Which is faster, Compute Engine or Azure?

Neither is in the public benchmarks we use, so we cannot say, and speed depends on the CPU family you pick. In StarSling's run of 3 October 2026, boat did 28.06 V8 Web Tooling runs/s at 4 vCPU / 8 GB, on a Ryzen 9 9950X host. boat does not promise a CPU model.

Can Compute Engine and Azure VMs run Docker and nested VMs?

Both run Docker with root on any VM. On Compute Engine you enable nested virtualization per VM on Intel families or N4D; E2, Arm and other AMD VMs do not support it. Azure supports it on many Intel and AMD sizes, such as D, E and F series, but not on Arm or B-series. On boat, Docker and /dev/kvm are on every sandbox.

Do stopped VMs keep billing on Compute Engine and Azure?

A stopped Compute Engine VM ends CPU and memory charges, while disks and external IPs keep billing. On Azure a VM shut down from inside the OS stays allocated and keeps billing compute; only a deallocate stops it, and disks and static IPs still bill. A stopped boat sandbox has no compute charge and keeps its disk at least 14 days; saved snapshots above the included count and the AI proxy still bill.

Which has more regions, Compute Engine or Azure?

Azure lists 77 regions as available or coming soon, and Compute Engine runs in 43 regions and 130 zones; both include many in the EU. boat runs in Germany, Finland and France, you cannot pick a region, and snapshot copies can be stored outside the EU.

Is boat SOC 2 compliant?

SOC 2 is in progress; boat has no SOC 2 report today. Google Cloud publishes SOC 2 reports that cover Compute Engine, and Azure lists SOC 2 and HIPAA among its compliance offerings. Live status is at status.ascii.dev and boat's data retention policy at docs.boat.dev/data-retention.

Try boat

Install the CLI, then run boat new.

7-day free trial

More comparisons