Skip to content

Commit 663d3e9

Browse files
authored
Add instructions for locating the resource ID (Azure#19929)
1 parent 8912ff8 commit 663d3e9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sdk/monitor/azure-monitor-query/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,12 @@ This example shows getting the metrics for an EventGrid subscription. The resour
227227

228228
**Note** The resource URI must be that of the resource for which metrics are being queried. It's normally of the format, `/subscriptions/<id>/resourceGroups/<rg-name>/providers/<source>/topics/<resource-name>`.
229229

230+
To find the resource URI:
231+
232+
1. Navigate to your resource's page in the Azure portal.
233+
2. From the **Overview** blade, select the **JSON View** link.
234+
3. In the resulting JSON, copy the value of the `id` property.
235+
230236
```Python
231237
import os
232238
from datetime import timedelta

0 commit comments

Comments
 (0)