Status: unverified draft. Prices were read from Microsoft's public retail price API and documentation on 2026-10-16 (sources in the phase 0 evidence; the VM, public IP, disk and NAT figures were queried again the same day) and will change. Nothing was applied in a real subscription, so every figure is a list price, not an invoice. Not reviewed by anyone who runs Azure: corrections are welcome on issue #22. Read How money works in the cloud first, and compare the AWS cost lesson.
Unfamiliar word or acronym? The Glossary defines it.
The most common way a learner is surprised by a cloud bill is not an attack or a mistake in the code. It is a charge for something they did not know was billed. This page names the charges that matter for a project like this one, shows the arithmetic, and ends with how to prove the bill is back to zero.
All figures: East US, pay-as-you-go list prices in US dollars for non-Windows machines, 730 hours in a month, as of 2026-10-16. No other region was priced.
The cheapest design on Azure gives each connector a Standard public IP and opens no inbound rule to the internet (see the same four pieces).
| Item | Rate | Two of them, per month |
|---|---|---|
Small AMD burstable VM, Standard_B2ats_v2 (2 vCPU, 1 GiB: below Twingate's 2 GB guidance, so an experiment) |
$0.0094 per hour | $13.72 |
| Standard static public IPv4 address | $0.005 per hour | $7.30 |
OS disk, 32 GiB Standard SSD (E4, locally redundant; size and type assumed, UNVERIFIED) |
$2.40 per month | $4.80 |
| Total, fixed | about $25.82 |
Variants priced the same way, all with two addresses and two 32 GiB Standard SSD disks:
| VM size | Memory | Per month, two VMs | Total fixed | Comment |
|---|---|---|---|---|
Standard_B2pts_v2 (Arm64) |
1 GiB | $12.26 | about $24.36 | Cheapest current size. Twingate publishes an arm64 package; untested on Azure. |
Standard_B2ats_v2 (AMD) |
1 GiB | $13.72 | about $25.82 | The row above. |
Standard_B1ms |
2 GiB | $30.22 | about $42.32 | Meets Twingate's guidance, but this series is End of Life (Microsoft, 2026-09-27). |
Standard_B2pls_v2 (Arm64) |
4 GiB | $49.06 | about $61.16 | Current generation with more memory. |
DigitalOcean's version of this project is $12; the AWS version in this wiki is about $20.84 at the same 1 GiB.
Three things in these tables:
The disk row has one more uncertainty. The price API also lists, for the same disk size, a "disk mount" meter at $0.26 a month and an operations meter at $0.002 per 10,000 operations. This wiki could not confirm whether either applies to an ordinary OS disk. If the mount meter applies, two disks add about $0.52. UNVERIFIED.
This is a fixed cost: what the stack costs just by existing. It does not include data leaving Azure, logging, or anything created by hand. See "what the number does not cover" below.
The textbook design for a machine with no inbound access puts it in a private subnet and gives the subnet a NAT gateway so it can still reach out. Microsoft recommends the NAT gateway as the explicit outbound method for most cases, and since the default has changed, you will meet it in a lot of tutorials. On Azure that gateway costs $0.045 an hour, about $32.85 a month, plus $0.045 per gigabyte processed, plus its own Standard public IP ($0.005 an hour, $3.65 a month). That is at least about $36.50 a month before a byte of traffic.
Replace the two per-machine addresses with one gateway and the AMD stack goes from about $25.82 to about $55.02 (13.72 + 4.80 + 32.85 + 3.65), or about $53.56 on Arm. The gateway adds about $29.20 a month over the two addresses it replaces, plus the per-gigabyte charge. That is more than this project's whole $30 shared budget and more than four times the entire DigitalOcean stack. The Standard and StandardV2 gateway are the same price in the price API.
Two honest caveats on that number:
On Azure, as on AWS, a NAT gateway does not beat per-machine addresses at this size. The comparison table in Why the clouds differ shows GCP flipping that at low traffic. Read the cost shape for the cloud you are on, not the lesson from the last one.
So this project would not build the textbook design on Azure. It would use a public IP on each interface and an NSG with no inbound rule open to the internet, and an explicit setting that the subnet does not rely on default outbound access. It is the same trust model as the DigitalOcean firewall, and it is honest to name the trade-off: a machine with an address and a good rule set is not the same as a machine with no address.
Where else charges appear:
scripts/cost_check.py, described in docs/cost.md, read on main 2026-10-16) does not do this for Azure today. Its plan costing and its explicit NAT rejection with fixtures exist for AWS only and are keyed to aws_nat_gateway; its Azure price lists are empty. What does happen: the source check is an allowlist, so an azurerm_ resource type that is not approved is refused by name. That is not Azure pricing and not a NAT-specific check. A future Azure build would need its own price table, its costed resource types, an azurerm_nat_gateway rejection and plan costing, none of which exist yet.This project's budget is $30 a month for everything, not $30 per cloud. DigitalOcean stage 1 is $12; the Azure stack above is about $25.82. Together that is about $37.82, over the line.
That does not make Azure impossible; it changes how you use it:
| Not in the $25.82 | Why it matters |
|---|---|
| Data leaving Azure | Internet-bound traffic is metered. Egress was not priced on this page, so there is no figure to quote. A connector relaying heavy traffic can add up. |
| NAT and load balancer processing | Per-gigabyte charges apply if you use either. |
| Logging and monitoring | Logs, metrics and any managed security service bill by volume. |
| Snapshots, extra disks, forgotten resources | Billed until deleted. |
| Anything created outside the code | Not in the repository, so not in the cost gate. |
| Taxes and currency conversion | Real invoices. |
And, plainly: no Azure budget is a hard cap on your spending. A budget notifies. Microsoft's documentation says "resources aren't affected, and your consumption isn't stopped"; cost data arrives 8 to 24 hours late and budgets are evaluated every 24 hours. A budget can call an action group that runs automation, so a stop can be built, but it is not built in. The one built-in limit is the spending limit on credit-type subscriptions such as the free account: when it is reached, VMs are stopped and deallocated. It does not exist on pay-as-you-go, upgrading removes it, and some Marketplace charges are billed regardless. AWS and GCP have the same basic limitation in different forms. A budget is an alarm, not a brake.
A new Azure customer gets a $200 credit for 30 days and 12 months of 750 hours each of three burstable VM sizes (B1s, B2pts v2, B2ats v2), per the free account page read 2026-10-16. To keep the 12-month services you must move to pay-as-you-go within the 30 days. Some arithmetic you can check: an always-on VM is about 730 hours a month, so one machine of a given size fits inside 750 hours, but two always-on machines of one size need about 1,460, which is more than one allowance if the hours are pooled per size (the page does not say how they pool). UNVERIFIED: whether the free hours cover the public IP and the disk. Credits and free hours can soften a learning bill. They also create a cliff, and they are no reason to skip the budget.
The same discipline as the DigitalOcean teardown, with the Azure names:
B1ms brings the stack to about $42.32, over the $30 ceiling on its own; a current 4 GiB size brings it to about $61.16. Neither settles whether the 1 GiB machine would have been enough, which is untested, nor whether another family has a cheaper 2 GiB size, which was not priced.aws_nat_gateway), and the Azure price lists are empty. The source allowlist would refuse an unapproved azurerm_ resource type, including a NAT gateway, but only because it is unapproved, not because it was priced. Everything else here (data transfer, logging, a forgotten disk, anything created outside the code) would pass silently on any cloud, since a fixed-cost gate prices only what the code declares. A future Azure build would need an Azure price table, costed types and plan checks.Next: GCP account preparation, the same three lessons for GCP (unverified drafts). Back to Why the clouds differ or the Reading order.