Skip to content

Commit 219aa69

Browse files
authored
Merge pull request #172217 from DCtheGeek/dmc-arg-firstupdate
ARG: Update First to 1000
2 parents aee9596 + f1e5a33 commit 219aa69

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

articles/governance/resource-graph/concepts/guidance-for-throttled-requests.md

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Guidance for throttled requests
33
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
55
ms.topic: conceptual
66
ms.custom: devx-track-csharp
77
---
@@ -218,7 +218,7 @@ looking for. However, some Azure Resource Graph clients handle pagination differ
218218
var results = new List<object>();
219219
var queryRequest = new QueryRequest(
220220
subscriptions: new[] { mySubscriptionId },
221-
query: "Resources | project id, name, type | top 5000");
221+
query: "Resources | project id, name, type");
222222
var azureOperationResponse = await this.resourceGraphClient
223223
.ResourcesWithHttpMessagesAsync(queryRequest, header)
224224
.ConfigureAwait(false);
@@ -235,22 +235,6 @@ looking for. However, some Azure Resource Graph clients handle pagination differ
235235
}
236236
```
237237

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-
254238
## Still get throttled?
255239

256240
If you're getting throttled after exercising the above recommendations, contact the [Azure Resource

0 commit comments

Comments
 (0)