You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/visualize/workbooks-resources.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,10 @@ Resource parameters allow picking of resources in workbooks. This functionality
13
13
14
14
Values from resource pickers can come from the workbook context, static list, or Azure Resource Graph queries.
15
15
16
+
> [!NOTE]
17
+
> The label for each resource in the resource parameter list is based on the resource id. You cannot replace that name with another value. For clarity, the examples in this document show the label field set to the id, but that value isn't used in the actual parameter.
18
+
19
+
16
20
## Create a resource parameter (workbook resources)
17
21
18
22
1. Start with an empty workbook in edit mode.
@@ -44,15 +48,13 @@ Values from resource pickers can come from the workbook context, static list, or
44
48
45
49
```kusto
46
50
where type == 'microsoft.insights/components'
47
-
| project value = id, label = name, selected = false, group = resourceGroup
51
+
| project value = id, label = id, selected = false, group = resourceGroup
48
52
```
49
53
50
54
1. Select **Save** to create the parameter.
51
55
52
56
:::image type="content" source="./media/workbooks-resources/resource-query.png" lightbox="./media/workbooks-resources/resource-query.png" alt-text="Screenshot that shows the creation of a resource parameter by using Azure Resource Graph.":::
53
57
54
-
> [!NOTE]
55
-
> Azure Resource Graph isn't yet available in all clouds. Ensure that it's supported in your target cloud if you choose this approach.
56
58
57
59
For more information on Azure Resource Graph, see [What is Azure Resource Graph?](../../governance/resource-graph/overview.md).
58
60
@@ -70,8 +72,8 @@ For more information on Azure Resource Graph, see [What is Azure Resource Graph?
@@ -102,7 +104,7 @@ This approach can be used to bind resources to other controls like metrics.
102
104
| Parameter | Description | Example |
103
105
| ------------- |:-------------|:-------------|
104
106
| `{Applications}` | The selected resource ID. | _/subscriptions/\<sub-id\>/resourceGroups/\<resource-group\>/providers/\<resource-type\>/acmeauthentication_ |
105
-
| `{Applications:label}` | The label of the selected resource. | `acmefrontend` |
107
+
| `{Applications:label}` | The label of the selected resource. | `acmefrontend` Note: for multi-value resource parameters, this label may be shortened like `acmefrontend (+3 others)` and may not include all labels of all selected values |
106
108
| `{Applications:value}` | The value of the selected resource. | _'/subscriptions/\<sub-id\>/resourceGroups/\<resource-group\>/providers/\<resource-type\>/acmeauthentication'_ |
107
109
| `{Applications:name}` | The name of the selected resource. | `acmefrontend` |
108
110
| `{Applications:resourceGroup}` | The resource group of the selected resource. | `acmegroup` |
0 commit comments