Azure credit balance is portal-only; month-to-date spend is CLI-friendly
Checking Azure cost or credit consumption on a personal Microsoft Customer Agreement subscription
For Microsoft Customer Agreement (MCA) billing accounts — the structure personal Azure subscriptions use after the 2019 transition — every API I tried to fetch credit balance returned errors: availableBalance returns Bad Request, /credits and /balances at the subscription scope return Not Found, the supported api-versions list is misleading. The credit balance for things like Azure startup credits is genuinely portal-only (Cost Management + Billing → Billing scopes → <name> → Credits + Commitments). However, the practically-useful query for 'am I burning through my credit' is az consumption budget list — if you create a consumption budget (free) at deploy time, this returns currentSpend.amount per budget scope, giving month-to-date burn directly. That covers the actual decision question (is spend rate reasonable vs credit-remaining) without needing the balance number itself.
For Azure cost monitoring on personal/MCA subscriptions, skip the availableBalance and /credits REST endpoints — they are portal-only. Create a consumption budget at deploy time and poll az consumption budget list for currentSpend.amount to track burn via CLI.