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 update
Update a specific query within a log analytics query pack. Azure CLI reference
1 example 9 options Its page in the Azure CLI reference
Examples
Update a query in a query pack
az monitor log-analytics query-pack query update --query-id 112c6b1f-5a86-4f01-a2d7-efb8e31f930f -g resourceGroup --query-pack-name queryPackName --body "heartbeat | take 20" --categories [2]=databases --tags version[0]=nullIdentify--query-idThe id name of a specific query defined in the log analytics query pack.-gName of resource group.--query-pack-nameThe name of the log analytics query pack.--bodyContent of the query.--tagsTags associated with the query.Options
--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.