Note
This documentation for Azure workbooks is now located at: https://learn.microsoft.com/en-us/azure/azure-monitor/visualize/workbooks-options-group Please do not edit this file. All up-to-date information is in the new location and documentation should only be updated there.
An options group parameter allows the user to select one values from a known set (e.g. select one of your app’s requests). When there are a small number of values, an options group can be a better choice than a Drop down parameter, as the user can see all the possible values, and see which one is selected. Options groups are commonly used for yes|no or on|off style choices. When there are large number of possible values, using a drop down is a better choice. Note that unlike drop down parameters, an options group always only allows one selected value.
The easiest way to specify the list by providing a static list in the parameter setting. A more interesting way is to get the list dynamically via a KQL query.
-
Start with an empty workbook in edit mode.
-
Choose Add parameters from the links within the workbook.
-
Click on the blue Add Parameter button.
-
In the new parameter pane that pops up enter:
- Parameter name:
Environment
- Parameter type:
Options Group
- Required:
checked
- Get data from:
JSON
- Parameter name:
-
In the JSON Input text block, insert this json snippet:
[ { "value":"dev", "label":"Development" }, { "value":"ppe", "label":"Pre-production" }, { "value":"prod", "label":"Production", "selected":true } ]
(you are not limited to JSON, you can use any query provider to provide initial values, but will be limited to the first 100 results)
-
Use the blue
Update
button. -
Choose 'Save' from the toolbar to create the parameter.
-
The Environment parameter will be an options group control with the three values.
Query examples and behaviors of the options group parameter the same as the single select drop down parameter samples.
See also: