1. Packages
  2. Azure Native
  3. API Docs
  4. cloudhealth
  5. DiscoveryRule
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.6.1 published on Friday, Aug 1, 2025 by Pulumi

azure-native.cloudhealth.DiscoveryRule

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.6.1 published on Friday, Aug 1, 2025 by Pulumi

    A discovery rule which automatically finds entities and relationships in a health model based on an Azure Resource Graph query

    Uses Azure REST API version 2025-05-01-preview.

    Example Usage

    DiscoveryRules_CreateOrUpdate

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var discoveryRule = new AzureNative.CloudHealth.DiscoveryRule("discoveryRule", new()
        {
            DiscoveryRuleName = "myDiscoveryRule",
            HealthModelName = "myHealthModel",
            Properties = new AzureNative.CloudHealth.Inputs.DiscoveryRulePropertiesArgs
            {
                AddRecommendedSignals = AzureNative.CloudHealth.DiscoveryRuleRecommendedSignalsBehavior.Enabled,
                AuthenticationSetting = "authSetting1",
                DiscoverRelationships = AzureNative.CloudHealth.DiscoveryRuleRelationshipDiscoveryBehavior.Enabled,
                DisplayName = "myDisplayName",
                ResourceGraphQuery = "resources | where subscriptionId == '7ddfffd7-9b32-40df-1234-828cbd55d6f4' | where resourceGroup == 'my-rg'",
            },
            ResourceGroupName = "myResourceGroup",
        });
    
    });
    
    package main
    
    import (
    	cloudhealth "github.com/pulumi/pulumi-azure-native-sdk/cloudhealth/v3"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudhealth.NewDiscoveryRule(ctx, "discoveryRule", &cloudhealth.DiscoveryRuleArgs{
    			DiscoveryRuleName: pulumi.String("myDiscoveryRule"),
    			HealthModelName:   pulumi.String("myHealthModel"),
    			Properties: &cloudhealth.DiscoveryRulePropertiesArgs{
    				AddRecommendedSignals: pulumi.String(cloudhealth.DiscoveryRuleRecommendedSignalsBehaviorEnabled),
    				AuthenticationSetting: pulumi.String("authSetting1"),
    				DiscoverRelationships: pulumi.String(cloudhealth.DiscoveryRuleRelationshipDiscoveryBehaviorEnabled),
    				DisplayName:           pulumi.String("myDisplayName"),
    				ResourceGraphQuery:    pulumi.String("resources | where subscriptionId == '7ddfffd7-9b32-40df-1234-828cbd55d6f4' | where resourceGroup == 'my-rg'"),
    			},
    			ResourceGroupName: pulumi.String("myResourceGroup"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.cloudhealth.DiscoveryRule;
    import com.pulumi.azurenative.cloudhealth.DiscoveryRuleArgs;
    import com.pulumi.azurenative.cloudhealth.inputs.DiscoveryRulePropertiesArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var discoveryRule = new DiscoveryRule("discoveryRule", DiscoveryRuleArgs.builder()
                .discoveryRuleName("myDiscoveryRule")
                .healthModelName("myHealthModel")
                .properties(DiscoveryRulePropertiesArgs.builder()
                    .addRecommendedSignals("Enabled")
                    .authenticationSetting("authSetting1")
                    .discoverRelationships("Enabled")
                    .displayName("myDisplayName")
                    .resourceGraphQuery("resources | where subscriptionId == '7ddfffd7-9b32-40df-1234-828cbd55d6f4' | where resourceGroup == 'my-rg'")
                    .build())
                .resourceGroupName("myResourceGroup")
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const discoveryRule = new azure_native.cloudhealth.DiscoveryRule("discoveryRule", {
        discoveryRuleName: "myDiscoveryRule",
        healthModelName: "myHealthModel",
        properties: {
            addRecommendedSignals: azure_native.cloudhealth.DiscoveryRuleRecommendedSignalsBehavior.Enabled,
            authenticationSetting: "authSetting1",
            discoverRelationships: azure_native.cloudhealth.DiscoveryRuleRelationshipDiscoveryBehavior.Enabled,
            displayName: "myDisplayName",
            resourceGraphQuery: "resources | where subscriptionId == '7ddfffd7-9b32-40df-1234-828cbd55d6f4' | where resourceGroup == 'my-rg'",
        },
        resourceGroupName: "myResourceGroup",
    });
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    discovery_rule = azure_native.cloudhealth.DiscoveryRule("discoveryRule",
        discovery_rule_name="myDiscoveryRule",
        health_model_name="myHealthModel",
        properties={
            "add_recommended_signals": azure_native.cloudhealth.DiscoveryRuleRecommendedSignalsBehavior.ENABLED,
            "authentication_setting": "authSetting1",
            "discover_relationships": azure_native.cloudhealth.DiscoveryRuleRelationshipDiscoveryBehavior.ENABLED,
            "display_name": "myDisplayName",
            "resource_graph_query": "resources | where subscriptionId == '7ddfffd7-9b32-40df-1234-828cbd55d6f4' | where resourceGroup == 'my-rg'",
        },
        resource_group_name="myResourceGroup")
    
    resources:
      discoveryRule:
        type: azure-native:cloudhealth:DiscoveryRule
        properties:
          discoveryRuleName: myDiscoveryRule
          healthModelName: myHealthModel
          properties:
            addRecommendedSignals: Enabled
            authenticationSetting: authSetting1
            discoverRelationships: Enabled
            displayName: myDisplayName
            resourceGraphQuery: resources | where subscriptionId == '7ddfffd7-9b32-40df-1234-828cbd55d6f4' | where resourceGroup == 'my-rg'
          resourceGroupName: myResourceGroup
    

    Create DiscoveryRule Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DiscoveryRule(name: string, args: DiscoveryRuleArgs, opts?: CustomResourceOptions);
    @overload
    def DiscoveryRule(resource_name: str,
                      args: DiscoveryRuleArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def DiscoveryRule(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      health_model_name: Optional[str] = None,
                      resource_group_name: Optional[str] = None,
                      discovery_rule_name: Optional[str] = None,
                      properties: Optional[DiscoveryRulePropertiesArgs] = None)
    func NewDiscoveryRule(ctx *Context, name string, args DiscoveryRuleArgs, opts ...ResourceOption) (*DiscoveryRule, error)
    public DiscoveryRule(string name, DiscoveryRuleArgs args, CustomResourceOptions? opts = null)
    public DiscoveryRule(String name, DiscoveryRuleArgs args)
    public DiscoveryRule(String name, DiscoveryRuleArgs args, CustomResourceOptions options)
    
    type: azure-native:cloudhealth:DiscoveryRule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args DiscoveryRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args DiscoveryRuleArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args DiscoveryRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DiscoveryRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DiscoveryRuleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var discoveryRuleResource = new AzureNative.CloudHealth.DiscoveryRule("discoveryRuleResource", new()
    {
        HealthModelName = "string",
        ResourceGroupName = "string",
        DiscoveryRuleName = "string",
        Properties = new AzureNative.CloudHealth.Inputs.DiscoveryRulePropertiesArgs
        {
            AddRecommendedSignals = "string",
            AuthenticationSetting = "string",
            DiscoverRelationships = "string",
            ResourceGraphQuery = "string",
            DisplayName = "string",
        },
    });
    
    example, err := cloudhealth.NewDiscoveryRule(ctx, "discoveryRuleResource", &cloudhealth.DiscoveryRuleArgs{
    	HealthModelName:   pulumi.String("string"),
    	ResourceGroupName: pulumi.String("string"),
    	DiscoveryRuleName: pulumi.String("string"),
    	Properties: &cloudhealth.DiscoveryRulePropertiesArgs{
    		AddRecommendedSignals: pulumi.String("string"),
    		AuthenticationSetting: pulumi.String("string"),
    		DiscoverRelationships: pulumi.String("string"),
    		ResourceGraphQuery:    pulumi.String("string"),
    		DisplayName:           pulumi.String("string"),
    	},
    })
    
    var discoveryRuleResource = new DiscoveryRule("discoveryRuleResource", DiscoveryRuleArgs.builder()
        .healthModelName("string")
        .resourceGroupName("string")
        .discoveryRuleName("string")
        .properties(DiscoveryRulePropertiesArgs.builder()
            .addRecommendedSignals("string")
            .authenticationSetting("string")
            .discoverRelationships("string")
            .resourceGraphQuery("string")
            .displayName("string")
            .build())
        .build());
    
    discovery_rule_resource = azure_native.cloudhealth.DiscoveryRule("discoveryRuleResource",
        health_model_name="string",
        resource_group_name="string",
        discovery_rule_name="string",
        properties={
            "add_recommended_signals": "string",
            "authentication_setting": "string",
            "discover_relationships": "string",
            "resource_graph_query": "string",
            "display_name": "string",
        })
    
    const discoveryRuleResource = new azure_native.cloudhealth.DiscoveryRule("discoveryRuleResource", {
        healthModelName: "string",
        resourceGroupName: "string",
        discoveryRuleName: "string",
        properties: {
            addRecommendedSignals: "string",
            authenticationSetting: "string",
            discoverRelationships: "string",
            resourceGraphQuery: "string",
            displayName: "string",
        },
    });
    
    type: azure-native:cloudhealth:DiscoveryRule
    properties:
        discoveryRuleName: string
        healthModelName: string
        properties:
            addRecommendedSignals: string
            authenticationSetting: string
            discoverRelationships: string
            displayName: string
            resourceGraphQuery: string
        resourceGroupName: string
    

    DiscoveryRule Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The DiscoveryRule resource accepts the following input properties:

    HealthModelName string
    Name of health model resource
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    DiscoveryRuleName string
    Name of the discovery rule. Must be unique within a health model.
    Properties Pulumi.AzureNative.CloudHealth.Inputs.DiscoveryRuleProperties
    The resource-specific properties for this resource.
    HealthModelName string
    Name of health model resource
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    DiscoveryRuleName string
    Name of the discovery rule. Must be unique within a health model.
    Properties DiscoveryRulePropertiesArgs
    The resource-specific properties for this resource.
    healthModelName String
    Name of health model resource
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    discoveryRuleName String
    Name of the discovery rule. Must be unique within a health model.
    properties DiscoveryRuleProperties
    The resource-specific properties for this resource.
    healthModelName string
    Name of health model resource
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    discoveryRuleName string
    Name of the discovery rule. Must be unique within a health model.
    properties DiscoveryRuleProperties
    The resource-specific properties for this resource.
    health_model_name str
    Name of health model resource
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    discovery_rule_name str
    Name of the discovery rule. Must be unique within a health model.
    properties DiscoveryRulePropertiesArgs
    The resource-specific properties for this resource.
    healthModelName String
    Name of health model resource
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    discoveryRuleName String
    Name of the discovery rule. Must be unique within a health model.
    properties Property Map
    The resource-specific properties for this resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DiscoveryRule resource produces the following output properties:

    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    SystemData Pulumi.AzureNative.CloudHealth.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion String
    The Azure API version of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion string
    The Azure API version of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azure_api_version str
    The Azure API version of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion String
    The Azure API version of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    DiscoveryRuleProperties, DiscoveryRulePropertiesArgs

    AddRecommendedSignals string | Pulumi.AzureNative.CloudHealth.DiscoveryRuleRecommendedSignalsBehavior
    Whether to add all recommended signals to the discovered entities.
    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 string | Pulumi.AzureNative.CloudHealth.DiscoveryRuleRelationshipDiscoveryBehavior
    Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
    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.
    DisplayName string
    Display name
    AddRecommendedSignals string | DiscoveryRuleRecommendedSignalsBehavior
    Whether to add all recommended signals to the discovered entities.
    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 string | DiscoveryRuleRelationshipDiscoveryBehavior
    Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
    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.
    DisplayName string
    Display name
    addRecommendedSignals String | DiscoveryRuleRecommendedSignalsBehavior
    Whether to add all recommended signals to the discovered entities.
    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 String | DiscoveryRuleRelationshipDiscoveryBehavior
    Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
    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.
    displayName String
    Display name
    addRecommendedSignals string | DiscoveryRuleRecommendedSignalsBehavior
    Whether to add all recommended signals to the discovered entities.
    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 string | DiscoveryRuleRelationshipDiscoveryBehavior
    Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
    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.
    displayName string
    Display name
    add_recommended_signals str | DiscoveryRuleRecommendedSignalsBehavior
    Whether to add all recommended signals to the discovered entities.
    authentication_setting str
    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.
    discover_relationships str | DiscoveryRuleRelationshipDiscoveryBehavior
    Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
    resource_graph_query str
    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.
    display_name str
    Display name
    addRecommendedSignals String | "Enabled" | "Disabled"
    Whether to add all recommended signals to the discovered entities.
    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 String | "Enabled" | "Disabled"
    Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
    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.
    displayName String
    Display name

    DiscoveryRulePropertiesResponse, DiscoveryRulePropertiesResponseArgs

    AddRecommendedSignals string
    Whether to add all recommended signals to the discovered entities.
    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.
    DeletionDate string
    Date when the discovery rule was (soft-)deleted.
    DiscoverRelationships string
    Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
    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.
    ErrorMessage string
    Error message if the last discovery operation failed.
    NumberOfDiscoveredEntities int
    Number of discovered entities in the last discovery operation.
    ProvisioningState string
    The status of the last operation.
    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.
    DisplayName string
    Display name
    AddRecommendedSignals string
    Whether to add all recommended signals to the discovered entities.
    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.
    DeletionDate string
    Date when the discovery rule was (soft-)deleted.
    DiscoverRelationships string
    Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
    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.
    ErrorMessage string
    Error message if the last discovery operation failed.
    NumberOfDiscoveredEntities int
    Number of discovered entities in the last discovery operation.
    ProvisioningState string
    The status of the last operation.
    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.
    DisplayName string
    Display name
    addRecommendedSignals String
    Whether to add all recommended signals to the discovered entities.
    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.
    deletionDate String
    Date when the discovery rule was (soft-)deleted.
    discoverRelationships String
    Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
    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.
    errorMessage String
    Error message if the last discovery operation failed.
    numberOfDiscoveredEntities Integer
    Number of discovered entities in the last discovery operation.
    provisioningState String
    The status of the last operation.
    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.
    displayName String
    Display name
    addRecommendedSignals string
    Whether to add all recommended signals to the discovered entities.
    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.
    deletionDate string
    Date when the discovery rule was (soft-)deleted.
    discoverRelationships string
    Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
    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.
    errorMessage string
    Error message if the last discovery operation failed.
    numberOfDiscoveredEntities number
    Number of discovered entities in the last discovery operation.
    provisioningState string
    The status of the last operation.
    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.
    displayName string
    Display name
    add_recommended_signals str
    Whether to add all recommended signals to the discovered entities.
    authentication_setting str
    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.
    deletion_date str
    Date when the discovery rule was (soft-)deleted.
    discover_relationships str
    Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
    entity_name str
    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.
    error_message str
    Error message if the last discovery operation failed.
    number_of_discovered_entities int
    Number of discovered entities in the last discovery operation.
    provisioning_state str
    The status of the last operation.
    resource_graph_query str
    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.
    display_name str
    Display name
    addRecommendedSignals String
    Whether to add all recommended signals to the discovered entities.
    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.
    deletionDate String
    Date when the discovery rule was (soft-)deleted.
    discoverRelationships String
    Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
    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.
    errorMessage String
    Error message if the last discovery operation failed.
    numberOfDiscoveredEntities Number
    Number of discovered entities in the last discovery operation.
    provisioningState String
    The status of the last operation.
    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.
    displayName String
    Display name

    DiscoveryRuleRecommendedSignalsBehavior, DiscoveryRuleRecommendedSignalsBehaviorArgs

    Enabled
    EnabledAutomatically add recommended signals
    Disabled
    DisabledDo not automatically add recommended signals
    DiscoveryRuleRecommendedSignalsBehaviorEnabled
    EnabledAutomatically add recommended signals
    DiscoveryRuleRecommendedSignalsBehaviorDisabled
    DisabledDo not automatically add recommended signals
    Enabled
    EnabledAutomatically add recommended signals
    Disabled
    DisabledDo not automatically add recommended signals
    Enabled
    EnabledAutomatically add recommended signals
    Disabled
    DisabledDo not automatically add recommended signals
    ENABLED
    EnabledAutomatically add recommended signals
    DISABLED
    DisabledDo not automatically add recommended signals
    "Enabled"
    EnabledAutomatically add recommended signals
    "Disabled"
    DisabledDo not automatically add recommended signals

    DiscoveryRuleRelationshipDiscoveryBehavior, DiscoveryRuleRelationshipDiscoveryBehaviorArgs

    Enabled
    EnabledAutomatically attempt to discover relationships
    Disabled
    DisabledDo not automatically attempt to discover relationships
    DiscoveryRuleRelationshipDiscoveryBehaviorEnabled
    EnabledAutomatically attempt to discover relationships
    DiscoveryRuleRelationshipDiscoveryBehaviorDisabled
    DisabledDo not automatically attempt to discover relationships
    Enabled
    EnabledAutomatically attempt to discover relationships
    Disabled
    DisabledDo not automatically attempt to discover relationships
    Enabled
    EnabledAutomatically attempt to discover relationships
    Disabled
    DisabledDo not automatically attempt to discover relationships
    ENABLED
    EnabledAutomatically attempt to discover relationships
    DISABLED
    DisabledDo not automatically attempt to discover relationships
    "Enabled"
    EnabledAutomatically attempt to discover relationships
    "Disabled"
    DisabledDo not automatically attempt to discover relationships

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:cloudhealth:DiscoveryRule myDiscoveryRule /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CloudHealth/healthmodels/{healthModelName}/discoveryrules/{discoveryRuleName} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
    Azure Native v3.6.1 published on Friday, Aug 1, 2025 by Pulumi