Reading a CSP Azure invoice export
Three gotchas that make a CSP Azure invoice export look wrong until you know about them.
Draft. The fix is known and correct, but we're still writing up the full step-by-step.
Gotcha 1: reservations show as $0
Reserved VMs appear as “Reservation-Base VM” rows with $0 cost. The reservation itself is billed separately, as its own line or invoice. Don’t conclude those VMs are free, and don’t count them twice.
Gotcha 2: it’s list price
The export is at list (retail) price. It doesn’t reflect partner discounts or the margin on the client’s actual bill. Use it for relative comparisons and to find waste, not to reconcile the invoice to the cent.
Gotcha 3: the BOM
The CSV starts with a UTF-8 byte-order mark. The first column header gets a hidden character and lookups by name fail. Read it with utf-8-sig in Python (see M365-26):
import csv
with open("invoice.csv", encoding="utf-8-sig", newline="") as f:
rows = list(csv.DictReader(f))
This guide is being expanded with full steps.
Seeing this in your environment?
We can check for this, and everything around it, as part of an audit.