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 create

Create a specific query within a log analytics query pack. Azure CLI reference

1 example 9 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

Create a query in a query pack

az monitor log-analytics query-pack query create --query-id 112c6b1f-5a86-4f01-a2d7-efb8e31f930f --display-name queryName -g resourceGroupName --query-pack-name queryPackName --body "heartbeat | take 10" --description "some description" --categories "[network,monitor]" --resource-types "[microsoft.network/loadbalancers,microsoft.insights/autoscalesettings]" --solutions "[networkmonitoring]" --tags "{version:[v2022-01-01,v2021-12-01]}"Identify
--query-idThe id name of a specific query defined in the log analytics query pack.
--display-nameUnique display name for your query within the query pack.
-gName of resource group.
--query-pack-nameThe name of the log analytics query pack.
--bodyContent of the query.
--descriptionDescription of the query.
--resource-typesThe related resource types for the function.
--solutionsThe related Log Analytics solutions for the function.
--tagsTags associated with the query.

Options

9 in the Azure CLI reference
--bodyContent of the query.
--categories
--descriptionDescription of the query.
--display-nameUnique display name for your query within the query pack.
--query-id, --name, -nThe id name of a specific query defined in the log analytics query pack.
--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.