CmdID

CmdID / az / az monitor / az monitor log-analytics / az monitor log-analytics query-pack / az monitor log-analytics query-pack query

az monitor log-analytics query-pack query search

Search a list of queries defined within a log analytics query pack according to given search properties. Azure CLI reference

2 examples 6 options Its page in the Azure CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

Search queries in a query pack

az monitor log-analytics query-pack query search -g resourceGroupName --query-pack-name queryPackName --categories network --resource-types microsoft.insights/autoscalesettings --solutions networkmonitoring --tags version="[v2021-12-01]"Identify
-gName of resource group.
--query-pack-nameThe name of the log analytics query pack.
--resource-typesThe related resource types for the function.
--solutionsThe related Log Analytics solutions for the function.
--tagsTags associated with the query.

Search queries in a query pack without query body content

az monitor log-analytics query-pack query search -g resourceGroupName --query-pack-name queryPackName --categories network --resource-types microsoft.insights/autoscalesettings --solutions networkmonitoring --tags version="[v2021-12-01]" --include-body falseIdentify
-gName of resource group.
--query-pack-nameThe name of the log analytics query pack.
--resource-typesThe related resource types for the function.
--solutionsThe related Log Analytics solutions for the function.
--tagsTags associated with the query.
--include-bodyWhether or not to return the body of each applicable query.

Options

6 in the Azure CLI reference
--categories
--include-bodyWhether or not to return the body of each applicable query.
--query-pack-nameThe name of the log analytics query pack.
--resource-typesThe related resource types for the function.
--solutionsThe related Log Analytics solutions for the function.
--tagsTags associated with the query.