microsoft.insights queryPacks/queries template reference

Template format

To create a microsoft.insights/queryPacks/queries resource, add the following JSON to the resources section of your template.

  "name": "string",
  "type": "microsoft.insights/queryPacks/queries",
  "apiVersion": "2019-09-01-preview",
  "properties": {
    "displayName": "string",
    "description": "string",
    "body": "string",
    "linkedResourceId": "string",
    "categories": [
    "resourceTypes": [
    "labels": [

Property values

The following tables describe the values you need to set in the schema.

microsoft.insights/queryPacks/queries object

Name Type Required Value
name string Yes The id of a specific query defined in the Log Analytics QueryPack
type enum Yes queries

See Set name and type for child resources.
apiVersion enum Yes 2019-09-01-preview
properties object Yes Properties that define an Log Analytics QueryPack-Query resource. - LogAnalyticsQueryPackQueryProperties object

LogAnalyticsQueryPackQueryProperties object

Name Type Required Value
displayName string Yes Unique display name for your query within the Query Pack.
description string No Description of the query.
body string Yes Body of the query.
linkedResourceId string No Resource id associated with the query.
categories array No Categories associated with the query. - string
resourceTypes array No Resource Types associated with the query. - string
labels array No Labels associated with the query. - string