Skip to content

Commit 1b1f47d

Browse files
Merge pull request #274348 from Farha-Bano/Doc_updates_May6
Doc updates
2 parents ca166e7 + d476ce3 commit 1b1f47d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

articles/quotas/how-to-guide-monitoring-alerting.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Create alerts for quotas
33
description: Learn how to create alerts for quotas
4-
ms.date: 11/29/2023
4+
ms.date: 05/09/2024
55
ms.topic: how-to
66
---
77

@@ -125,13 +125,17 @@ You must have at least the **Reader** role for the subscription to query this da
125125

126126
Query to view current usages, quota/limit, and usage percentage for a subscription, region, and VCM family:
127127

128+
>[!Note]
129+
>Currently, Compute is the only supported resource for NRT limit/quota data. Don't rely on the below queries to pull other resource types such as Disks and/or Galleries. You can get the latest snapshot for the said resources with the current [usages API](/rest/api/compute/usage/list?tabs=HTTP).
130+
128131
```kusto
129132
QuotaResources
130133
| where type =~ "microsoft.compute/locations/usages"
131134
| where location =~ "northeurope" or location =~ "westeurope"
132135
| where subscriptionId in~ ("<Subscription1>","<Subscription2>")
133136
| mv-expand json = properties.value limit 400
134137
| extend usagevCPUs = json.currentValue, QuotaLimit = json['limit'], quotaName = tostring(json['name'].localizedValue)
138+
|where quotaName !contains "Disks" and quotaName !contains "Disk" and quotaName !contains "gallery" and quotaName !contains "Snapshots"
135139
|where usagevCPUs > 0
136140
|extend usagePercent = toint(usagevCPUs)*100 / toint(QuotaLimit)
137141
|project subscriptionId,quotaName,usagevCPUs,QuotaLimit,usagePercent,location,json

0 commit comments

Comments
 (0)