We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5bb2d4 commit cc20cb4Copy full SHA for cc20cb4
sdk/monitor/azure-monitor-query/README.md
@@ -283,6 +283,12 @@ MetricsQueryAsyncClient metricsQueryAsyncClient = new MetricsQueryClientBuilder(
283
284
### Get metrics
285
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
292
<!-- embedme ./src/samples/java/com/azure/monitor/query/ReadmeSamples.java#L161-L188 -->
293
```java
294
Response<MetricsQueryResult> metricsResponse = metricsQueryClient
0 commit comments