Skip to content

Commit cc20cb4

Browse files
authored
Add instructions for locating the resource ID (Azure#23164)
1 parent f5bb2d4 commit cc20cb4

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
@@ -283,6 +283,12 @@ MetricsQueryAsyncClient metricsQueryAsyncClient = new MetricsQueryClientBuilder(
283283

284284
### Get metrics
285285

286+
A resource ID, as denoted by the `{resource-id}` placeholder in the sample below, is required to query metrics. To find the resource ID:
287+
288+
1. Navigate to your resource's page in the Azure portal.
289+
2. From the **Overview** blade, select the **JSON View** link.
290+
3. In the resulting JSON, copy the value of the `id` property.
291+
286292
<!-- embedme ./src/samples/java/com/azure/monitor/query/ReadmeSamples.java#L161-L188 -->
287293
```java
288294
Response<MetricsQueryResult> metricsResponse = metricsQueryClient

0 commit comments

Comments
 (0)