Share via


HealthModelDiscoveryRuleProperties Constructor

Definition

Initializes a new instance of HealthModelDiscoveryRuleProperties.

public HealthModelDiscoveryRuleProperties(string resourceGraphQuery, string authenticationSetting, Azure.ResourceManager.CloudHealth.Models.DiscoveryRuleRelationshipDiscoveryBehavior discoverRelationships, Azure.ResourceManager.CloudHealth.Models.DiscoveryRuleRecommendedSignalsBehavior addRecommendedSignals, string entityName);
new Azure.ResourceManager.CloudHealth.Models.HealthModelDiscoveryRuleProperties : string * string * Azure.ResourceManager.CloudHealth.Models.DiscoveryRuleRelationshipDiscoveryBehavior * Azure.ResourceManager.CloudHealth.Models.DiscoveryRuleRecommendedSignalsBehavior * string -> Azure.ResourceManager.CloudHealth.Models.HealthModelDiscoveryRuleProperties
Public Sub New (resourceGraphQuery As String, authenticationSetting As String, discoverRelationships As DiscoveryRuleRelationshipDiscoveryBehavior, addRecommendedSignals As DiscoveryRuleRecommendedSignalsBehavior, entityName As String)

Parameters

resourceGraphQuery
String

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.

authenticationSetting
String

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.

discoverRelationships
DiscoveryRuleRelationshipDiscoveryBehavior

Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.

addRecommendedSignals
DiscoveryRuleRecommendedSignalsBehavior

Whether to add all recommended signals to the discovered entities.

entityName
String

Name of the entity which represents the discovery rule. Note: It might take a few minutes after creating the discovery rule until the entity is created.

Exceptions

resourceGraphQuery or authenticationSetting is null.

Applies to