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 list
List queries defined within a log analytics query pack. Azure CLI reference
2 examples 2 options Its page in the Azure CLI reference
Examples
List queries in a query pack
az monitor log-analytics query-pack query list -g resourceGroupName --query-pack-name queryPackNameIdentify-gName of resource group.--query-pack-nameThe name of the log analytics query pack.List queries in a query pack without query body content
az monitor log-analytics query-pack query list -g resourceGroupName --query-pack-name queryPackName --include-body falseIdentify-gName of resource group.--query-pack-nameThe name of the log analytics query pack.--include-bodyWhether or not to return the body of each applicable query.Options
--include-bodyWhether or not to return the body of each applicable query.--query-pack-nameThe name of the log analytics query pack.