From 5f7b13c7870ffb66eb3ec994efac4fa9e4e92d19 Mon Sep 17 00:00:00 2001 From: Scott Addie Date: Fri, 23 Jul 2021 17:19:25 -0500 Subject: [PATCH] Add instructions for locating the resource ID --- sdk/monitor/azure-monitor-query/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sdk/monitor/azure-monitor-query/README.md b/sdk/monitor/azure-monitor-query/README.md index f57d20ab4c82..a044996e4868 100644 --- a/sdk/monitor/azure-monitor-query/README.md +++ b/sdk/monitor/azure-monitor-query/README.md @@ -283,6 +283,12 @@ MetricsQueryAsyncClient metricsQueryAsyncClient = new MetricsQueryClientBuilder( ### Get metrics +A resource ID, as denoted by the `{resource-id}` placeholder in the sample below, is required to query metrics. To find the resource ID: + +1. Navigate to your resource's page in the Azure portal. +2. From the **Overview** blade, select the **JSON View** link. +3. In the resulting JSON, copy the value of the `id` property. + ```java Response metricsResponse = metricsQueryClient