Microsoft.OperationalInsights queryPacks/queries 2019-09-01-preview

The queryPacks/queries resource type can be deployed to: Resource groups.

To learn about resource group deployments, see Bicep or ARM template.

Template format

To create a Microsoft.OperationalInsights/queryPacks/queries resource, add the following Bicep or JSON to your template.

resource symbolicname 'Microsoft.OperationalInsights/queryPacks/queries@2019-09-01-preview' = {
  name: 'string'
  properties: {
    body: 'string'
    description: 'string'
    displayName: 'string'
    properties: any()
    related: {
      categories: [ 'string' ]
      resourceTypes: [ 'string' ]
      solutions: [ 'string' ]
    tags: {
      tagName1: 'tagValue1'
      tagName2: 'tagValue2'

Property values


Name Description Value
type The resource type

For Bicep, set this value in the resource declaration.
apiVersion The resource api version

For Bicep, set this value in the resource declaration.
name The resource name

See how to set names and types for child resources in Bicep or JSON ARM templates.
string (required)
properties Properties that define an Log Analytics QueryPack-Query resource. LogAnalyticsQueryPackQueryProperties


Name Description Value
body Body of the query. string (required)
description Description of the query. string
displayName Unique display name for your query within the Query Pack. string (required)
properties Any object For Bicep, you can use the any() function.
related The related metadata items for the function. LogAnalyticsQueryPackQueryPropertiesRelated
tags Tags associated with the query. Dictionary of tag names and values. See Tags in templates


Name Description Value
categories The related categories for the function. string[]
resourceTypes The related resource types for the function. string[]
solutions The related Log Analytics solutions for the function. string[]