Symptoms
- Everything in one subscription goes down at once. Other subscriptions in the same tenant are fine.
- VMs show
Stopped (deallocated)and you didn't stop them. App Services and Functions return errors or stop serving. - Every write fails, including
az vm start, with errors such asReadOnlyDisabledSubscriptionor a message that the subscription is disabled and therefore read-only. - The portal shows a banner on the subscription about a spending limit, a past-due balance or a disabled state.
This is not a platform outage and not an RBAC problem. No amount of retrying or role changes will fix it. The fix is a billing or support action, and it often needs someone outside the on-call team.
1. Confirm scope and impact (2 minutes)
az account list --query "[].{name:name, id:id, state:state}" -o table
# Offer type and spending limit come from the ARM subscription resource
az rest --method get \
--url "https://management.azure.com/subscriptions/<subscription-id>?api-version=2022-12-01" \
--query "{state:state, offer:subscriptionPolicies.quotaId, spendingLimit:subscriptionPolicies.spendingLimit}"
state | Meaning | What still works |
|---|---|---|
Enabled | Normal | Everything |
Warned | Grace period before disable (often past due) | Running services; act now |
PastDue | Payment overdue | Services may continue for a period; act now |
Disabled | Services stopped, subscription read-only | Read and delete only |
Deleted | Permanently gone | Nothing; resources are being removed |
A spendingLimit of On on a credit-based offer (Visual Studio, Azure Sponsorship, free account, some MSDN offers) means the limit is the most likely cause.
Caution
A disabled subscription is deleted permanently after a retention period that depends on the offer. After deletion, the resources and data are gone. Treat a disabled production subscription as a data-loss risk with a deadline, not just downtime.
2. Find the cause
Check the activity log and the billing view. The activity log still works on a disabled subscription:
az monitor activity-log list -s <subscription-id> --offset 3d \
--query "[?contains(operationName.value, 'Microsoft.Subscription') || contains(category.value, 'Administrative')].{time:eventTimestamp, op:operationName.localizedValue, caller:caller, status:status.value}" -o table
In the portal, open Subscriptions > your subscription > Overview and Cost Management + Billing. The banner usually names the reason.
| Cause | Typical offer | Who can fix it |
|---|---|---|
| Spending limit reached | Credit-based offers | Account admin removes the spending limit |
| Credit or trial expired | Free account, sponsorship | Account admin upgrades or converts |
| Past-due invoice | Pay-As-You-Go, MCA | Billing owner pays the balance |
| Subscription canceled by someone | Any | Account admin or billing owner reactivates |
| Security or fraud block | Any | Microsoft support only |
| Ended EA enrollment or CSP relationship | EA, CSP | Enterprise admin or the CSP partner |
The caller column shows who ran each operation; look for a cancel operation. Someone canceling the wrong subscription in the portal is a common cause.
3. Reactivate
Do the matching action. None of these can be done with a normal Owner role on the subscription; you need the billing role for the account.
- Spending limit: Cost Management + Billing > the subscription > Remove spending limit. Choose the current billing period or indefinitely. A valid payment method is required.
- Past due: pay the outstanding balance. Reactivation can take up to 24 hours after the payment is processed, so start this first and in parallel open a support case.
- Canceled: Subscriptions > the subscription > Reactivate (offered for Pay-As-You-Go while still in the retention window).
- Security block, EA or CSP: open a support request from a working subscription in the same tenant with severity A (critical business impact), or call your partner. State that production is down.
Tip
If the subscription is disabled you may not be able to open a support case from it. Open the case from any other enabled subscription in the tenant and include the disabled subscription ID.
Check progress every few minutes:
az account show -s <subscription-id> --query state -o tsv
4. Restart workloads in order
Reactivation does not always restart what the platform stopped. VMs in particular stay deallocated. Start dependencies first: domain controllers and DNS, then databases, then application tiers, then front ends.
SUB=<subscription-id>
# List what is deallocated
az vm list -d -s $SUB --query "[?powerState=='VM deallocated'].{rg:resourceGroup, name:name}" -o table
# Start a tier in parallel
az vm start --ids $(az vm list -s $SUB -g rg-db --query "[].id" -o tsv) --no-wait
# Scale sets
az vmss start -g rg-web -n vmss-web --subscription $SUB
# App Service apps reported as Stopped
az webapp list -s $SUB --query "[?state=='Stopped'].{rg:resourceGroup, name:name}" -o table
az webapp start -g rg-web -n app-portal --subscription $SUB
Also check AKS clusters (az aks show --query powerState; use az aks start if they're stopped), Azure SQL serverless and anything with a stop/start schedule.
5. Verify recovery
stateisEnabledand a test write succeeds (for example, add and remove a tag on a resource group).- All production VMs are running and passing load balancer health probes.
- Storage accounts accept writes again (they are read-only while the subscription is disabled).
- Backups, scheduled jobs and alerts that missed runs are re-run or checked.
- Check for missing data with the owners of storage and databases. If anything was removed, use soft delete or backups to restore.
Communicate
Say what happened in plain terms: "The subscription hosting
Prevent it next time
- Never run production on credit-based offers with a spending limit. Move production to a Pay-As-You-Go, EA, MCA or CSP subscription.
- Set Cost Management budgets with alerts at 80%, 100% and forecast 100% for every subscription, sent to a shared mailbox and the on-call channel.
- Add the billing owner and a backup billing owner to your incident escalation list, with out-of-hours contact details.
- Alert on the activity log for subscription cancel operations and on Service Health billing notifications.
- Limit who has billing roles that can cancel subscriptions, and review them quarterly.
Get the weekly HubDatAI email
One email a week with everything new: posts, learning sessions and videos. Free, no spam, unsubscribe in one click. What you get