Microsoft.CloudHealth healthmodels/discoveryrules 2026-10-01-preview

Bicep resource definition

The healthmodels/discoveryrules resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.CloudHealth/healthmodels/discoveryrules resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.CloudHealth/healthmodels/discoveryrules@2026-10-01-preview' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    addRecommendedSignals: 'string'
    addResourceHealthSignal: 'string'
    authenticationSetting: 'string'
    discoverRelationships: 'string'
    displayName: 'string'
    specification: {
      kind: 'string'
      // For remaining properties, see DiscoveryRuleSpecification objects
    }
  }
}

DiscoveryRuleSpecification objects

Set the kind property to specify the type of object.

For ApplicationInsightsTopology, use:

{
  applicationInsightsResourceId: 'string'
  kind: 'ApplicationInsightsTopology'
}

For ResourceGraphQuery, use:

{
  kind: 'ResourceGraphQuery'
  resourceGraphQuery: 'string'
}

Property Values

Microsoft.CloudHealth/healthmodels/discoveryrules

Name Description Value
name The resource name string

Constraints:
Pattern = ^[a-zA-Z0-9][a-zA-Z0-9-]{1,258}[a-zA-Z0-9]$ (required)
parent In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource.

For more information, see Child resource outside parent resource.
Symbolic name for resource of type: healthmodels
properties The resource-specific properties for this resource. DiscoveryRuleProperties

ApplicationInsightsTopologySpecification

Name Description Value
applicationInsightsResourceId Application Insights resource ID string (required)
kind Kind of the discovery rule specification 'ApplicationInsightsTopology' (required)

DiscoveryRuleProperties

Name Description Value
addRecommendedSignals Whether to add all recommended signals to the discovered entities. 'Disabled'
'Enabled' (required)
addResourceHealthSignal Whether to automatically add a signal for the Azure resource's availability state from Azure Resource Health to the discovered entities. Defaults to Enabled: discovery rules updated via this API version without setting this field will begin emitting a Resource Health availability signal. Pass Disabled to preserve pre-2026-05-01-preview behavior. 'Disabled'
'Enabled'
authenticationSetting Reference to the name of the authentication setting which is used for querying Azure Resource Graph. The same authentication setting will also be assigned to any discovered entities. string

Constraints:
Pattern = ^[a-zA-Z0-9][a-zA-Z0-9-]{1,258}[a-zA-Z0-9]$ (required)
discoverRelationships Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted. 'Disabled'
'Enabled' (required)
displayName Display name string

Constraints:
Min length = 1
Max length = 260
specification Specification of the discovery rule defining how entities are discovered. DiscoveryRuleSpecification (required)

DiscoveryRuleSpecification

Name Description Value
kind Set to 'ApplicationInsightsTopology' for type ApplicationInsightsTopologySpecification. Set to 'ResourceGraphQuery' for type ResourceGraphQuerySpecification. 'ApplicationInsightsTopology'
'ResourceGraphQuery' (required)

ResourceGraphQuerySpecification

Name Description Value
kind Kind of the discovery rule specification 'ResourceGraphQuery' (required)
resourceGraphQuery Azure Resource Graph query text in KQL syntax. The query must return at least a column named 'id' which contains the resource ID of the discovered resources. string

Constraints:
Min length = 1
Max length = 5000 (required)

ARM template resource definition

The healthmodels/discoveryrules resource type can be deployed with operations that target:

Usage Examples

Resource format

To create a Microsoft.CloudHealth/healthmodels/discoveryrules resource, add the following JSON to your template.

{
  "type": "Microsoft.CloudHealth/healthmodels/discoveryrules",
  "apiVersion": "2026-10-01-preview",
  "name": "string",
  "properties": {
    "addRecommendedSignals": "string",
    "addResourceHealthSignal": "string",
    "authenticationSetting": "string",
    "discoverRelationships": "string",
    "displayName": "string",
    "specification": {
      "kind": "string"
      // For remaining properties, see DiscoveryRuleSpecification objects
    }
  }
}

DiscoveryRuleSpecification objects

Set the kind property to specify the type of object.

For ApplicationInsightsTopology, use:

{
  "applicationInsightsResourceId": "string",
  "kind": "ApplicationInsightsTopology"
}

For ResourceGraphQuery, use:

{
  "kind": "ResourceGraphQuery",
  "resourceGraphQuery": "string"
}

Property Values

Microsoft.CloudHealth/healthmodels/discoveryrules

Name Description Value
apiVersion The api version '2026-10-01-preview'
name The resource name string

Constraints:
Pattern = ^[a-zA-Z0-9][a-zA-Z0-9-]{1,258}[a-zA-Z0-9]$ (required)
properties The resource-specific properties for this resource. DiscoveryRuleProperties
type The resource type 'Microsoft.CloudHealth/healthmodels/discoveryrules'

ApplicationInsightsTopologySpecification

Name Description Value
applicationInsightsResourceId Application Insights resource ID string (required)
kind Kind of the discovery rule specification 'ApplicationInsightsTopology' (required)

DiscoveryRuleProperties

Name Description Value
addRecommendedSignals Whether to add all recommended signals to the discovered entities. 'Disabled'
'Enabled' (required)
addResourceHealthSignal Whether to automatically add a signal for the Azure resource's availability state from Azure Resource Health to the discovered entities. Defaults to Enabled: discovery rules updated via this API version without setting this field will begin emitting a Resource Health availability signal. Pass Disabled to preserve pre-2026-05-01-preview behavior. 'Disabled'
'Enabled'
authenticationSetting Reference to the name of the authentication setting which is used for querying Azure Resource Graph. The same authentication setting will also be assigned to any discovered entities. string

Constraints:
Pattern = ^[a-zA-Z0-9][a-zA-Z0-9-]{1,258}[a-zA-Z0-9]$ (required)
discoverRelationships Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted. 'Disabled'
'Enabled' (required)
displayName Display name string

Constraints:
Min length = 1
Max length = 260
specification Specification of the discovery rule defining how entities are discovered. DiscoveryRuleSpecification (required)

DiscoveryRuleSpecification

Name Description Value
kind Set to 'ApplicationInsightsTopology' for type ApplicationInsightsTopologySpecification. Set to 'ResourceGraphQuery' for type ResourceGraphQuerySpecification. 'ApplicationInsightsTopology'
'ResourceGraphQuery' (required)

ResourceGraphQuerySpecification

Name Description Value
kind Kind of the discovery rule specification 'ResourceGraphQuery' (required)
resourceGraphQuery Azure Resource Graph query text in KQL syntax. The query must return at least a column named 'id' which contains the resource ID of the discovered resources. string

Constraints:
Min length = 1
Max length = 5000 (required)

Terraform (AzAPI provider) resource definition

The healthmodels/discoveryrules resource type can be deployed with operations that target:

  • Resource groups For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.CloudHealth/healthmodels/discoveryrules resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.CloudHealth/healthmodels/discoveryrules@2026-10-01-preview"
  name = "string"
  parent_id = "string"
  body = {
    properties = {
      addRecommendedSignals = "string"
      addResourceHealthSignal = "string"
      authenticationSetting = "string"
      discoverRelationships = "string"
      displayName = "string"
      specification = {
        kind = "string"
        // For remaining properties, see DiscoveryRuleSpecification objects
      }
    }
  }
}

DiscoveryRuleSpecification objects

Set the kind property to specify the type of object.

For ApplicationInsightsTopology, use:

{
  applicationInsightsResourceId = "string"
  kind = "ApplicationInsightsTopology"
}

For ResourceGraphQuery, use:

{
  kind = "ResourceGraphQuery"
  resourceGraphQuery = "string"
}

Property Values

Microsoft.CloudHealth/healthmodels/discoveryrules

Name Description Value
name The resource name string

Constraints:
Pattern = ^[a-zA-Z0-9][a-zA-Z0-9-]{1,258}[a-zA-Z0-9]$ (required)
parent_id The ID of the resource that is the parent for this resource. ID for resource of type: healthmodels
properties The resource-specific properties for this resource. DiscoveryRuleProperties
type The resource type "Microsoft.CloudHealth/healthmodels/discoveryrules@2026-10-01-preview"

ApplicationInsightsTopologySpecification

Name Description Value
applicationInsightsResourceId Application Insights resource ID string (required)
kind Kind of the discovery rule specification 'ApplicationInsightsTopology' (required)

DiscoveryRuleProperties

Name Description Value
addRecommendedSignals Whether to add all recommended signals to the discovered entities. 'Disabled'
'Enabled' (required)
addResourceHealthSignal Whether to automatically add a signal for the Azure resource's availability state from Azure Resource Health to the discovered entities. Defaults to Enabled: discovery rules updated via this API version without setting this field will begin emitting a Resource Health availability signal. Pass Disabled to preserve pre-2026-05-01-preview behavior. 'Disabled'
'Enabled'
authenticationSetting Reference to the name of the authentication setting which is used for querying Azure Resource Graph. The same authentication setting will also be assigned to any discovered entities. string

Constraints:
Pattern = ^[a-zA-Z0-9][a-zA-Z0-9-]{1,258}[a-zA-Z0-9]$ (required)
discoverRelationships Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted. 'Disabled'
'Enabled' (required)
displayName Display name string

Constraints:
Min length = 1
Max length = 260
specification Specification of the discovery rule defining how entities are discovered. DiscoveryRuleSpecification (required)

DiscoveryRuleSpecification

Name Description Value
kind Set to 'ApplicationInsightsTopology' for type ApplicationInsightsTopologySpecification. Set to 'ResourceGraphQuery' for type ResourceGraphQuerySpecification. 'ApplicationInsightsTopology'
'ResourceGraphQuery' (required)

ResourceGraphQuerySpecification

Name Description Value
kind Kind of the discovery rule specification 'ResourceGraphQuery' (required)
resourceGraphQuery Azure Resource Graph query text in KQL syntax. The query must return at least a column named 'id' which contains the resource ID of the discovered resources. string

Constraints:
Min length = 1
Max length = 5000 (required)