Throttling and quotas: HTTP 429 and snapshot limits
-
Phase 0: Before you start
-
Phase 1: The foundation
-
Phase 2: Day-to-day operations
-
Phase 3: Enterprise architecture
-
Phase 4: Troubleshooting step by step
-
Phase 5: Final project and career
Azure throttling 429 errors (“Too Many Requests”) mean you’ve asked an Azure service for more than it will accept in a short time. Every Azure API is protected by limits, and that includes Resource Manager, Resource Graph, Key Vault, Storage and the disk snapshot service. It’s scripts, backup software and monitoring tools that run into them, far more often than people clicking in the portal.
Throttling isn’t an outage. The service is asking you to slow down, and usually tells you how long to wait. If you retry straight away and harder, things get worse, so back off and spread the work out instead.
In the lab you’ll read the rate-limit headers Azure already sends, take incremental snapshots until you hit the per-disk limit, and then cause real 429s from Resource Graph and fix them with a retry function that respects the wait time.
| Time | You need | Cost | By the end you can |
|---|---|---|---|
| About 45 minutes | A free account, the CLI and PowerShell | Under 1 US cent: a 4 GiB disk and a few snapshots for an hour | Read rate-limit headers, respect snapshot limits, and write retry logic that backs off on 429 |
What it is, in one line
A 429 means an Azure API is limiting how fast you can call it, and the fix is to slow down and retry after the time it gives you.
In Simple Words
The ATM queue
Think of an ATM that lets each card make only a few withdrawals in a short time. Try a sixth time inside one minute and the screen says, “Please wait 60 seconds.” The bank isn’t broken, it’s protecting itself and everyone else in the queue. If you keep pushing the card in every second, it may lock you out for longer, but if you wait the 60 seconds, the next withdrawal goes through. A 429 is that screen, and the Retry-After or quota-reset header is the “wait 60 seconds” part that a good script reads.
Engineer's View
Limits you meet in daily operations
- Azure Resource Manager: requests are limited per subscription and principal, using a token bucket per region. For subscription reads the bucket holds about 250 requests and refills at about 25 per second, while writes and deletes get smaller buckets. Each response carries x-ms-ratelimit-remaining-* headers.
- Resource Graph: by default you get about 15 queries per 5 seconds per user, and the x-ms-user-quota-remaining and x-ms-user-quota-resets-after headers show where you stand.
- Incremental disk snapshots: up to 7 per disk every five minutes, and up to 500 per disk in total at any time.
- Service limits: Key Vault, Storage and other services have their own limits per vault or per account, and they answer with 429 or 503 ServerBusy.
- Retry-After: a lot of 429 responses say how many seconds to wait. The SDKs and the Azure CLI already retry with backoff, but your own loops and parallel jobs usually don’t.
- Backup tools: Commvault, Rubrik and similar products snapshot lots of disks through these same APIs, so their concurrency settings decide whether they run into the limits.
How it works, step by step
Here’s what happens when a script fires 30 Resource Graph queries in a few seconds:
- Each query is checked against the caller’s quota window, which is about 15 per 5 seconds.
- The first queries go through, and in each response you can see x-ms-user-quota-remaining dropping.
- Once the quota is used up, Resource Graph sends back HTTP 429 with x-ms-user-quota-resets-after, for example 00:00:03.
- A naive script counts these as failures and carries on, or retries at once and collects more 429s.
- A good script waits for the reset time and then continues, so in the end every query succeeds.
Every Azure API works the same way, so watch the remaining-quota headers, back off when you get a 429, and add jitter so that lots of workers don’t all retry at the same moment.
Before you run any command, double-check it
Read every command twice before you press Enter. Check the target: the system or account, the IDs, the names and the sizes. These commands are for learning and were tested in our lab, not on your system. At work, run the read-only list commands first, follow your change process, make sure a backup exists, and ask a second person to check anything that changes or deletes data. You run them at your own risk.
For long-running jobs the proper fix is usually in the design: fewer and bigger queries, caching, schedules that spread the work out, and concurrency limits in the tools.
Control concurrency in your own scripts
Most 429s from home-made automation come from parallel loops that have no ceiling. PowerShell 7 makes parallel work easy and makes the ceiling easy to set too. The example below runs a command for many VMs but never more than four at a time, with a short random pause so the workers don’t all start together:
$vms = az vm list --query "[].{rg:resourceGroup, name:name}" -o json | ConvertFrom-Json
$vms | ForEach-Object -Parallel {
Start-Sleep -Milliseconds (Get-Random -Minimum 200 -Maximum 1500)
az vm get-instance-view --resource-group $_.rg --name $_.name --query "instanceView.statuses[1].displayStatus" -o tsv
} -ThrottleLimit 4That random sleep is the jitter. Without it, every retry and every new worker hits the API in the same second, and that’s how a small burst becomes a long wave of throttling. Treat four at a time as a starting point: raise it slowly while you watch the remaining-quota headers, and bring it down as soon as 429s show up.
Read Azure limits and hit two of them on purpose
1Read the limits Azure already tells you
Run a normal command with debug output and pick out the rate-limit headers:
az group list --debug 2>&1 | Select-String 'x-ms-ratelimit-remaining' | Select-Object -First 3You should see something like this (numbers vary):
DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-reads': '249'
DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-global-reads': '15999'
DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-tenant-reads': '249'Every Resource Manager response carries these headers, so a script that logs them can see throttling coming well before it happens.
2A disk and its first incremental snapshot
Create a small disk and take one incremental snapshot of it:
az group create --name rg-saat-l68 --location centralindia --tags course=saatvedha-azure lesson=68 -o none
az disk create --resource-group rg-saat-l68 --name disk-l68 --size-gb 4 --sku StandardSSD_LRS -o none
$diskId = az disk show --resource-group rg-saat-l68 --name disk-l68 --query id -o tsv
az snapshot create --resource-group rg-saat-l68 --name snap-l68-0 --source $diskId --incremental true --query "{name:name, incremental:incremental, state:provisioningState}" -o tableYou should see something like this:
Name Incremental State
---------- ------------- ---------
snap-l68-0 True Succeeded3Save the two scripts
Save this as C:\azure-lab\l68\Test-GraphBurst.ps1:
# SaatVedha Azure Lesson 68: send 30 Resource Graph queries as fast as possible
$token = az account get-access-token --resource https://management.azure.com --query accessToken -o tsv
$headers = @{ Authorization = "Bearer $token"; 'Content-Type' = 'application/json' }
$url = 'https://management.azure.com/providers/Microsoft.ResourceGraph/resources?api-version=2022-10-01'
$body = '{"query":"Resources | summarize count()"}'
$ok = 0; $throttled = 0
foreach ($i in 1..30) {
try { Invoke-RestMethod -Method Post -Uri $url -Headers $headers -Body $body | Out-Null; $ok++ }
catch { if ($_.Exception.Response.StatusCode.value__ -eq 429) { $throttled++ } else { throw } }
}
"OK: $ok Throttled (429): $throttled"And this as C:\azure-lab\l68\Invoke-GraphWithRetry.ps1:
# SaatVedha Azure Lesson 68: Resource Graph query that backs off on HTTP 429
function Invoke-GraphWithRetry {
param([Parameter(Mandatory)][string]$Query, [int]$MaxTries = 6)
$token = az account get-access-token --resource https://management.azure.com --query accessToken -o tsv
$headers = @{ Authorization = "Bearer $token"; 'Content-Type' = 'application/json' }
$url = 'https://management.azure.com/providers/Microsoft.ResourceGraph/resources?api-version=2022-10-01'
$body = @{ query = $Query } | ConvertTo-Json
for ($try = 1; $try -le $MaxTries; $try++) {
try { return Invoke-RestMethod -Method Post -Uri $url -Headers $headers -Body $body }
catch {
if ($_.Exception.Response.StatusCode.value__ -ne 429) { throw }
$wait = [math]::Min(30, [math]::Pow(2, $try))
$reset = $_.Exception.Response.Headers['x-ms-user-quota-resets-after']
if ($reset) { $wait = [math]::Ceiling(([timespan]$reset).TotalSeconds) + 1 }
Write-Host "429 received, waiting $wait s (try $try of $MaxTries)"
Start-Sleep -Seconds $wait
}
}
throw "Still throttled after $MaxTries tries"
}

✅ Checkpoint: You can see ARM’s remaining-request headers, you have a disk with one incremental snapshot, and both scripts are saved.
Break It, Then Fix It
Keep the disk and snapshot, you’ll need them for break 1.
1Break it: a snapshot loop that runs too fast
Imagine a home-made backup script that snapshots the same disk every few seconds. Try eight in a row:
foreach ($i in 1..8) {
$r = az snapshot create --resource-group rg-saat-l68 --name "snap-l68-$i" --source $diskId --incremental true --query provisioningState -o tsv 2>&1
"$i : $r"
}The first few should succeed and the last one or two fail, with something like this:
1 : Succeeded
2 : Succeeded
3 : Succeeded
4 : Succeeded
5 : Succeeded
6 : Succeeded
7 : ERROR: ... incremental snapshots ... limit ...The disk already had one snapshot from the lab and the loop added six more, which is the limit of seven incremental snapshots per disk every five minutes. The exact error text can vary, but it will name the snapshot limit, and there’s nothing wrong with the disk.
To fix it, wait for the five-minute window to pass, and design the schedule so it never needs more than seven snapshots per disk in five minutes:
Start-Sleep -Seconds 300
az snapshot create --resource-group rg-saat-l68 --name snap-l68-retry --source $diskId --incremental true --query provisioningState -o tsv
az snapshot list --resource-group rg-saat-l68 --query "length([?incremental])"You should see Succeeded, and the count of incremental snapshots.
Real backup tools take one snapshot per disk per job, so you run into this limit when several tools, or jobs that overlap, snapshot the same disk at the same time. Make sure only one product owns each disk’s schedule.
2Break it: a report script that gets throttled
Here a monitoring script sends 30 Resource Graph queries in one burst:
C:\azure-lab\l68\Test-GraphBurst.ps1You should see something like this:
OK: 15 Throttled (429): 15Half the queries failed with 429, and because the script treats them as failures, the report would be missing data. Retrying straight away would only make it worse, since the quota window hasn’t reset yet.
To fix it, use the retry function, which waits for the reset time the service gives back:
. C:\azure-lab\l68\Invoke-GraphWithRetry.ps1
$ok = 0
foreach ($i in 1..30) { Invoke-GraphWithRetry -Query 'Resources | summarize count()' | Out-Null; $ok++ }
"OK: $ok"You should see something like this:
429 received, waiting 4 s (try 1 of 6)
429 received, waiting 3 s (try 1 of 6)
OK: 30Every query succeeded, because the script paused when it was told to. In a real report you’d also send fewer queries, for example one query that returns all subscriptions instead of one per subscription.

3Clean up
Delete the lab resource group, which takes the disk and all its snapshots with it:
az group delete --name rg-saat-l68 --yes✅ Checkpoint: You hit two real Azure limits on purpose and fixed both by slowing down the right way.
This happened at work
The backup window that kept failing at 1 am
This one was at a hospital that protected 300 VMs with a third-party backup product built on Azure disk snapshots. The vendor’s default setting allowed 100 concurrent jobs. Every night at 1 am about 20 jobs failed with throttling errors, never the same VMs, and the retries at 3 am mostly worked.
When the team looked closely, all the jobs were starting in the same minute, under one service principal, in one subscription. They were hammering Resource Manager with snapshot, disk and VM calls all at once, using up the write and read buckets and getting 429s back. The vendor’s retry waited only 10 seconds, so it ran into the same wall again.
What they changed: they brought concurrency down to 25 jobs, spread the start times over two hours by protection group, set a longer backoff in the product settings, and built a workbook that charts 429s from the Activity log and the backup product’s logs. Failed jobs went down to zero, and the whole window finished earlier than it used to.
Common mistakes and troubleshooting
| Mistake | What you see | What to do |
|---|---|---|
| Retrying immediately on 429 | More 429s, longer outage | Wait for Retry-After or the reset header. |
| Many parallel workers, one identity | Throttling at peak times | Limit concurrency; spread schedules. |
| Several tools snapshotting one disk | Snapshot limit errors | One owner per disk schedule. |
| One query per subscription | Graph quota used fast | Query many subscriptions in one call. |
| Ignoring rate-limit headers | Throttling comes as a surprise | Log the remaining-quota headers. |
| Treating 429 as an outage | Escalations, rollbacks | It’s a pacing signal, not a failure of Azure. |
Interview questions
Click a question to open it. Each one is phrased the way an interviewer would ask it, and under it you’ll find why they ask and one way you could answer in your own words.
Fresher level
1. What does HTTP 429 mean?
Why they ask this: The basic concept.
How you might answer: It’s Too Many Requests. The service is limiting how fast you call it, so you should wait before you retry.
2. What is Retry-After?
Why they ask this: Basic protocol.
How you might answer: It’s a response header telling you how many seconds to wait before the next request.
3. How many incremental snapshots can one disk have?
Why they ask this: A useful limit.
How you might answer: Up to 500 at any one time, and you can add up to seven new ones every five minutes.
2–5 years experience
4. A backup tool reports throttling every night. What do you check?
Why they ask this: A real troubleshooting path.
How you might answer: I’d look at concurrency and start times first, then the identity it uses, ARM 429s in the logs, snapshot limits per disk, whether other tools touch the same disks, and the tool’s retry and backoff settings.
5. How do you write retry logic for Azure APIs?
Why they ask this: Engineering practice.
How you might answer: I retry only on throttling and transient codes, honour Retry-After or the reset headers, use exponential backoff with jitter, cap the number of attempts, and log every retry.
6. How do you avoid Resource Graph throttling in reports?
Why they ask this: Practical depth.
How you might answer: Send fewer and broader queries, page with skip tokens, cache the results, space queries out over time, and keep an eye on x-ms-user-quota-remaining.
Senior level
7. How would you design automation that runs across 200 subscriptions?
Why they ask this: Scale thinking.
How you might answer: I’d batch the reads through Resource Graph and queue the writes with controlled concurrency. Where it makes sense I’d use more than one identity, respect the regional buckets, and track the 429 rate as a health metric.
8. What is the difference between a quota and a throttling limit?
Why they ask this: Concepts.
How you might answer: A quota caps how much you can have, like cores or snapshots per disk, while a throttling limit caps how fast you can ask. For a quota you need an increase or a design change, and for throttling you need pacing.
9. How do you handle limits in multi-tool backup estates?
Why they ask this: Senior operations.
How you might answer: We kept one tool per workload, staggered the schedules, agreed concurrency with the vendors, monitored 429s and snapshot errors, and tested at full scale before go-live.
Quick quiz
Q1. 429 means?
- Not found
- Too many requests
- Unauthorized
- Server down
Show answer
B — The service is limiting your rate.
Q2. Best response to a 429?
- Retry at once
- Wait for Retry-After, then retry
- Delete resources
- Open a support case
Show answer
B — Back off for the time given.
Q3. Incremental snapshots per disk every five minutes?
- 3
- 7
- 50
- 500
Show answer
B — Up to seven per five minutes.
Q4. Which header shows Resource Graph quota left?
- x-ms-request-id
- x-ms-user-quota-remaining
- Retry-After
- ETag
Show answer
B — It counts down within the window.
Q5. Quota vs throttling?
- Same thing
- Quota is how much; throttling is how fast
- Throttling is cost
- Quota is speed
Show answer
B — They need different fixes.
Quick recap
By now you can spot throttling, read the signals Azure sends back, and pace your scripts and tools so they finish reliably.
- 429 means slow down, not outage.
- Azure sends remaining-quota headers on every response.
- Back off for Retry-After or the reset time, with jitter.
- Disks allow seven incremental snapshots per five minutes.
- Limit concurrency and spread schedules in backup tools.
Next lesson
Lesson 69: Azure Backup failures → Next you’ll fix Azure Backup failures, from VM agent problems and snapshot timeouts to restore errors.
Further reading: Azure throttling 429
Want to go deeper into Azure throttling 429? See Microsoft’s Understand how Azure Resource Manager throttles requests and Guidance for throttled requests in Azure Resource Graph. You can also see the full plan for this course on the Azure Cloud Administration course page.
