Back to Blog
FinOps
7 min read

The Ghost in the Billing Meter

FinOpsAzureSpot VMsCloud CostBillingMCPP

How Azure charged us on-demand rates for Spot VMs for four months on an MCPP sponsorship subscription, and exactly how we proved it.

Scope. This happened on one MCPP Azure Sponsorship subscription, billed through the Microsoft sponsorship portal and its raw usage export. We have only ever seen it there. It is not a claim that Azure billing is broken in general, and no customer of ours was affected. We found it on our own bill.

Everything in the portal looked fine. The VMs were built as Spot and showed as Spot.

Because this was a sponsorship subscription, the normal Cost Management blade was not available. The only real view was the raw usage export. I caught the problem because I spend my days hunting anomalies in cloud cost data, and when you read billing exports daily the tiny cracks jump out.

One machine billed two ways in a single day

The clue that made this undeniable was a single virtual machine that billed two different ways on the same day.

We created it as Spot. Part way through the day we resized it in place from an E64 to a D64, and a resize cannot turn a Spot machine into an on-demand one. The priority stayed Spot throughout. Yet the hours split across two meters.

Same VM, same day, two meters.

  • E64 hours, before the resize landed on the on-demand meter.
  • D64 hours, after the resize landed on the Spot meter.

That one pair ruled out everything on our side. The deployment did not change across the resize. The only thing that changed was the size, and with it the meter the billing pipeline chose. On the affected hours that worked out to roughly five times what the Spot rate should have been. The fault lived in the meter mapping, not in how we asked for the machine.

It was per size and per region, and it went both ways

Once we looked across the whole export, the pattern refused to follow any simple rule. One size in a family billed correctly while its sibling billed wrong. The same size billed correctly in one region and on the on-demand meter in another, in the same week, from the same scripts. And the pipeline erred in both directions. A couple of M-series Spot runs billed at nothing at all.

The honest conclusion was that billing correctness for a given size and region is unknown until you have seen it land on a real bill.

SizeSpot meter (correct)On-demand meter (defect)
E64ds_v6Italy North, 8 OctSweden Central, 8 to 11 Oct
E96ds_v6Italy North, 8 OctSweden Central, 8 to 11 Oct
E64ads_v6Italy North, 11 OctSweden Central, 8 to 11 Oct
D64ads_v6Sweden Central, 8 OctItaly North, 11 Oct
E128ads_v7Sweden Central, 11 OctUS East, 4 Jul and 13 Sep
E160ads_v7North Europe, 8 OctUS East, 4 Jul and 13 Sep
E16ps_v6Sweden Central, Windows, 30 JulSweden Central, Linux, 21 Jul to 16 Sep

The support slog

Raising it was easy. Getting it believed was not.

  1. July. Raised a ticket. Support did not believe their own meter was wrong, and the case bounced around first line for weeks.
  2. Early August. Engineering asked for the unedited usage export. Sent the next day, with a screen recording of a box quoted at the Spot rate at create time and then billed at the on-demand rate.
  3. 21 August. Escalated with a manager copied. Then seven weeks with no substantive reply.
  4. 14 September. Broke the deadlock with three things in one message: the financial impact, a live reproduction of a fresh Spot VM mis-billed that morning, and a deadline. Plus the honest note that the subscription was up for renewal and I would not renew over an unanswered billing defect. I also opened a second record through Partner Center, who own renewals.
  5. 14 September, same evening. Microsoft confirmed the sample VMs were Spot and that on-demand meters had been emitted, and escalated the cause to product engineering.
  6. Through October. When engineering asked for the full report, we handed over a row by row audit of the raw export. Engineering then corrected the meter mapping and credited the account.

The easy explanation we had to out-argue

Support pushed back once more, blaming our max price setting of -1. We quoted their own documentation. A max price of -1 caps your rate at the on-demand price, it does not switch you onto the on-demand meter. It bills on the Spot meter at the Spot price. On top of that, two of the machines were too large to have run as on-demand at all under the subscription quota, so they could only have been admitted as Spot.

The audit that settled it

We did not argue from estimates. We wrote a small audit that reads the raw usage export and, for every virtual machine row, looks up the public Spot price for that exact size, region and date from the Azure Retail Prices API, then compares it against what we were charged. The meter name is the source of truth. A correct Spot row carries a Low Priority tag. Its absence, at the exact on-demand price, is the defect. Run across months of usage, that turned a hunch into a row by row account of which sizes and regions were affected and when, which is exactly what engineering needed to fix the mapping.

What we changed in our own appliance

A billing quirk you cannot see is the dangerous kind, so we closed the gap in our own product first.

  • After every deploy, the appliance reads the instance priority straight from the Azure control plane and prints a loud warning if it is not Spot.
  • We read the meter name on the next day's usage export as a standing ritual, rather than trusting the price shown in the portal.
  • We stopped hard coding any Spot price into our own tooling, and quote live rates with a clear caveat that the billed rate depends on the subscription's meters.
  • We keep a per size record, so a size is only treated as cost approved once we have watched one real bill land on the correct meter.

How to check your own bill in a minute

If you run Spot on a sponsorship subscription, outside Cost Management, the test is quick. Pull your usage export and read the meter name on each virtual machine row. A correctly billed Spot row has a meter name that contains the word Spot or the words Low Priority. If a row you deployed as Spot shows the plain size name with no such tag, and the rate matches the on-demand price, that is the pattern we saw. The portal Spot price will not warn you, because the portal shows the market price, not the meter you were actually billed on.

Fair to Microsoft

This is one quirk, on one sponsorship subscription, and it is now fixed. Once the evidence was in front of the right people, engineering corrected the meter mapping and the credit was handled, rather than closing it as expected behaviour. The hard part was never the fix. It was getting a billing defect believed, and what moved it in the end was the financial impact, a live reproduction, a deadline, and a renewal on the line, delivered together after months of quietly building an evidence trail.

How mature is your cloud cost management?

Take our free 2-minute FinOps maturity test and get a personalised improvement roadmap.