1
1
---
2
2
title : Guidance for throttled requests
3
3
description : Learn to group, stagger, paginate, and query in parallel to avoid requests being throttled by Azure Resource Graph.
4
- ms.date : 08/17 /2021
4
+ ms.date : 09/13 /2021
5
5
ms.topic : conceptual
6
6
ms.custom : devx-track-csharp
7
7
---
@@ -218,7 +218,7 @@ looking for. However, some Azure Resource Graph clients handle pagination differ
218
218
var results = new List <object >();
219
219
var queryRequest = new QueryRequest (
220
220
subscriptions : new [] { mySubscriptionId },
221
- query : " Resources | project id, name, type | top 5000 " );
221
+ query : " Resources | project id, name, type" );
222
222
var azureOperationResponse = await this .resourceGraphClient
223
223
.ResourcesWithHttpMessagesAsync (queryRequest , header )
224
224
.ConfigureAwait (false );
@@ -235,22 +235,6 @@ looking for. However, some Azure Resource Graph clients handle pagination differ
235
235
}
236
236
```
237
237
238
- - Azure CLI / Azure PowerShell
239
-
240
- When using either Azure CLI or Azure PowerShell, queries to Azure Resource Graph are automatically
241
- paginated to fetch at most 5,000 entries. The query results return a combined list of entries from
242
- all paginated calls. In this case, depending on the number of entries in the query result, a
243
- single paginated query may consume more than one query quota. For example, in the following
244
- examples, a single run of the query may consume up to five query quota:
245
-
246
- ``` azurecli-interactive
247
- az graph query -q 'Resources | project id, name, type' --first 5000
248
- ```
249
-
250
- ``` azurepowershell-interactive
251
- Search-AzGraph -Query 'Resources | project id, name, type' -First 5000
252
- ```
253
-
254
238
## Still get throttled?
255
239
256
240
If you're getting throttled after exercising the above recommendations, contact the [ Azure Resource
0 commit comments