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-03-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.Monitor.DiscoveryRule("discoveryRule", new()
{
AzureMonitorWorkspaceName = "myWorkspace",
DiscoveryRuleName = "myDiscoveryRule",
HealthModelName = "myHealthModel",
Properties = new AzureNative.Monitor.Inputs.ResourceGraphQueryDiscoveryRulePropertiesArgs
{
AddRecommendedSignals = AzureNative.Monitor.DiscoveryRuleRecommendedSignalsBehavior.Enabled,
AuthenticationSetting = "authSetting1",
DiscoverRelationships = AzureNative.Monitor.DiscoveryRuleRelationshipDiscoveryBehavior.Enabled,
DiscoveryRuleKind = "ResourceGraphQuery",
DisplayName = "myDisplayName",
ResourceGraphQuery = "resources | where subscriptionId == '7ddfffd7-9b32-40df-1234-828cbd55d6f4' | where resourceGroup == 'my-rg'",
},
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
monitor "github.com/pulumi/pulumi-azure-native-sdk/monitor/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := monitor.NewDiscoveryRule(ctx, "discoveryRule", &monitor.DiscoveryRuleArgs{
AzureMonitorWorkspaceName: pulumi.String("myWorkspace"),
DiscoveryRuleName: pulumi.String("myDiscoveryRule"),
HealthModelName: pulumi.String("myHealthModel"),
Properties: &monitor.ResourceGraphQueryDiscoveryRulePropertiesArgs{
AddRecommendedSignals: pulumi.String(monitor.DiscoveryRuleRecommendedSignalsBehaviorEnabled),
AuthenticationSetting: pulumi.String("authSetting1"),
DiscoverRelationships: pulumi.String(monitor.DiscoveryRuleRelationshipDiscoveryBehaviorEnabled),
DiscoveryRuleKind: pulumi.String("ResourceGraphQuery"),
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.monitor.DiscoveryRule;
import com.pulumi.azurenative.monitor.DiscoveryRuleArgs;
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()
.azureMonitorWorkspaceName("myWorkspace")
.discoveryRuleName("myDiscoveryRule")
.healthModelName("myHealthModel")
.properties(ResourceGraphQueryDiscoveryRulePropertiesArgs.builder()
.addRecommendedSignals("Enabled")
.authenticationSetting("authSetting1")
.discoverRelationships("Enabled")
.discoveryRuleKind("ResourceGraphQuery")
.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.monitor.DiscoveryRule("discoveryRule", {
azureMonitorWorkspaceName: "myWorkspace",
discoveryRuleName: "myDiscoveryRule",
healthModelName: "myHealthModel",
properties: {
addRecommendedSignals: azure_native.monitor.DiscoveryRuleRecommendedSignalsBehavior.Enabled,
authenticationSetting: "authSetting1",
discoverRelationships: azure_native.monitor.DiscoveryRuleRelationshipDiscoveryBehavior.Enabled,
discoveryRuleKind: "ResourceGraphQuery",
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.monitor.DiscoveryRule("discoveryRule",
azure_monitor_workspace_name="myWorkspace",
discovery_rule_name="myDiscoveryRule",
health_model_name="myHealthModel",
properties={
"add_recommended_signals": azure_native.monitor.DiscoveryRuleRecommendedSignalsBehavior.ENABLED,
"authentication_setting": "authSetting1",
"discover_relationships": azure_native.monitor.DiscoveryRuleRelationshipDiscoveryBehavior.ENABLED,
"discovery_rule_kind": "ResourceGraphQuery",
"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:monitor:DiscoveryRule
properties:
azureMonitorWorkspaceName: myWorkspace
discoveryRuleName: myDiscoveryRule
healthModelName: myHealthModel
properties:
addRecommendedSignals: Enabled
authenticationSetting: authSetting1
discoverRelationships: Enabled
discoveryRuleKind: ResourceGraphQuery
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,
azure_monitor_workspace_name: Optional[str] = None,
health_model_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
discovery_rule_name: Optional[str] = None,
properties: Optional[Union[ApplicationInsightsTopologyDiscoveryRulePropertiesArgs, ResourceGraphQueryDiscoveryRulePropertiesArgs]] = 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:monitor: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 azure_nativeDiscoveryRuleResource = new AzureNative.Monitor.DiscoveryRule("azure-nativeDiscoveryRuleResource", new()
{
AzureMonitorWorkspaceName = "string",
HealthModelName = "string",
ResourceGroupName = "string",
DiscoveryRuleName = "string",
Properties = new AzureNative.Monitor.Inputs.ApplicationInsightsTopologyDiscoveryRulePropertiesArgs
{
AddRecommendedSignals = "string",
ApplicationInsightsResourceId = "string",
AuthenticationSetting = "string",
DiscoverRelationships = "string",
DiscoveryRuleKind = "ApplicationInsightsTopology",
DisplayName = "string",
},
});
example, err := monitor.NewDiscoveryRule(ctx, "azure-nativeDiscoveryRuleResource", &monitor.DiscoveryRuleArgs{
AzureMonitorWorkspaceName: pulumi.String("string"),
HealthModelName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
DiscoveryRuleName: pulumi.String("string"),
Properties: &monitor.ApplicationInsightsTopologyDiscoveryRulePropertiesArgs{
AddRecommendedSignals: pulumi.String("string"),
ApplicationInsightsResourceId: pulumi.String("string"),
AuthenticationSetting: pulumi.String("string"),
DiscoverRelationships: pulumi.String("string"),
DiscoveryRuleKind: pulumi.String("ApplicationInsightsTopology"),
DisplayName: pulumi.String("string"),
},
})
var azure_nativeDiscoveryRuleResource = new com.pulumi.azurenative.monitor.DiscoveryRule("azure-nativeDiscoveryRuleResource", com.pulumi.azurenative.monitor.DiscoveryRuleArgs.builder()
.azureMonitorWorkspaceName("string")
.healthModelName("string")
.resourceGroupName("string")
.discoveryRuleName("string")
.properties(ApplicationInsightsTopologyDiscoveryRulePropertiesArgs.builder()
.addRecommendedSignals("string")
.applicationInsightsResourceId("string")
.authenticationSetting("string")
.discoverRelationships("string")
.discoveryRuleKind("ApplicationInsightsTopology")
.displayName("string")
.build())
.build());
azure_native_discovery_rule_resource = azure_native.monitor.DiscoveryRule("azure-nativeDiscoveryRuleResource",
azure_monitor_workspace_name="string",
health_model_name="string",
resource_group_name="string",
discovery_rule_name="string",
properties={
"add_recommended_signals": "string",
"application_insights_resource_id": "string",
"authentication_setting": "string",
"discover_relationships": "string",
"discovery_rule_kind": "ApplicationInsightsTopology",
"display_name": "string",
})
const azure_nativeDiscoveryRuleResource = new azure_native.monitor.DiscoveryRule("azure-nativeDiscoveryRuleResource", {
azureMonitorWorkspaceName: "string",
healthModelName: "string",
resourceGroupName: "string",
discoveryRuleName: "string",
properties: {
addRecommendedSignals: "string",
applicationInsightsResourceId: "string",
authenticationSetting: "string",
discoverRelationships: "string",
discoveryRuleKind: "ApplicationInsightsTopology",
displayName: "string",
},
});
type: azure-native:monitor:DiscoveryRule
properties:
azureMonitorWorkspaceName: string
discoveryRuleName: string
healthModelName: string
properties:
addRecommendedSignals: string
applicationInsightsResourceId: string
authenticationSetting: string
discoverRelationships: string
discoveryRuleKind: ApplicationInsightsTopology
displayName: 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:
- Azure
Monitor stringWorkspace Name - The name of the Azure Monitor Workspace. The name is case insensitive
- Health
Model stringName - Name of health model resource
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Discovery
Rule stringName - Name of the discovery rule. Must be unique within a health model.
- Properties
Pulumi.
Azure | Pulumi.Native. Monitor. Inputs. Application Insights Topology Discovery Rule Properties Azure Native. Monitor. Inputs. Resource Graph Query Discovery Rule Properties - The resource-specific properties for this resource.
- Azure
Monitor stringWorkspace Name - The name of the Azure Monitor Workspace. The name is case insensitive
- Health
Model stringName - Name of health model resource
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Discovery
Rule stringName - Name of the discovery rule. Must be unique within a health model.
- Properties
Application
Insights | ResourceTopology Discovery Rule Properties Args Graph Query Discovery Rule Properties Args - The resource-specific properties for this resource.
- azure
Monitor StringWorkspace Name - The name of the Azure Monitor Workspace. The name is case insensitive
- health
Model StringName - Name of health model resource
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- discovery
Rule StringName - Name of the discovery rule. Must be unique within a health model.
- properties
Application
Insights | ResourceTopology Discovery Rule Properties Graph Query Discovery Rule Properties - The resource-specific properties for this resource.
- azure
Monitor stringWorkspace Name - The name of the Azure Monitor Workspace. The name is case insensitive
- health
Model stringName - Name of health model resource
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- discovery
Rule stringName - Name of the discovery rule. Must be unique within a health model.
- properties
Application
Insights | ResourceTopology Discovery Rule Properties Graph Query Discovery Rule Properties - The resource-specific properties for this resource.
- azure_
monitor_ strworkspace_ name - The name of the Azure Monitor Workspace. The name is case insensitive
- health_
model_ strname - Name of health model resource
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- discovery_
rule_ strname - Name of the discovery rule. Must be unique within a health model.
- properties
Application
Insights | ResourceTopology Discovery Rule Properties Args Graph Query Discovery Rule Properties Args - The resource-specific properties for this resource.
- azure
Monitor StringWorkspace Name - The name of the Azure Monitor Workspace. The name is case insensitive
- health
Model StringName - Name of health model resource
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- discovery
Rule StringName - Name of the discovery rule. Must be unique within a health model.
- properties Property Map | 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:
- Azure
Api stringVersion - 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
- System
Data Pulumi.Azure Native. Monitor. Outputs. System Data Response - 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 stringVersion - 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
- System
Data SystemData Response - 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 StringVersion - 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
- system
Data SystemData Response - 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 stringVersion - 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
- system
Data SystemData Response - 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_ strversion - 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 SystemData Response - 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"
- azure
Api StringVersion - 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
- system
Data 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
ApplicationInsightsTopologyDiscoveryRuleProperties, ApplicationInsightsTopologyDiscoveryRulePropertiesArgs
Discovery rule properties for an Application Insights topology query- Add
Recommended string | Pulumi.Signals Azure Native. Monitor. Discovery Rule Recommended Signals Behavior - Whether to add all recommended signals to the discovered entities.
- Application
Insights stringResource Id - Application Insights resource ID
- Authentication
Setting 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.
- Discover
Relationships string | Pulumi.Azure Native. Monitor. Discovery Rule Relationship Discovery Behavior - Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
- Display
Name string - Display name
- Add
Recommended string | DiscoverySignals Rule Recommended Signals Behavior - Whether to add all recommended signals to the discovered entities.
- Application
Insights stringResource Id - Application Insights resource ID
- Authentication
Setting 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.
- Discover
Relationships string | DiscoveryRule Relationship Discovery Behavior - Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
- Display
Name string - Display name
- add
Recommended String | DiscoverySignals Rule Recommended Signals Behavior - Whether to add all recommended signals to the discovered entities.
- application
Insights StringResource Id - Application Insights resource ID
- authentication
Setting 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.
- discover
Relationships String | DiscoveryRule Relationship Discovery Behavior - Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
- display
Name String - Display name
- add
Recommended string | DiscoverySignals Rule Recommended Signals Behavior - Whether to add all recommended signals to the discovered entities.
- application
Insights stringResource Id - Application Insights resource ID
- authentication
Setting 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.
- discover
Relationships string | DiscoveryRule Relationship Discovery Behavior - Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
- display
Name string - Display name
- add_
recommended_ str | Discoverysignals Rule Recommended Signals Behavior - Whether to add all recommended signals to the discovered entities.
- application_
insights_ strresource_ id - Application Insights resource ID
- 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 | DiscoveryRule Relationship Discovery Behavior - Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
- display_
name str - Display name
- add
Recommended String | "Enabled" | "Disabled"Signals - Whether to add all recommended signals to the discovered entities.
- application
Insights StringResource Id - Application Insights resource ID
- authentication
Setting 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.
- discover
Relationships 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.
- display
Name String - Display name
ApplicationInsightsTopologyDiscoveryRulePropertiesResponse, ApplicationInsightsTopologyDiscoveryRulePropertiesResponseArgs
Discovery rule properties for an Application Insights topology query- Add
Recommended stringSignals - Whether to add all recommended signals to the discovered entities.
- Application
Insights stringResource Id - Application Insights resource ID
- Authentication
Setting 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.
- Deletion
Date string - Date when the discovery rule was (soft-)deleted.
- Discover
Relationships string - Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
- Entity
Name 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.
- Error
Pulumi.
Azure Native. Monitor. Inputs. Discovery Error Response - Error details if the last discovery operation failed.
- Provisioning
State string - The status of the last operation.
- Display
Name string - Display name
- Add
Recommended stringSignals - Whether to add all recommended signals to the discovered entities.
- Application
Insights stringResource Id - Application Insights resource ID
- Authentication
Setting 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.
- Deletion
Date string - Date when the discovery rule was (soft-)deleted.
- Discover
Relationships string - Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
- Entity
Name 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.
- Error
Discovery
Error Response - Error details if the last discovery operation failed.
- Provisioning
State string - The status of the last operation.
- Display
Name string - Display name
- add
Recommended StringSignals - Whether to add all recommended signals to the discovered entities.
- application
Insights StringResource Id - Application Insights resource ID
- authentication
Setting 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.
- deletion
Date String - Date when the discovery rule was (soft-)deleted.
- discover
Relationships String - Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
- entity
Name 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.
- error
Discovery
Error Response - Error details if the last discovery operation failed.
- provisioning
State String - The status of the last operation.
- display
Name String - Display name
- add
Recommended stringSignals - Whether to add all recommended signals to the discovered entities.
- application
Insights stringResource Id - Application Insights resource ID
- authentication
Setting 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.
- deletion
Date string - Date when the discovery rule was (soft-)deleted.
- discover
Relationships string - Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
- entity
Name 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.
- error
Discovery
Error Response - Error details if the last discovery operation failed.
- provisioning
State string - The status of the last operation.
- display
Name string - Display name
- add_
recommended_ strsignals - Whether to add all recommended signals to the discovered entities.
- application_
insights_ strresource_ id - Application Insights resource ID
- 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
Discovery
Error Response - Error details if the last discovery operation failed.
- provisioning_
state str - The status of the last operation.
- display_
name str - Display name
- add
Recommended StringSignals - Whether to add all recommended signals to the discovered entities.
- application
Insights StringResource Id - Application Insights resource ID
- authentication
Setting 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.
- deletion
Date String - Date when the discovery rule was (soft-)deleted.
- discover
Relationships String - Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
- entity
Name 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.
- error Property Map
- Error details if the last discovery operation failed.
- provisioning
State String - The status of the last operation.
- display
Name String - Display name
DiscoveryErrorResponse, DiscoveryErrorResponseArgs
Error details for a failed discovery operationDiscoveryRuleRecommendedSignalsBehavior, DiscoveryRuleRecommendedSignalsBehaviorArgs
- Enabled
- EnabledAutomatically add recommended signals
- Disabled
- DisabledDo not automatically add recommended signals
- Discovery
Rule Recommended Signals Behavior Enabled - EnabledAutomatically add recommended signals
- Discovery
Rule Recommended Signals Behavior 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
- "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
- Discovery
Rule Relationship Discovery Behavior Enabled - EnabledAutomatically attempt to discover relationships
- Discovery
Rule Relationship Discovery Behavior 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
- "Enabled"
- EnabledAutomatically attempt to discover relationships
- "Disabled"
- DisabledDo not automatically attempt to discover relationships
ResourceGraphQueryDiscoveryRuleProperties, ResourceGraphQueryDiscoveryRulePropertiesArgs
Discovery rule properties for an Azure Resource Graph query- Add
Recommended string | Pulumi.Signals Azure Native. Monitor. Discovery Rule Recommended Signals Behavior - Whether to add all recommended signals to the discovered entities.
- Authentication
Setting 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.
- Discover
Relationships string | Pulumi.Azure Native. Monitor. Discovery Rule Relationship Discovery Behavior - Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
- Resource
Graph stringQuery - 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 string - Display name
- Add
Recommended string | DiscoverySignals Rule Recommended Signals Behavior - Whether to add all recommended signals to the discovered entities.
- Authentication
Setting 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.
- Discover
Relationships string | DiscoveryRule Relationship Discovery Behavior - Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
- Resource
Graph stringQuery - 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 string - Display name
- add
Recommended String | DiscoverySignals Rule Recommended Signals Behavior - Whether to add all recommended signals to the discovered entities.
- authentication
Setting 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.
- discover
Relationships String | DiscoveryRule Relationship Discovery Behavior - Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
- resource
Graph StringQuery - 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 String - Display name
- add
Recommended string | DiscoverySignals Rule Recommended Signals Behavior - Whether to add all recommended signals to the discovered entities.
- authentication
Setting 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.
- discover
Relationships string | DiscoveryRule Relationship Discovery Behavior - Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
- resource
Graph stringQuery - 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 string - Display name
- add_
recommended_ str | Discoverysignals Rule Recommended Signals Behavior - 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 | DiscoveryRule Relationship Discovery Behavior - Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
- resource_
graph_ strquery - 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
- add
Recommended String | "Enabled" | "Disabled"Signals - Whether to add all recommended signals to the discovered entities.
- authentication
Setting 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.
- discover
Relationships 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.
- resource
Graph StringQuery - 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 String - Display name
ResourceGraphQueryDiscoveryRulePropertiesResponse, ResourceGraphQueryDiscoveryRulePropertiesResponseArgs
Discovery rule properties for an Azure Resource Graph query- Add
Recommended stringSignals - Whether to add all recommended signals to the discovered entities.
- Authentication
Setting 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.
- Deletion
Date string - Date when the discovery rule was (soft-)deleted.
- Discover
Relationships string - Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
- Entity
Name 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.
- Error
Pulumi.
Azure Native. Monitor. Inputs. Discovery Error Response - Error details if the last discovery operation failed.
- Provisioning
State string - The status of the last operation.
- Resource
Graph stringQuery - 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 string - Display name
- Add
Recommended stringSignals - Whether to add all recommended signals to the discovered entities.
- Authentication
Setting 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.
- Deletion
Date string - Date when the discovery rule was (soft-)deleted.
- Discover
Relationships string - Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
- Entity
Name 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.
- Error
Discovery
Error Response - Error details if the last discovery operation failed.
- Provisioning
State string - The status of the last operation.
- Resource
Graph stringQuery - 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 string - Display name
- add
Recommended StringSignals - Whether to add all recommended signals to the discovered entities.
- authentication
Setting 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.
- deletion
Date String - Date when the discovery rule was (soft-)deleted.
- discover
Relationships String - Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
- entity
Name 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.
- error
Discovery
Error Response - Error details if the last discovery operation failed.
- provisioning
State String - The status of the last operation.
- resource
Graph StringQuery - 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 String - Display name
- add
Recommended stringSignals - Whether to add all recommended signals to the discovered entities.
- authentication
Setting 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.
- deletion
Date string - Date when the discovery rule was (soft-)deleted.
- discover
Relationships string - Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
- entity
Name 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.
- error
Discovery
Error Response - Error details if the last discovery operation failed.
- provisioning
State string - The status of the last operation.
- resource
Graph stringQuery - 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 string - Display name
- add_
recommended_ strsignals - 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
Discovery
Error Response - Error details if the last discovery operation failed.
- provisioning_
state str - The status of the last operation.
- resource_
graph_ strquery - 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
- add
Recommended StringSignals - Whether to add all recommended signals to the discovered entities.
- authentication
Setting 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.
- deletion
Date String - Date when the discovery rule was (soft-)deleted.
- discover
Relationships String - Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
- entity
Name 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.
- error Property Map
- Error details if the last discovery operation failed.
- provisioning
State String - The status of the last operation.
- resource
Graph StringQuery - 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 String - Display name
SystemDataResponse, SystemDataResponseArgs
Metadata pertaining to creation and last modification of the resource.- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - 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_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - 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:monitor:DiscoveryRule myDiscoveryRule /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Monitor/accounts/{azureMonitorWorkspaceName}/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
