Microsoft.ResourceGraph queries template reference

Template format

To create a Microsoft.ResourceGraph/queries resource, add the following JSON to the resources section of your template.

  "name": "string",
  "type": "Microsoft.ResourceGraph/queries",
  "apiVersion": "2018-09-01-preview",
  "tags": {},
  "properties": {
    "description": "string",
    "query": "string"

Property values

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

Microsoft.ResourceGraph/queries object

Name Type Required Value
name string Yes The name of the Graph Query resource.
type enum Yes Microsoft.ResourceGraph/queries
apiVersion enum Yes 2018-09-01-preview
tags object No Resource tags
properties object Yes Metadata describing a graph query for an Azure resource. - GraphQueryProperties object

GraphQueryProperties object

Name Type Required Value
description string No The description of a graph query.
query string Yes KQL query that will be graph.