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-create-workbook.md
+46Lines changed: 46 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,6 +125,52 @@ To add a query to an Azure Workbook:
125
125
```
126
126
127
127
In this case, the query returns no rows if the **AzureDiagnostics** table is missing, or if the **ResourceId** column is missing from the table.
128
+
129
+
### Tutorial - resource centric logs queries in workbooks
130
+
131
+
This video shows you how to use resource level logs queries in Azure Workbooks. It also has tips and tricks on how to enable advanced scenarios and improve performance.
132
+
133
+
[](https://youtu.be/8CvjM0VvOA8 "Video showing how to make resource centric log queries in workbooks")
134
+
135
+
#### Dynamic resource type parameter
136
+
Uses dynamic scopes for more efficient querying. The snippet below uses this heuristc:
137
+
1. _Individual resources_: if the count of selected resource is less than or equal to 5
138
+
2. _Resource groups_: if the number of resources is over 5 but the number of resource groups the resources belong to is less than or equal to 3
139
+
3. _Subscriptions_: otherwise
140
+
141
+
```
142
+
Resources
143
+
| take 1
144
+
| project x = dynamic(["microsoft.compute/virtualmachines", "microsoft.compute/virtualmachinescalesets", "microsoft.resources/resourcegroups", "microsoft.resources/subscriptions"])
You can collect input from consumers and reference it in other parts of the workbook using parameters. Use parameters to scope the result set or to set the right visual. Parameters help you build interactive reports and experiences. For more information on how parameters can be used, see [workbook parameters](workbooks-parameters.md).
0 commit comments